From: Daniel Dunbar Date: Tue, 4 Aug 2009 04:40:15 +0000 (+0000) Subject: lit: Some sample tests, for testing the tester X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00d02abf2492ebf54fd5088f647af38db461b842;p=clang 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 --- 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