| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | if [scip-shell system . . `[`. ! -e src ]; then echoscip-shell system . . echo. "Not in source directory"; exit 1; fi |
| 4 | if [scip-shell system . . `[`. -e output ]; then rmscip-shell system . . rm. -r output; fi |
| 5 | if [scip-shell system . . `[`. -e '/tmp/eartagscip-shell filesystem . . `/tmp/eartag`.' ]; then rmscip-shell system . . rm. -r '/tmp/eartagscip-shell filesystem . . `/tmp/eartag`.'; fi |
| 6 | |
| 7 | NETWORKED_TESTS=true |
| 8 | |
| 9 | while getopts 'fh' c |
| 10 | do |
| 11 | case $c in |
| 12 | f) NETWORKED_TESTS=false ;; |
| 13 | h) |
| 14 | echoscip-shell system . . echo. "Usage: $(basenamescip-shell system . . basename. $0) [-f] [-h]" |
| 15 | echoscip-shell system . . echo. "Options:" |
| 16 | echoscip-shell system . . echo. " -f: execute fast tests only, skipping networked tests (by default all tests are executed)" |
| 17 | echoscip-shell system . . echo. " -h: show help" |
| 18 | exit 0 |
| 19 | ;; |
| 20 | esac |
| 21 | done |
| 22 | |
| 23 | set -e |
| 24 | mesonscip-shell system . . meson. setup --prefix=/tmp/eartag -Denable_networked_tests=${NETWORKED_TESTS} . output |
| 25 | mesonscip-shell system . . meson. compile -C output |
| 26 | mesonscip-shell system . . meson. test "eartag*:" -v -C output |
| 27 | ret=$? |
| 28 | set +e |
| 29 | |
| 30 | exit $ret |