29 lines · plain
1// RUN: rm -rf %t2// RUN: split-file %s %t3// RUN: sed -e "s|DIR|%/t|g" %t/cdb.json.in > %t/cdb.json4 5// RUN: clang-scan-deps -compilation-database %t/cdb.json -v -o %t/result.json 2>&1 | FileCheck %s6// CHECK: *** Virtual File System Stats:7// CHECK-NEXT: {{[[:digit:]]+}} status() calls8// CHECK-NEXT: {{[[:digit:]]+}} openFileForRead() calls9// CHECK-NEXT: {{[[:digit:]]+}} dir_begin() calls10// CHECK-NEXT: {{[[:digit:]]+}} getRealPath() calls11// CHECK-NEXT: {{[[:digit:]]+}} exists() calls12// CHECK-NEXT: {{[[:digit:]]+}} isLocal() calls13 14//--- tu.c15 16//--- cdb.json.in17[18 {19 "file": "DIR/tu.c"20 "directory": "DIR",21 "command": "clang -c DIR/tu.c -o DIR/tu.o"22 },23 {24 "file": "DIR/tu.c"25 "directory": "DIR",26 "command": "clang -c DIR/tu.c -o DIR/tu.o"27 }28]29