mirror of
https://github.com/yasm/yasm
synced 2026-08-26 22:26:05 -04:00
* python-yasm/tests/Makefile.inc: Pass PYTHON setting down through TESTS_ENVIRONMENT. * Makefile.am: Initialize TESTS_ENVIRONMENT to empty. svn path=/trunk/yasm/; revision=1501
17 lines
553 B
Bash
Executable file
17 lines
553 B
Bash
Executable file
#!/bin/sh
|
|
# Based on _sanity.sh from Quod Libet
|
|
# http://www.sacredchao.net/quodlibet/
|
|
# $Id$
|
|
|
|
set -e
|
|
|
|
if test "$1" = "--help" -o "$1" = "-h"; then
|
|
echo "Usage: $0 --sanity | [TestName] ..."
|
|
exit 0
|
|
elif [ "$1" = "--sanity" ]; then
|
|
echo "Running static sanity checks."
|
|
grep "except None:" ${srcdir}/tools/python-yasm/tests/*.py
|
|
else
|
|
${PYTHON} -c "import sys; import glob; sys.path.insert(0, '${srcdir}/tools/python-yasm'); sys.path.insert(0, glob.glob('build/lib.*')[0]); import tests; raise SystemExit(tests.unit('$*'.split()))"
|
|
fi
|
|
|