[llvm] r179243 - lit: Add a trivial test of the basic progress bar.
Daniel Dunbar
daniel at zuster.org
Wed Apr 10 17:05:38 PDT 2013
Author: ddunbar
Date: Wed Apr 10 19:05:37 2013
New Revision: 179243
URL: http://llvm.org/viewvc/llvm-project?rev=179243&view=rev
Log:
lit: Add a trivial test of the basic progress bar.
Added:
llvm/trunk/utils/lit/tests/Inputs/progress-bar/
llvm/trunk/utils/lit/tests/Inputs/progress-bar/lit.cfg
llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-1.txt
llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-2.txt
llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-3.txt
llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-4.txt
llvm/trunk/utils/lit/tests/progress-bar.py
Added: llvm/trunk/utils/lit/tests/Inputs/progress-bar/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/Inputs/progress-bar/lit.cfg?rev=179243&view=auto
==============================================================================
--- llvm/trunk/utils/lit/tests/Inputs/progress-bar/lit.cfg (added)
+++ llvm/trunk/utils/lit/tests/Inputs/progress-bar/lit.cfg Wed Apr 10 19:05:37 2013
@@ -0,0 +1,5 @@
+config.name = 'shtest-shell'
+config.suffixes = ['.txt']
+config.test_format = lit.formats.ShTest()
+config.test_source_root = None
+config.test_exec_root = None
Added: llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-1.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-1.txt?rev=179243&view=auto
==============================================================================
--- llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-1.txt (added)
+++ llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-1.txt Wed Apr 10 19:05:37 2013
@@ -0,0 +1 @@
+# RUN: false
Added: llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-2.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-2.txt?rev=179243&view=auto
==============================================================================
--- llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-2.txt (added)
+++ llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-2.txt Wed Apr 10 19:05:37 2013
@@ -0,0 +1 @@
+# RUN: false
Added: llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-3.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-3.txt?rev=179243&view=auto
==============================================================================
--- llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-3.txt (added)
+++ llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-3.txt Wed Apr 10 19:05:37 2013
@@ -0,0 +1 @@
+# RUN: false
Added: llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-4.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-4.txt?rev=179243&view=auto
==============================================================================
--- llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-4.txt (added)
+++ llvm/trunk/utils/lit/tests/Inputs/progress-bar/test-4.txt Wed Apr 10 19:05:37 2013
@@ -0,0 +1 @@
+# RUN: false
Added: llvm/trunk/utils/lit/tests/progress-bar.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/tests/progress-bar.py?rev=179243&view=auto
==============================================================================
--- llvm/trunk/utils/lit/tests/progress-bar.py (added)
+++ llvm/trunk/utils/lit/tests/progress-bar.py Wed Apr 10 19:05:37 2013
@@ -0,0 +1,13 @@
+# Check the simple progress bar.
+#
+# RUN: not %{lit} -j 1 -s %{inputs}/progress-bar > %t.out
+# RUN: FileCheck < %t.out %s
+#
+# CHECK: Testing: 0 .. 10.. 20
+# CHECK: FAIL: shtest-shell :: test-1.txt (1 of 4)
+# CHECK: Testing: 0 .. 10.. 20.. 30.. 40..
+# CHECK: FAIL: shtest-shell :: test-2.txt (2 of 4)
+# CHECK: Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70
+# CHECK: FAIL: shtest-shell :: test-3.txt (3 of 4)
+# CHECK: Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
+# CHECK: FAIL: shtest-shell :: test-4.txt (4 of 4)
More information about the llvm-commits
mailing list