summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit29dc45b65003d6fd32a54a219108ae9f99fb0cf1 (patch)
tree1c69091db5342dc19933c62c1b2b8eabef0776d7 /llvm/utils/lit
parenta4c435f1fa589934f4a432ec8141deca40e89f22 (diff)
downloadbcm5719-llvm-29dc45b65003d6fd32a54a219108ae9f99fb0cf1.tar.gz
bcm5719-llvm-29dc45b65003d6fd32a54a219108ae9f99fb0cf1.zip
lit: Add some example tests for previous commit.
llvm-svn: 109071
Diffstat (limited to 'llvm/utils/lit')
-rw-r--r--llvm/utils/lit/lit/ExampleTests/required-and-missing.c4
-rw-r--r--llvm/utils/lit/lit/ExampleTests/required-and-present.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/utils/lit/lit/ExampleTests/required-and-missing.c b/llvm/utils/lit/lit/ExampleTests/required-and-missing.c
new file mode 100644
index 00000000000..47ba72e4a31
--- /dev/null
+++ b/llvm/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/llvm/utils/lit/lit/ExampleTests/required-and-present.c b/llvm/utils/lit/lit/ExampleTests/required-and-present.c
new file mode 100644
index 00000000000..2a09e08e5ae
--- /dev/null
+++ b/llvm/utils/lit/lit/ExampleTests/required-and-present.c
@@ -0,0 +1,2 @@
+// RUN: true
+// REQUIRES: some-feature-name
OpenPOWER on IntegriCloud