]> granicus.if.org Git - clang/commitdiff
lit: Some sample tests, for testing the tester
authorDaniel Dunbar <daniel@zuster.org>
Tue, 4 Aug 2009 04:40:15 +0000 (04:40 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 4 Aug 2009 04:40:15 +0000 (04:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78050 91177308-0d34-0410-b5e6-96231b3b80d8

utils/test/ExampleTests/fail.c [new file with mode: 0644]
utils/test/ExampleTests/lit.cfg [new file with mode: 0644]
utils/test/ExampleTests/pass.c [new file with mode: 0644]
utils/test/ExampleTests/xfail.c [new file with mode: 0644]
utils/test/ExampleTests/xpass.c [new file with mode: 0644]

diff --git a/utils/test/ExampleTests/fail.c b/utils/test/ExampleTests/fail.c
new file mode 100644 (file)
index 0000000..749ba56
--- /dev/null
@@ -0,0 +1,3 @@
+// RUN: echo 'I am some stdout' &&
+// RUN: echo 'I am some stderr' 1>&2 &&
+// RUN: false
diff --git a/utils/test/ExampleTests/lit.cfg b/utils/test/ExampleTests/lit.cfg
new file mode 100644 (file)
index 0000000..3bd18dc
--- /dev/null
@@ -0,0 +1,12 @@
+# -*- Python -*-
+
+# Configuration file for the 'lit' test runner.
+
+# suffixes: A list of file extensions to treat as test files.
+suffixes = ['.c', '.cpp', '.m', '.mm']
+    
+# environment: The base environment to use when running test commands.
+#
+# The 'PATH' and 'SYSTEMROOT' variables will be set automatically from the lit
+# command line variables.
+environment = {}
diff --git a/utils/test/ExampleTests/pass.c b/utils/test/ExampleTests/pass.c
new file mode 100644 (file)
index 0000000..5c1031c
--- /dev/null
@@ -0,0 +1 @@
+// RUN: true
diff --git a/utils/test/ExampleTests/xfail.c b/utils/test/ExampleTests/xfail.c
new file mode 100644 (file)
index 0000000..a650709
--- /dev/null
@@ -0,0 +1,2 @@
+// RUN: false
+// XFAIL
diff --git a/utils/test/ExampleTests/xpass.c b/utils/test/ExampleTests/xpass.c
new file mode 100644 (file)
index 0000000..ad84990
--- /dev/null
@@ -0,0 +1,2 @@
+// RUN: true
+// XFAIL