]> granicus.if.org Git - clang/commitdiff
Move test/Index input files into a sub directory (not scanned as tests).
authorDaniel Dunbar <daniel@zuster.org>
Sun, 8 Nov 2009 01:46:19 +0000 (01:46 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sun, 8 Nov 2009 01:46:19 +0000 (01:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86431 91177308-0d34-0410-b5e6-96231b3b80d8

14 files changed:
test/Index/Inputs/c-index-pch.h [moved from test/Index/c-index-pch.h with 100% similarity]
test/Index/Inputs/foo.h [moved from test/Index/foo.h with 100% similarity]
test/Index/Inputs/lit.local.cfg [new file with mode: 0644]
test/Index/Inputs/objc.h [moved from test/Index/objc.h with 100% similarity]
test/Index/Inputs/t1.c [moved from test/Index/t1.c with 89% similarity]
test/Index/Inputs/t1.m [moved from test/Index/t1.m with 83% similarity]
test/Index/Inputs/t2.c [moved from test/Index/t2.c with 75% similarity]
test/Index/Inputs/t2.m [moved from test/Index/t2.m with 78% similarity]
test/Index/c-index-pch.c
test/Index/find-decls.c
test/Index/find-defs.c
test/Index/find-refs.c
test/Index/objc-decls.m
test/Index/objc-message.m

similarity index 100%
rename from test/Index/foo.h
rename to test/Index/Inputs/foo.h
diff --git a/test/Index/Inputs/lit.local.cfg b/test/Index/Inputs/lit.local.cfg
new file mode 100644 (file)
index 0000000..e6f55ee
--- /dev/null
@@ -0,0 +1 @@
+config.suffixes = []
similarity index 100%
rename from test/Index/objc.h
rename to test/Index/Inputs/objc.h
similarity index 89%
rename from test/Index/t1.c
rename to test/Index/Inputs/t1.c
index 45e04881244dbbfabe80c1618697c3bd6c1d9d5a..ceaad4c7f3a68333257ff71ef695de5d94e2b75b 100644 (file)
@@ -26,6 +26,3 @@ void field_test(void) {
 }
 
 int (^CP)(int) = ^(int x) { return x * global_var; };
-
-// Suppress 'no run line' failure.
-// RUN: true
similarity index 83%
rename from test/Index/t1.m
rename to test/Index/Inputs/t1.m
index b2a7a3726d206f5ad327ad08cfdd614db074427d..b7c86cd6aac786646c3c44d999352b869fa2b087 100644 (file)
@@ -18,6 +18,3 @@ static void foo() {
 +(void) my_method: (int)param {
 }
 @end
-
-// Suppress 'no run line' failure.
-// RUN: true
similarity index 75%
rename from test/Index/t2.c
rename to test/Index/Inputs/t2.c
index bf52869ec8d92618e1aadaa29b9a4e63e6b9aa4f..76d5d6ceeb41fdc847766f3fb4f7694b3abadb3d 100644 (file)
@@ -9,6 +9,3 @@ void bar_func(void) {
   struct MyStruct *ms;
   ms->field_var = 10;
 }
-
-// Suppress 'no run line' failure.
-// RUN: true
similarity index 78%
rename from test/Index/t2.m
rename to test/Index/Inputs/t2.m
index 00d2f1d92b05ccca0887518d597738113ebb2c33..3f103eeb1dc72c830ce9979a1bef4b8ee72d5a25 100644 (file)
@@ -11,6 +11,3 @@ static void foo() {
 -(void) my_method: (int)param {
 }
 @end
-
-// Suppress 'no run line' failure.
-// RUN: true
index 789325d76a3514b2f85070587989ab623c1e6dd4..cbd078633c11ecc9751515524496cade75aa1233 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -emit-pch -x c -o %t.pch %S/c-index-pch.h
+// RUN: clang-cc -emit-pch -x c -o %t.pch %S/Inputs/c-index-pch.h
 // RUN: clang-cc -include-pch %t.pch -x c -emit-pch -o %t.ast %s
 // RUN: c-index-test %t.ast all | FileCheck -check-prefix=ALL %s
 // RUN: c-index-test %t.ast local | FileCheck -check-prefix=LOCAL %s
index 06c9a408c5cec7c740b07f77a2719d88973c88df..99a32428005b187a2c409d933e6fcdc2f93c1b13 100644 (file)
@@ -1,25 +1,25 @@
-// RUN: clang-cc -fblocks -emit-pch %S/t1.c -o %t1.ast
-// RUN: clang-cc -fblocks -emit-pch %S/t2.c -o %t2.ast
+// RUN: clang-cc -fblocks -emit-pch %S/Inputs/t1.c -o %t1.ast
+// RUN: clang-cc -fblocks -emit-pch %S/Inputs/t2.c -o %t2.ast
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:8:7 -print-decls > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:8:7 -print-decls > %t
 // RUN: cat %t | count 3
 // RUN: grep 'foo.h:4:6,' %t | count 2
 // RUN: grep 't2.c:5:6,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:5:47 -print-decls > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:5:47 -print-decls > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:5:12,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:6:20 -print-decls > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:6:20 -print-decls > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:3:19,' %t
 
 // field test
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:21:6 -print-decls > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:21:6 -print-decls > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:12:7,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:22:21 -print-decls > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:22:21 -print-decls > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:16:7,' %t
index 1a1af579c011ae4dbd450021d72ff79d280d0115..fb540727341a2c9fc07436e946132cafe864f7dd 100644 (file)
@@ -1,18 +1,18 @@
-// RUN: clang-cc -fblocks -emit-pch %S/t1.c -o %t1.ast
-// RUN: clang-cc -fblocks -emit-pch %S/t2.c -o %t2.ast
+// RUN: clang-cc -fblocks -emit-pch %S/Inputs/t1.c -o %t1.ast
+// RUN: clang-cc -fblocks -emit-pch %S/Inputs/t2.c -o %t2.ast
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:1:14 -print-defs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:1:14 -print-defs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't2.c:3:5,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:3:9 -print-defs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:3:9 -print-defs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:3:6,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:4:9 -print-defs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:4:9 -print-defs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't2.c:5:6,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:8:7 -print-defs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:8:7 -print-defs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't2.c:5:6,' %t
index 8afcd0965a1bc36be9ae0bd60f92eec6c4e541ea..5209e141b629d685389f64d0565f21405052f85b 100644 (file)
@@ -1,30 +1,30 @@
-// RUN: clang-cc -fblocks -emit-pch %S/t1.c -o %t1.ast
-// RUN: clang-cc -fblocks -emit-pch %S/t2.c -o %t2.ast
+// RUN: clang-cc -fblocks -emit-pch %S/Inputs/t1.c -o %t1.ast
+// RUN: clang-cc -fblocks -emit-pch %S/Inputs/t2.c -o %t2.ast
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:1:14 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:1:14 -print-refs > %t
 // RUN: cat %t | count 4
 // RUN: grep 't1.c:4:19,' %t
 // RUN: grep 't1.c:28:40,' %t
 // RUN: grep 't2.c:6:3,' %t
 // RUN: grep 't2.c:7:12,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:3:9 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:3:9 -print-refs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't2.c:7:3,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:4:9 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:4:9 -print-refs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:8:3,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:3:22 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:3:22 -print-refs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:6:17,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:4:11 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:4:11 -print-refs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:6:5,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:5:30 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:5:30 -print-refs > %t
 // RUN: cat %t | count 3
 // RUN: grep 't1.c:5:27,' %t
 // RUN: grep 't1.c:5:44,' %t
 // field test
 
 // FIXME: References point at the start of MemberExpr, make them point at the field instead.
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:12:7 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:12:7 -print-refs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:21:3,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:16:7 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:16:7 -print-refs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:22:3,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:7:11 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:7:11 -print-refs > %t
 // RUN: cat %t | count 2
 // RUN: grep 't1.c:25:3,' %t
 // RUN: grep 't2.c:10:3,' %t
index 56051d52e3caeff5f4f53f8091783246d297cdbb..ff396788771df3f190ef196c05dcd04a723058ba 100644 (file)
@@ -1,16 +1,16 @@
-// RUN: clang-cc -emit-pch %S/t1.m -o %t1.m.ast
-// RUN: clang-cc -emit-pch %S/t2.m -o %t2.m.ast
+// RUN: clang-cc -emit-pch %S/Inputs/t1.m -o %t1.m.ast
+// RUN: clang-cc -emit-pch %S/Inputs/t2.m -o %t2.m.ast
 
-// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/t1.m:12:12 -print-decls > %t
+// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/t1.m:12:12 -print-decls > %t
 // RUN: cat %t | count 2
 // RUN: grep 'objc.h:2:9,' %t | count 2
 
-// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:5:13 -print-decls > %t
+// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/objc.h:5:13 -print-decls > %t
 // RUN: cat %t | count 3
 // RUN: grep 'objc.h:5:1,' %t | count 2
 // RUN: grep 't1.m:15:1,' %t | count 1
 
-// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:10:13 -print-decls > %t
+// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/objc.h:10:13 -print-decls > %t
 // RUN: cat %t | count 3
 // RUN: grep 'objc.h:10:1,' %t | count 2
 // RUN: grep 't2.m:11:1,' %t | count 1
index 9b709ccc0c9866ebd4f2d88a9d00d840cc1c7cf6..de61278af87e81c6b71dbd992439f8c81330976a 100644 (file)
@@ -1,38 +1,38 @@
-// RUN: clang-cc -emit-pch %S/t1.m -o %t1.m.ast
-// RUN: clang-cc -emit-pch %S/t2.m -o %t2.m.ast
+// RUN: clang-cc -emit-pch %S/Inputs/t1.m -o %t1.m.ast
+// RUN: clang-cc -emit-pch %S/Inputs/t2.m -o %t2.m.ast
 
-// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:5:13 -print-refs > %t
+// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/objc.h:5:13 -print-refs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.m:6:3,' %t
 
-// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:6:13 -print-refs > %t
+// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/objc.h:6:13 -print-refs > %t
 // RUN: cat %t | count 2
 // RUN: grep 't1.m:7:3,' %t
 // RUN: grep 't2.m:7:3,' %t
 
-// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:10:13 -print-refs > %t
+// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/objc.h:10:13 -print-refs > %t
 // RUN: cat %t | count 2
 // RUN: grep 't1.m:6:3,' %t
 // RUN: grep 't2.m:6:3,' %t
 
-// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/t1.m:6:15 -print-decls > %t
+// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/t1.m:6:15 -print-decls > %t
 // RUN: cat %t | count 6
 // RUN: grep 'objc.h:5:1,' %t | count 2
 // RUN: grep 'objc.h:10:1,' %t | count 2
 // RUN: grep 't1.m:15:1,' %t
 // RUN: grep 't2.m:11:1,' %t
 
-// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/t1.m:7:15 -print-decls > %t
+// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/t1.m:7:15 -print-decls > %t
 // RUN: cat %t | count 3
 // RUN: grep 'objc.h:6:1,' %t | count 2
 // RUN: grep 't1.m:18:1,' %t
 
-// RUN: index-test %t2.m.ast %t1.m.ast -point-at %S/t2.m:6:15 -print-decls > %t
+// RUN: index-test %t2.m.ast %t1.m.ast -point-at %S/Inputs/t2.m:6:15 -print-decls > %t
 // RUN: cat %t | count 3
 // RUN: grep 'objc.h:10:1,' %t | count 2
 // RUN: grep 't2.m:11:1,' %t
 
-// RUN: index-test %t2.m.ast %t1.m.ast -point-at %S/t2.m:7:15 -print-decls > %t
+// RUN: index-test %t2.m.ast %t1.m.ast -point-at %S/Inputs/t2.m:7:15 -print-decls > %t
 // RUN: cat %t | count 3
 // RUN: grep 'objc.h:6:1,' %t | count 2
 // RUN: grep 't1.m:18:1,' %t