* 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
bin_PROGRAMS =
dist_man_MANS =
TESTS =
+TESTS_ENVIRONMENT =
noinst_PROGRAMS = genstring
check_PROGRAMS = test_hd
if HAVE_PYTHON
+TESTS_ENVIRONMENT += PYTHON=${PYTHON}
TESTS += tools/python-yasm/tests/python_test.sh
endif
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()))"
+ ${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