diff options
| author | Justin Bogner <mail@justinbogner.com> | 2016-07-05 17:54:40 +0000 | 
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2016-07-05 17:54:40 +0000 | 
| commit | 2a15ffa2bf48a9804abcd5c1af011e712d5d1673 (patch) | |
| tree | 85fd06815ea1e3fd7124baa7162b62df2dcf9cc6 | |
| parent | ffc8275f2be9fe40b849b83d6adedd11b621d5a3 (diff) | |
| download | bcm5719-llvm-2a15ffa2bf48a9804abcd5c1af011e712d5d1673.tar.gz bcm5719-llvm-2a15ffa2bf48a9804abcd5c1af011e712d5d1673.zip  | |
Re-apply "test: Use add_lit_testsuites so that subsets of tests can be specified"
This version should actually remove the empty directories I removed
all of the files from. Thanks to tstellar for pointing out git-svn's
--rmdir flag.
Original message:
This creates make/ninja targets like check-clang-codegen and
check-clang-unit, much like LLVM already has. I had to move some input
files into Input directories so they weren't picked up as test
directories.
llvm-svn: 274565
| -rw-r--r-- | clang/test/ARCMT/Inputs/with space/test.h (renamed from clang/test/ARCMT/with space/test.h) | 0 | ||||
| -rw-r--r-- | clang/test/ARCMT/Inputs/with space/test.h.result (renamed from clang/test/ARCMT/with space/test.h.result) | 0 | ||||
| -rw-r--r-- | clang/test/ARCMT/Inputs/with space/test1.m.in (renamed from clang/test/ARCMT/with space/test1.m.in) | 0 | ||||
| -rw-r--r-- | clang/test/ARCMT/Inputs/with space/test1.m.in.result (renamed from clang/test/ARCMT/with space/test1.m.in.result) | 0 | ||||
| -rw-r--r-- | clang/test/ARCMT/Inputs/with space/test2.m.in (renamed from clang/test/ARCMT/with space/test2.m.in) | 0 | ||||
| -rw-r--r-- | clang/test/ARCMT/Inputs/with space/test2.m.in.result (renamed from clang/test/ARCMT/with space/test2.m.in.result) | 0 | ||||
| -rw-r--r-- | clang/test/ARCMT/migrate-space-in-path.m | 6 | ||||
| -rw-r--r-- | clang/test/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | clang/test/PCH/Inputs/libroot/usr/include/reloc.h (renamed from clang/test/PCH/libroot/usr/include/reloc.h) | 0 | ||||
| -rw-r--r-- | clang/test/PCH/Inputs/libroot/usr/include/reloc2.h (renamed from clang/test/PCH/libroot/usr/include/reloc2.h) | 0 | ||||
| -rw-r--r-- | clang/test/PCH/reloc.c | 8 | 
11 files changed, 12 insertions, 7 deletions
diff --git a/clang/test/ARCMT/with space/test.h b/clang/test/ARCMT/Inputs/with space/test.h index 756295f27e6..756295f27e6 100644 --- a/clang/test/ARCMT/with space/test.h +++ b/clang/test/ARCMT/Inputs/with space/test.h diff --git a/clang/test/ARCMT/with space/test.h.result b/clang/test/ARCMT/Inputs/with space/test.h.result index 0638a3378c1..0638a3378c1 100644 --- a/clang/test/ARCMT/with space/test.h.result +++ b/clang/test/ARCMT/Inputs/with space/test.h.result diff --git a/clang/test/ARCMT/with space/test1.m.in b/clang/test/ARCMT/Inputs/with space/test1.m.in index 8416a889656..8416a889656 100644 --- a/clang/test/ARCMT/with space/test1.m.in +++ b/clang/test/ARCMT/Inputs/with space/test1.m.in diff --git a/clang/test/ARCMT/with space/test1.m.in.result b/clang/test/ARCMT/Inputs/with space/test1.m.in.result index f351fe6c835..f351fe6c835 100644 --- a/clang/test/ARCMT/with space/test1.m.in.result +++ b/clang/test/ARCMT/Inputs/with space/test1.m.in.result diff --git a/clang/test/ARCMT/with space/test2.m.in b/clang/test/ARCMT/Inputs/with space/test2.m.in index 99f87b07217..99f87b07217 100644 --- a/clang/test/ARCMT/with space/test2.m.in +++ b/clang/test/ARCMT/Inputs/with space/test2.m.in diff --git a/clang/test/ARCMT/with space/test2.m.in.result b/clang/test/ARCMT/Inputs/with space/test2.m.in.result index f8e918ce259..f8e918ce259 100644 --- a/clang/test/ARCMT/with space/test2.m.in.result +++ b/clang/test/ARCMT/Inputs/with space/test2.m.in.result diff --git a/clang/test/ARCMT/migrate-space-in-path.m b/clang/test/ARCMT/migrate-space-in-path.m index a797e6d1f48..d060485ee20 100644 --- a/clang/test/ARCMT/migrate-space-in-path.m +++ b/clang/test/ARCMT/migrate-space-in-path.m @@ -1,5 +1,5 @@  // RUN: rm -rf %t.migrate -// RUN: %clang_cc1 -arcmt-migrate -mt-migrate-directory %t.migrate %S/"with space"/test1.m.in -x objective-c  -// RUN: %clang_cc1 -arcmt-migrate -mt-migrate-directory %t.migrate %S/"with space"/test2.m.in -x objective-c  -// RUN: c-arcmt-test -mt-migrate-directory %t.migrate | arcmt-test -verify-transformed-files %S/"with space"/test1.m.in.result %S/"with space"/test2.m.in.result %S/"with space"/test.h.result +// RUN: %clang_cc1 -arcmt-migrate -mt-migrate-directory %t.migrate %S/Inputs/"with space"/test1.m.in -x objective-c +// RUN: %clang_cc1 -arcmt-migrate -mt-migrate-directory %t.migrate %S/Inputs/"with space"/test2.m.in -x objective-c +// RUN: c-arcmt-test -mt-migrate-directory %t.migrate | arcmt-test -verify-transformed-files %S/Inputs/"with space"/test1.m.in.result %S/Inputs/"with space"/test2.m.in.result %S/Inputs/"with space"/test.h.result  // RUN: rm -rf %t.migrate diff --git a/clang/test/CMakeLists.txt b/clang/test/CMakeLists.txt index c2e2d31e5ce..f4be0adf14f 100644 --- a/clang/test/CMakeLists.txt +++ b/clang/test/CMakeLists.txt @@ -93,6 +93,11 @@ add_lit_testsuite(check-clang "Running the Clang regression tests"    )  set_target_properties(check-clang PROPERTIES FOLDER "Clang tests") +add_lit_testsuites(CLANG ${CMAKE_CURRENT_SOURCE_DIR} +  PARAMS ${CLANG_TEST_PARAMS} +  DEPENDS ${CLANG_TEST_DEPS} +) +  # Add a legacy target spelling: clang-test  add_custom_target(clang-test)  add_dependencies(clang-test check-clang) diff --git a/clang/test/PCH/libroot/usr/include/reloc.h b/clang/test/PCH/Inputs/libroot/usr/include/reloc.h index 04eeacba8ff..04eeacba8ff 100644 --- a/clang/test/PCH/libroot/usr/include/reloc.h +++ b/clang/test/PCH/Inputs/libroot/usr/include/reloc.h diff --git a/clang/test/PCH/libroot/usr/include/reloc2.h b/clang/test/PCH/Inputs/libroot/usr/include/reloc2.h index 995415ce95b..995415ce95b 100644 --- a/clang/test/PCH/libroot/usr/include/reloc2.h +++ b/clang/test/PCH/Inputs/libroot/usr/include/reloc2.h diff --git a/clang/test/PCH/reloc.c b/clang/test/PCH/reloc.c index bf70ab6f692..14788f019f1 100644 --- a/clang/test/PCH/reloc.c +++ b/clang/test/PCH/reloc.c @@ -1,7 +1,7 @@  // RUN: %clang -target x86_64-apple-darwin10 --relocatable-pch -o %t \ -// RUN:   -isysroot %S/libroot %S/libroot/usr/include/reloc.h +// RUN:   -isysroot %S/Inputs/libroot %S/Inputs/libroot/usr/include/reloc.h  // RUN: %clang -target x86_64-apple-darwin10 -fsyntax-only \ -// RUN:   -include-pch %t -isysroot %S/libroot %s -Xclang -verify +// RUN:   -include-pch %t -isysroot %S/Inputs/libroot %s -Xclang -verify  // RUN: not %clang -target x86_64-apple-darwin10 -include-pch %t %s  // REQUIRES: x86-registered-target @@ -11,5 +11,5 @@ int x = 2; // expected-error{{redefinition}}  int y = 5; // expected-error{{redefinition}} -// expected-note@libroot/usr/include/reloc.h:13{{previous definition}} -// expected-note@libroot/usr/include/reloc2.h:14{{previous definition}} +// expected-note@Inputs/libroot/usr/include/reloc.h:13{{previous definition}} +// expected-note@Inputs/libroot/usr/include/reloc2.h:14{{previous definition}}  | 

