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