c1e47cc5df
¬ Fall back on `python`. Unlike the solution in PR #2395 this¬ puts all the responsibility for selecting the right python in the¬ case that "python" is Python 3 on the user. I've followed the lead¬ of the Python documentation Makefile. See http://hg.python.org/cpython/file/340d48347295/Doc/README.txt http://hg.python.org/cpython/file/340d48347295/Doc/Makefile Intent is that if your `python` is Python 2 everything works as before and that is your `python` is Python 3 but you have a `python2` you can specify that instead.¬
23 lines
385 B
Bash
Executable file
23 lines
385 B
Bash
Executable file
#!/bin/sh
|
|
|
|
failures=0
|
|
|
|
PYTHON=${PYTHON:-python}
|
|
|
|
echo "*** Running visual tests..."
|
|
$PYTHON tests/visual_tests/test.py -q
|
|
failures=$((failures+$?))
|
|
|
|
echo "*** Running C++ tests..."
|
|
for FILE in tests/cpp_tests/*-bin; do
|
|
${FILE} -q -d .;
|
|
failures=$((failures+$?))
|
|
done
|
|
|
|
echo
|
|
|
|
echo "*** Running python tests..."
|
|
$PYTHON tests/run_tests.py -q
|
|
failures=$((failures+$?))
|
|
|
|
exit $failures
|