aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/lit/tests/progress-bar.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-04-11 00:05:37 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-04-11 00:05:37 +0000
commit99a67ed76ee0141975c9c163b4ccaec6923dc46c (patch)
tree0f9571bf3633d349fc1a4d36bae82e029db202e6 /llvm/utils/lit/tests/progress-bar.py
parent1e2bc9b53b47c2d264d01b487efd5746cafdbd7b (diff)
downloadllvm-99a67ed76ee0141975c9c163b4ccaec6923dc46c.zip
llvm-99a67ed76ee0141975c9c163b4ccaec6923dc46c.tar.gz
llvm-99a67ed76ee0141975c9c163b4ccaec6923dc46c.tar.bz2
lit: Add a trivial test of the basic progress bar.
llvm-svn: 179243
Diffstat (limited to 'llvm/utils/lit/tests/progress-bar.py')
-rw-r--r--llvm/utils/lit/tests/progress-bar.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/utils/lit/tests/progress-bar.py b/llvm/utils/lit/tests/progress-bar.py
new file mode 100644
index 0000000..d046748
--- /dev/null
+++ b/llvm/utils/lit/tests/progress-bar.py
@@ -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)