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 | 83142021fb1a0b3b9f57fbd6e9ce885a94430a76 (patch) | |
tree | 5cc046d176435a9a552ffae7fd5d2aa3c7fb3092 /clang/utils | |
parent | e9863976b33a6da453aed83dcff90946f0d04401 (diff) | |
download | bcm5719-llvm-83142021fb1a0b3b9f57fbd6e9ce885a94430a76.tar.gz bcm5719-llvm-83142021fb1a0b3b9f57fbd6e9ce885a94430a76.zip |
lit: Some sample tests, for testing the tester
llvm-svn: 78050
Diffstat (limited to 'clang/utils')
-rw-r--r-- | clang/utils/test/ExampleTests/fail.c | 3 | ||||
-rw-r--r-- | clang/utils/test/ExampleTests/lit.cfg | 12 | ||||
-rw-r--r-- | clang/utils/test/ExampleTests/pass.c | 1 | ||||
-rw-r--r-- | clang/utils/test/ExampleTests/xfail.c | 2 | ||||
-rw-r--r-- | clang/utils/test/ExampleTests/xpass.c | 2 |
5 files changed, 20 insertions, 0 deletions
diff --git a/clang/utils/test/ExampleTests/fail.c b/clang/utils/test/ExampleTests/fail.c new file mode 100644 index 00000000000..749ba563913 --- /dev/null +++ b/clang/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/clang/utils/test/ExampleTests/lit.cfg b/clang/utils/test/ExampleTests/lit.cfg new file mode 100644 index 00000000000..3bd18dc0f18 --- /dev/null +++ b/clang/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/clang/utils/test/ExampleTests/pass.c b/clang/utils/test/ExampleTests/pass.c new file mode 100644 index 00000000000..5c1031cccc4 --- /dev/null +++ b/clang/utils/test/ExampleTests/pass.c @@ -0,0 +1 @@ +// RUN: true diff --git a/clang/utils/test/ExampleTests/xfail.c b/clang/utils/test/ExampleTests/xfail.c new file mode 100644 index 00000000000..a6507099061 --- /dev/null +++ b/clang/utils/test/ExampleTests/xfail.c @@ -0,0 +1,2 @@ +// RUN: false +// XFAIL diff --git a/clang/utils/test/ExampleTests/xpass.c b/clang/utils/test/ExampleTests/xpass.c new file mode 100644 index 00000000000..ad84990f7e2 --- /dev/null +++ b/clang/utils/test/ExampleTests/xpass.c @@ -0,0 +1,2 @@ +// RUN: true +// XFAIL |