diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-04 04:40:15 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-04 04:40:15 +0000 |
commit | 00d02abf2492ebf54fd5088f647af38db461b842 (patch) | |
tree | 6be7fd9cd7db68f877d66dbb58c6c0f7e4af7816 | |
parent | 7cfd8910fcdc74f4fb85531db1afd7441f430180 (diff) |
lit: Some sample tests, for testing the tester
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78050 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/test/ExampleTests/fail.c | 3 | ||||
-rw-r--r-- | utils/test/ExampleTests/lit.cfg | 12 | ||||
-rw-r--r-- | utils/test/ExampleTests/pass.c | 1 | ||||
-rw-r--r-- | utils/test/ExampleTests/xfail.c | 2 | ||||
-rw-r--r-- | utils/test/ExampleTests/xpass.c | 2 |
5 files changed, 20 insertions, 0 deletions
diff --git a/utils/test/ExampleTests/fail.c b/utils/test/ExampleTests/fail.c new file mode 100644 index 0000000000..749ba56391 --- /dev/null +++ b/utils/test/ExampleTests/fail.c @@ -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 index 0000000000..3bd18dc0f1 --- /dev/null +++ b/utils/test/ExampleTests/lit.cfg @@ -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 index 0000000000..5c1031cccc --- /dev/null +++ b/utils/test/ExampleTests/pass.c @@ -0,0 +1 @@ +// RUN: true diff --git a/utils/test/ExampleTests/xfail.c b/utils/test/ExampleTests/xfail.c new file mode 100644 index 0000000000..a650709906 --- /dev/null +++ b/utils/test/ExampleTests/xfail.c @@ -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 index 0000000000..ad84990f7e --- /dev/null +++ b/utils/test/ExampleTests/xpass.c @@ -0,0 +1,2 @@ +// RUN: true +// XFAIL |