scripts/run-tests
raw| 1 | #!/bin/bash |
| 2 | if [ ! -f 'knob.cabal' ]; then |
| 3 | echo -n "Can't find knob.cabal; please run this script as" |
| 4 | echo -n " ./scripts/run-tests from within the knob source" |
| 5 | echo " directory" |
| 6 | exit 1 |
| 7 | fi |
| 8 | |
| 9 | . scripts/common.bash |
| 10 | |
| 11 | require_cabal_dev |
| 12 | |
| 13 | clean_dev_install |
| 14 | |
| 15 | pushd tests |
| 16 | rm -rf dist |
| 17 | $CABAL_DEV -s ../cabal-dev install || exit 1 |
| 18 | popd |
| 19 | |
| 20 | cabal-dev/bin/knob_tests |