From a9cad20ff7fb667cd59b39d2557d37cfe9612505 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Sun, 6 Mar 2016 09:47:16 +0000 Subject: [PATCH] testing --color --- tests/Flags/.urchin-output-expectation | 7 +++---- tests/Flags/.urchin-output-expectation-color | 17 +++++++++++++++++ tests/Flags/Urchin format with --color | 3 +++ 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 tests/Flags/.urchin-output-expectation-color create mode 100755 tests/Flags/Urchin format with --color diff --git a/tests/Flags/.urchin-output-expectation b/tests/Flags/.urchin-output-expectation index ea8b0b9..2e22ffb 100644 --- a/tests/Flags/.urchin-output-expectation +++ b/tests/Flags/.urchin-output-expectation @@ -1,11 +1,11 @@ ./ > a -✗ sh (1 second) +✗ sh (1 second) # This is stdout from a. ./ > b -✓ sh (1 second) +✓ sh (1 second) ./ > c (File is not executable.) @@ -13,5 +13,4 @@ Done, took 1 second. 1 test passed. 1 test skipped. -1 test failed. - +1 test failed. diff --git a/tests/Flags/.urchin-output-expectation-color b/tests/Flags/.urchin-output-expectation-color new file mode 100644 index 0000000..ea8b0b9 --- /dev/null +++ b/tests/Flags/.urchin-output-expectation-color @@ -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. + diff --git a/tests/Flags/Urchin format with --color b/tests/Flags/Urchin format with --color new file mode 100755 index 0000000..f71c7fe --- /dev/null +++ b/tests/Flags/Urchin format with --color @@ -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