urchin/tests/Flags/-e,--exit-on-fail

12 lines
209 B
Plaintext
Raw Normal View History

2016-02-28 14:43:32 -05:00
#!/bin/sh
../../urchin -e ./.test_-e,--exit-on-fail > $tmp
2016-01-25 09:14:13 -05:00
result=$?
2016-02-28 14:43:32 -05:00
set -e
2016-01-25 09:14:13 -05:00
grep '1 should run.' $tmp
grep '2 should run.' $tmp
grep -v '3 should not run.' $tmp
grep -v '4 should not run.' $tmp
exit $result