1*6e4dcbb2SJan Svoboda// RUN: rm -rf %t 2*6e4dcbb2SJan Svoboda// RUN: split-file %s %t 3*6e4dcbb2SJan Svoboda// RUN: sed -e "s|DIR|%/t|g" %t/cdb.json.in > %t/cdb.json 4*6e4dcbb2SJan Svoboda 5*6e4dcbb2SJan Svoboda// RUN: clang-scan-deps -compilation-database %t/cdb.json -v -o %t/result.json 2>&1 | FileCheck %s 6*6e4dcbb2SJan Svoboda// CHECK: *** Virtual File System Stats: 7*6e4dcbb2SJan Svoboda// CHECK-NEXT: {{[[:digit:]]+}} status() calls 8*6e4dcbb2SJan Svoboda// CHECK-NEXT: {{[[:digit:]]+}} openFileForRead() calls 9*6e4dcbb2SJan Svoboda// CHECK-NEXT: {{[[:digit:]]+}} dir_begin() calls 10*6e4dcbb2SJan Svoboda// CHECK-NEXT: {{[[:digit:]]+}} getRealPath() calls 11*6e4dcbb2SJan Svoboda// CHECK-NEXT: {{[[:digit:]]+}} exists() calls 12*6e4dcbb2SJan Svoboda// CHECK-NEXT: {{[[:digit:]]+}} isLocal() calls 13*6e4dcbb2SJan Svoboda 14*6e4dcbb2SJan Svoboda//--- tu.c 15*6e4dcbb2SJan Svoboda 16*6e4dcbb2SJan Svoboda//--- cdb.json.in 17*6e4dcbb2SJan Svoboda[ 18*6e4dcbb2SJan Svoboda { 19*6e4dcbb2SJan Svoboda "file": "DIR/tu.c" 20*6e4dcbb2SJan Svoboda "directory": "DIR", 21*6e4dcbb2SJan Svoboda "command": "clang -c DIR/tu.c -o DIR/tu.o" 22*6e4dcbb2SJan Svoboda }, 23*6e4dcbb2SJan Svoboda { 24*6e4dcbb2SJan Svoboda "file": "DIR/tu.c" 25*6e4dcbb2SJan Svoboda "directory": "DIR", 26*6e4dcbb2SJan Svoboda "command": "clang -c DIR/tu.c -o DIR/tu.o" 27*6e4dcbb2SJan Svoboda } 28*6e4dcbb2SJan Svoboda] 29