aboutsummaryrefslogtreecommitdiffstats
path: root/utils/lit
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-07-22 00:40:19 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-07-22 00:40:19 +0000
commit2d4590d6fbb21911e7bff8a4f1bdddd76edbebe0 (patch)
tree9604fc04791dbbe0d8eb6deb0154db47be7e9c21 /utils/lit
parent90eb4024ba1ff2b945b0c157910dd41cd4e74575 (diff)
downloadexternal_llvm-2d4590d6fbb21911e7bff8a4f1bdddd76edbebe0.zip
external_llvm-2d4590d6fbb21911e7bff8a4f1bdddd76edbebe0.tar.gz
external_llvm-2d4590d6fbb21911e7bff8a4f1bdddd76edbebe0.tar.bz2
lit: Add some example tests for previous commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109071 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit')
-rw-r--r--utils/lit/lit/ExampleTests/required-and-missing.c4
-rw-r--r--utils/lit/lit/ExampleTests/required-and-present.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/utils/lit/lit/ExampleTests/required-and-missing.c b/utils/lit/lit/ExampleTests/required-and-missing.c
new file mode 100644
index 0000000..47ba72e
--- /dev/null
+++ b/utils/lit/lit/ExampleTests/required-and-missing.c
@@ -0,0 +1,4 @@
+// This test shouldn't be run, the required feature is missing.
+//
+// RUN: false
+// REQUIRES: some-missing-feature-name
diff --git a/utils/lit/lit/ExampleTests/required-and-present.c b/utils/lit/lit/ExampleTests/required-and-present.c
new file mode 100644
index 0000000..2a09e08
--- /dev/null
+++ b/utils/lit/lit/ExampleTests/required-and-present.c
@@ -0,0 +1,2 @@
+// RUN: true
+// REQUIRES: some-feature-name