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 | 78226445e4ee9e7257f3cc009e7f413bf8a6fa55 (patch) | |
tree | 44e30ef9de4d24461df83767a8f10992b9c16c8d /test/PCH | |
parent | 84ae3e5f78b454eda4e8d6e5befbb51de9bd0172 (diff) | |
download | clang-78226445e4ee9e7257f3cc009e7f413bf8a6fa55.tar.gz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274565 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/PCH')
-rw-r--r-- | test/PCH/Inputs/libroot/usr/include/reloc.h (renamed from test/PCH/libroot/usr/include/reloc.h) | 0 | ||||
-rw-r--r-- | test/PCH/Inputs/libroot/usr/include/reloc2.h (renamed from test/PCH/libroot/usr/include/reloc2.h) | 0 | ||||
-rw-r--r-- | test/PCH/reloc.c | 8 |
3 files changed, 4 insertions, 4 deletions
diff --git a/test/PCH/libroot/usr/include/reloc.h b/test/PCH/Inputs/libroot/usr/include/reloc.h index 04eeacba8f..04eeacba8f 100644 --- a/test/PCH/libroot/usr/include/reloc.h +++ b/test/PCH/Inputs/libroot/usr/include/reloc.h diff --git a/test/PCH/libroot/usr/include/reloc2.h b/test/PCH/Inputs/libroot/usr/include/reloc2.h index 995415ce95..995415ce95 100644 --- a/test/PCH/libroot/usr/include/reloc2.h +++ b/test/PCH/Inputs/libroot/usr/include/reloc2.h diff --git a/test/PCH/reloc.c b/test/PCH/reloc.c index bf70ab6f69..14788f019f 100644 --- a/test/PCH/reloc.c +++ b/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}} |