Debian Codegraph @

run-tests

raw symbols SCIP
1 #!/bin/sh
2
3 if [ ! -e src ]; then echo "Not in source directory"; exit 1; fi
4 if [ -e output ]; then rm -r output; fi
5 if [ -e '/tmp/eartag' ]; then rm -r '/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 echo "Usage: $(basename $0) [-f] [-h]"
15 echo "Options:"
16 echo " -f: execute fast tests only, skipping networked tests (by default all tests are executed)"
17 echo " -h: show help"
18 exit 0
19 ;;
20 esac
21 done
22
23 set -e
24 meson setup --prefix=/tmp/eartag -Denable_networked_tests=${NETWORKED_TESTS} . output
25 meson compile -C output
26 meson test "eartag*:" -v -C output
27 ret=$?
28 set +e
29
30 exit $ret