summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/ExampleTests/TclTest
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-10 02:41:17 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-10 02:41:17 +0000
commit8acffa7dd56faf91c0fb4f401bc61658ed824cfc (patch)
tree616f9156b3ec7f1df3e89f90dcaf3cb4ef5b3ba9 /llvm/utils/lit/ExampleTests/TclTest
parent4010a04034e90fe24f572dceded20d4a420a90e6 (diff)
downloadbcm5719-llvm-8acffa7dd56faf91c0fb4f401bc61658ed824cfc.tar.gz
bcm5719-llvm-8acffa7dd56faf91c0fb4f401bc61658ed824cfc.zip
lit: Add ExampleTests, for testing lit and demonstrating test suite features.
llvm-svn: 86654
Diffstat (limited to 'llvm/utils/lit/ExampleTests/TclTest')
-rw-r--r--llvm/utils/lit/ExampleTests/TclTest/lit.local.cfg5
-rw-r--r--llvm/utils/lit/ExampleTests/TclTest/stderr-pipe.ll1
-rw-r--r--llvm/utils/lit/ExampleTests/TclTest/tcl-redir-1.ll7
3 files changed, 13 insertions, 0 deletions
diff --git a/llvm/utils/lit/ExampleTests/TclTest/lit.local.cfg b/llvm/utils/lit/ExampleTests/TclTest/lit.local.cfg
new file mode 100644
index 00000000000..6a37129acdf
--- /dev/null
+++ b/llvm/utils/lit/ExampleTests/TclTest/lit.local.cfg
@@ -0,0 +1,5 @@
+# -*- Python -*-
+
+config.test_format = lit.formats.TclTest()
+
+config.suffixes = ['.ll']
diff --git a/llvm/utils/lit/ExampleTests/TclTest/stderr-pipe.ll b/llvm/utils/lit/ExampleTests/TclTest/stderr-pipe.ll
new file mode 100644
index 00000000000..6c55fe8a0b1
--- /dev/null
+++ b/llvm/utils/lit/ExampleTests/TclTest/stderr-pipe.ll
@@ -0,0 +1 @@
+; RUN: gcc -### > /dev/null |& grep {gcc version}
diff --git a/llvm/utils/lit/ExampleTests/TclTest/tcl-redir-1.ll b/llvm/utils/lit/ExampleTests/TclTest/tcl-redir-1.ll
new file mode 100644
index 00000000000..61240ba4594
--- /dev/null
+++ b/llvm/utils/lit/ExampleTests/TclTest/tcl-redir-1.ll
@@ -0,0 +1,7 @@
+; RUN: echo 'hi' > %t.1 | echo 'hello' > %t.2
+; RUN: not grep 'hi' %t.1
+; RUN: grep 'hello' %t.2
+
+
+
+
OpenPOWER on IntegriCloud