Test die on fail.
This commit is contained in:
parent
d01e993041
commit
f2d63b2953
0
tests/.die-on-fail/1 should run.
Executable file
0
tests/.die-on-fail/1 should run.
Executable file
1
tests/.die-on-fail/2 should run.
Executable file
1
tests/.die-on-fail/2 should run.
Executable file
@ -0,0 +1 @@
|
||||
false
|
1
tests/.die-on-fail/3 should not run.
Executable file
1
tests/.die-on-fail/3 should not run.
Executable file
@ -0,0 +1 @@
|
||||
false
|
1
tests/.die-on-fail/4 should not run.
Executable file
1
tests/.die-on-fail/4 should not run.
Executable file
@ -0,0 +1 @@
|
||||
false
|
11
tests/Die on fail.
Executable file
11
tests/Die on fail.
Executable file
@ -0,0 +1,11 @@
|
||||
tmp=$(mktemp)
|
||||
../urchin -e -f ./.die-on-fail > $tmp
|
||||
result=$?
|
||||
|
||||
grep '1 should run.' $tmp
|
||||
grep '2 should run.' $tmp
|
||||
grep -v '3 should not run.' $tmp
|
||||
grep -v '4 should not run.' $tmp
|
||||
|
||||
rm $tmp
|
||||
exit $result
|
Loading…
Reference in New Issue
Block a user