test tap format
and find new cross-shell bugs in urchin!
This commit is contained in:
parent
e0fc0356a9
commit
008d8a2829
@ -1,4 +0,0 @@
|
||||
tmp=$(mktemp)
|
||||
|
||||
../../urchin -t .testsuite/ | sed 1d > $tmp
|
||||
diff $tmp .expected-output
|
7
tests/Flags/.tap-output-expectation
Normal file
7
tests/Flags/.tap-output-expectation
Normal file
@ -0,0 +1,7 @@
|
||||
not ok 1 - a (sh)
|
||||
# ------------ Begin output ------------
|
||||
# This is stdout from a.
|
||||
# ------------ End output ------------
|
||||
ok 2 - b (sh)
|
||||
ok 3 - c (File is not executable.) # SKIP
|
||||
1..3
|
0
tests/Flags/.testsuite/.urchin
Normal file
0
tests/Flags/.testsuite/.urchin
Normal file
17
tests/Flags/.urchin-output-expectation
Normal file
17
tests/Flags/.urchin-output-expectation
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
./
|
||||
> a
|
||||
[31m✗ [0msh (1 second)
|
||||
[31m # This is stdout from a.
|
||||
[0m./
|
||||
> b
|
||||
[32m✓ [0msh (1 second)
|
||||
./
|
||||
> c
|
||||
(File is not executable.)
|
||||
|
||||
Done, took 1 second.
|
||||
1 test passed.
|
||||
1 test skipped.
|
||||
[31m1 test failed.
|
||||
[m
|
3
tests/Flags/Test Anything Protocol format
Executable file
3
tests/Flags/Test Anything Protocol format
Executable file
@ -0,0 +1,3 @@
|
||||
$TEST_SHELL ../../urchin -s sh -t .testsuite/ |
|
||||
sed -e 1d -e /second/d > $tmp
|
||||
diff $tmp .tap-output-expectation
|
3
tests/Flags/Urchin format
Executable file
3
tests/Flags/Urchin format
Executable file
@ -0,0 +1,3 @@
|
||||
$TEST_SHELL ../../urchin -s sh .testsuite/ |
|
||||
sed -e 1d -e 's/. seconds\?/1 second/' > $tmp
|
||||
diff $tmp .urchin-output-expectation
|
@ -1,2 +0,0 @@
|
||||
,ok
|
||||
false,not ok
|
|
4
urchin
4
urchin
@ -314,7 +314,7 @@ report_outcome() {
|
||||
printf '\033[31m'
|
||||
fi
|
||||
printf '%s\n' "$not_oks $(plural test "$not_oks") failed."
|
||||
printf '\033[m'
|
||||
printf '\033[m\n'
|
||||
fi
|
||||
test "$not_oks" -eq '0'
|
||||
}
|
||||
@ -457,7 +457,7 @@ do
|
||||
shift
|
||||
done
|
||||
|
||||
if $cycle_shell && test -f "$shell_list"; then
|
||||
if ! $cycle_shell && test -f "$shell_list"; then
|
||||
echo "The -n/--disable-cycling and -s/--shell options clash with each other." >&2
|
||||
urchin_exit 11
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user