Skip to content

Commit d2a6306

Browse files
committed
Remove tests for by-module-name scan with command line input
1 parent ea5222a commit d2a6306

File tree

1 file changed

+3
-28
lines changed

1 file changed

+3
-28
lines changed

clang/test/ClangScanDeps/modules-full-by-mod-name.c

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,53 +17,28 @@ module transitive { header "transitive.h" }
1717
// This is here to verify that the "root" directory doesn't clash with name of
1818
// the "root" module.
1919

20-
//--- main.cpp
21-
// empty
22-
2320
//--- cdb.json.template
2421
[{
2522
"file": "",
2623
"directory": "DIR",
27-
"command": "clang -fmodules -fmodules-cache-path=DIR/cache -I DIR -x c main.cpp"
24+
"command": "clang -fmodules -fmodules-cache-path=DIR/cache -I DIR -x c"
2825
}]
2926

3027
// RUN: sed "s|DIR|%/t|g" %t/cdb.json.template > %t/cdb.json
3128
// RUN: clang-scan-deps -compilation-database %t/cdb.json -format experimental-full -module-names=root > %t/result.json
3229
// RUN: cat %t/result.json | sed 's:\\\\\?:/:g' | FileCheck -DPREFIX=%/t %s
3330

34-
//--- cdb.no-input.json.template
35-
[{
36-
"file": "",
37-
"directory": "DIR",
38-
"command": "clang -fmodules -fmodules-cache-path=DIR/cache -I DIR -x c"
39-
}]
40-
41-
// RUN: sed "s|DIR|%/t|g" %t/cdb.no-input.json.template > %t/cdb.no-input.json
42-
// RUN: clang-scan-deps -compilation-database %t/cdb.no-input.json -format experimental-full -module-names=root > %t/result.no-input.json
43-
// RUN: cat %t/result.no-input.json | sed 's:\\\\\?:/:g' | FileCheck -DPREFIX=%/t %s
44-
45-
//--- cdb.cc1.json.template
31+
//--- cdb.cc1.template
4632
[{
4733
"file": "",
4834
"directory": "DIR",
49-
"command": "clang -cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=DIR/cache -I DIR -x c main.cpp"
35+
"command": "clang -cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=DIR/cache -I DIR -x c"
5036
}]
5137

5238
// RUN: sed "s|DIR|%/t|g" %t/cdb.cc1.json.template > %t/cdb.cc1.json
5339
// RUN: clang-scan-deps -compilation-database %t/cdb.cc1.json -format experimental-full -module-names=root > %t/result.cc1.json
5440
// RUN: cat %t/result.cc1.json | sed 's:\\\\\?:/:g' | FileCheck -DPREFIX=%/t %s
5541

56-
//--- cdb.cc1.no-input.json.template
57-
[{
58-
"file": "",
59-
"directory": "DIR",
60-
"command": "clang -cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=DIR/cache -I DIR -x c"
61-
}]
62-
63-
// RUN: sed "s|DIR|%/t|g" %t/cdb.cc1.no-input.json.template > %t/cdb.cc1.no-input.json
64-
// RUN: clang-scan-deps -compilation-database %t/cdb.cc1.no-input.json -format experimental-full -module-names=root > %t/result.cc1.no-input.json
65-
// RUN: cat %t/result.cc1.no-input.json | sed 's:\\\\\?:/:g' | FileCheck -DPREFIX=%/t %s
66-
6742
// CHECK: {
6843
// CHECK-NEXT: "modules": [
6944
// CHECK-NEXT: {

0 commit comments

Comments
 (0)