2 // RUN: split-file %s %t
3 // RUN: sed -e "s|DIR|%/t|g" %t/cdb.json.template > %t/cdb.json
5 // RUN: clang-scan-deps -compilation-database %t/cdb.json -format make -j 1 > %t/result.txt
6 // RUN: FileCheck %s -input-file=%t/result.txt
8 // CHECK: {{/|\\}}dir1{{/|\\}}t1.c
9 // CHECK: {{/|\\}}dir1{{/|\\}}head.h
10 // CHECK: {{/|\\}}dir2{{/|\\}}t2.c
11 // CHECK: {{/|\\}}dir2{{/|\\}}head.h
13 //--- cdb.json.template
16 "directory": "DIR/dir1",
17 "command": "clang -fsyntax-only t1.c",
21 "directory": "DIR/dir2",
22 "command": "clang -fsyntax-only t2.c",