[gitconv @ Add tests/run-tests.]
[libmpd-haskell.git] / tests / run-tests
blobeae28e62cd2d9898d3958fc8abc44a8245c510fd
1 #!/bin/sh
3 # Run tests and signal error on failure.
4 # Saves output in 'test.log', unless no failures are detected.
6 runhaskell -iNetwork tests/Properties.hs \
7 | tee test.log && if grep Falsifiable test.log >/dev/null ; then exit 1 ;
8 else rm -f test.log ; fi
10 runhaskell -iNetwork tests/Commands.hs \
11 | tee test.log && \
12 if grep "\*\*\* FAILURE \*\*\*" test.log >/dev/null ; then \
13 exit 1 ; else rm -f test.log ; fi