spot/wrap/python/tests/run.in
Alexandre Duret-Lutz 1095dd7533 * wrap/python/spot.i: Include headers from tgba/ and tgbaalgos/.
* wrap/python/tests/ltl2tgba.py, wrap/python/tests/ltl2tgba.test:
New files.
* wrap/python/tests/Makefile.am (TESTS): Add ltl2tgba.test.
(EXTRA_DIST): Add ltl2tgba.py.
* wrap/python/tests/run.in: Distinguish *.py and *.test.
2003-08-04 13:50:59 +00:00

20 lines
388 B
Bash

#!/bin/sh
# If we are running from make check (srcdir is set) and VERBOSE is
# unset, be quiet.
test -n "$srcdir" && test -z "$VERBOSE" && exec >/dev/null 2>&1
if test -z "$1"; then
echo "Usage: ./run something" 2>&1
exit 1
fi
case $1 in
*.py)
PYTHONPATH=..:@srcdir@/.. exec @PYTHON@ "$@";;
*.test)
sh -x "$@";;
*)
echo "Unknown extension" 2>&1
exit 2;;
esac