diff options
Diffstat (limited to 'clang/utils/test')
-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 |