testing --color

This commit is contained in:
Thomas Levine 2016-03-06 09:47:16 +00:00
parent dbd604a82d
commit a9cad20ff7
3 changed files with 23 additions and 4 deletions

View File

@ -1,11 +1,11 @@
./ ./
> a > a
sh (1 second) ✗ sh (1 second)
# This is stdout from a. # This is stdout from a.
./ ./
> b > b
sh (1 second) ✓ sh (1 second)
./ ./
> c > c
(File is not executable.) (File is not executable.)
@ -13,5 +13,4 @@
Done, took 1 second. Done, took 1 second.
1 test passed. 1 test passed.
1 test skipped. 1 test skipped.
1 test failed. 1 test failed.


View File

@ -0,0 +1,17 @@
./
> a
✗ sh (1 second)
# This is stdout from a.
./
> b
✓ sh (1 second)
./
> c
(File is not executable.)
Done, took 1 second.
1 test passed.
1 test skipped.
1 test failed.


View File

@ -0,0 +1,3 @@
$TEST_SHELL ../../urchin --color -s sh .testsuite/ |
sed -e 1d -e 's/. seconds\?/1 second/' > $tmp
diff $tmp .urchin-output-expectation