[cfe-commits] r78050 - in /cfe/trunk/utils/test/ExampleTests: ./ fail.c lit.cfg pass.c xfail.c xpass.c

Daniel Dunbar daniel at zuster.org
Mon Aug 3 21:40:15 PDT 2009


Author: ddunbar
Date: Mon Aug  3 23:40:15 2009
New Revision: 78050

URL: http://llvm.org/viewvc/llvm-project?rev=78050&view=rev
Log:
lit: Some sample tests, for testing the tester

Added:
    cfe/trunk/utils/test/ExampleTests/   (with props)
    cfe/trunk/utils/test/ExampleTests/fail.c
    cfe/trunk/utils/test/ExampleTests/lit.cfg
    cfe/trunk/utils/test/ExampleTests/pass.c
    cfe/trunk/utils/test/ExampleTests/xfail.c
    cfe/trunk/utils/test/ExampleTests/xpass.c

Propchange: cfe/trunk/utils/test/ExampleTests/

------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Aug  3 23:40:15 2009
@@ -0,0 +1 @@
+Output

Added: cfe/trunk/utils/test/ExampleTests/fail.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/test/ExampleTests/fail.c?rev=78050&view=auto

==============================================================================
--- cfe/trunk/utils/test/ExampleTests/fail.c (added)
+++ cfe/trunk/utils/test/ExampleTests/fail.c Mon Aug  3 23:40:15 2009
@@ -0,0 +1,3 @@
+// RUN: echo 'I am some stdout' &&
+// RUN: echo 'I am some stderr' 1>&2 &&
+// RUN: false

Added: cfe/trunk/utils/test/ExampleTests/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/test/ExampleTests/lit.cfg?rev=78050&view=auto

==============================================================================
--- cfe/trunk/utils/test/ExampleTests/lit.cfg (added)
+++ cfe/trunk/utils/test/ExampleTests/lit.cfg Mon Aug  3 23:40:15 2009
@@ -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 = {}

Added: cfe/trunk/utils/test/ExampleTests/pass.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/test/ExampleTests/pass.c?rev=78050&view=auto

==============================================================================
--- cfe/trunk/utils/test/ExampleTests/pass.c (added)
+++ cfe/trunk/utils/test/ExampleTests/pass.c Mon Aug  3 23:40:15 2009
@@ -0,0 +1 @@
+// RUN: true

Added: cfe/trunk/utils/test/ExampleTests/xfail.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/test/ExampleTests/xfail.c?rev=78050&view=auto

==============================================================================
--- cfe/trunk/utils/test/ExampleTests/xfail.c (added)
+++ cfe/trunk/utils/test/ExampleTests/xfail.c Mon Aug  3 23:40:15 2009
@@ -0,0 +1,2 @@
+// RUN: false
+// XFAIL

Added: cfe/trunk/utils/test/ExampleTests/xpass.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/test/ExampleTests/xpass.c?rev=78050&view=auto

==============================================================================
--- cfe/trunk/utils/test/ExampleTests/xpass.c (added)
+++ cfe/trunk/utils/test/ExampleTests/xpass.c Mon Aug  3 23:40:15 2009
@@ -0,0 +1,2 @@
+// RUN: true
+// XFAIL





More information about the cfe-commits mailing list