1 // RUN: rm -rf %t.dir 2 // RUN: rm -rf %t.cdb 3 // RUN: mkdir -p %t.dir 4 // RUN: mkdir %t.dir/Inputs 5 // RUN: cp %s %t.dir/Inputs/relative_directory_input1.cpp 6 // RUN: cp %s %t.dir/Inputs/relative_directory_input2.cpp 7 // RUN: touch %t.dir/Inputs/header.h 8 // RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/relative_directory.json > %t.cdb 9 // 10 // RUN: clang-scan-deps -compilation-database %t.cdb -j 1 | FileCheck --check-prefixes=CHECK1,CHECK2 %s 11 12 // The output order is non-deterministic when using more than one thread, 13 // so check the output using two runs. 14 // RUN: clang-scan-deps -compilation-database %t.cdb -j 2 | FileCheck --check-prefix=CHECK1 %s 15 // RUN: clang-scan-deps -compilation-database %t.cdb -j 2 | FileCheck --check-prefix=CHECK2 %s 16 17 #include <header.h> 18 19 // CHECK1: relative_directory_input1.o: 20 // CHECK1-NEXT: relative_directory_input1.cpp 21 // CHECK1-NEXT: header.h 22 23 // CHECK2: relative_directory_input2.o: 24 // CHECK2-NEXT: relative_directory_input2.cpp 25 // CHECK2-NEXT: header.h 26