[gitconv @ Stricter tests]
[libmpd-haskell.git] / tests / run-tests
blob7d6d2303ff1272746b95757eb502d5b7a5c3e479
1 #!/bin/sh
3 # Run tests and signal error on failure.
4 # Saves output in 'test.log', unless no failures are detected.
6 runhaskell -itests tests/Main.hs | tee test.log
7 if $(grep Falsifiable test.log >/dev/null) \
8 || $(grep "\*\*\* FAILURE \*\*\*" test.log >/dev/null) ; then
9 #echo "Failure detected!"
10 exit 1
11 else
12 rm test.log
14 runhaskell Setup configure --disable-optimization -f test && \
15 runhaskell Setup build && runhaskell Setup haddock