* 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.
20 lines
388 B
Bash
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
|