Skip to content

Commit 267b800

Browse files
committed
Allow the python interpreter to be specified when running tests
1 parent 2110c9d commit 267b800

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

Test/test_standalone.sh

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,54 @@
11
# Execute all tests that can run without any dependencies
2+
DIRNAME=`dirname "$0"`
3+
4+
PYTHON="${PYTHON:-python}"
25

36
export PYTHONPATH=".."
47

58
FAILED=0
6-
python test_range_helper.py
9+
$PYTHON "$DIRNAME/test_range_helper.py"
10+
if [ $? -ne 0 ]
11+
then
12+
FAILED=`expr $FAILED + 1`
13+
fi
14+
15+
$PYTHON "$DIRNAME/test_scan_settings.py"
16+
if [ $? -ne 0 ]
17+
then
18+
FAILED=`expr $FAILED + 1`
19+
fi
20+
21+
$PYTHON "$DIRNAME/test_commands.py"
722
if [ $? -ne 0 ]
823
then
924
FAILED=`expr $FAILED + 1`
1025
fi
1126

12-
python test_scan_settings.py
27+
$PYTHON "$DIRNAME/test_table_scan.py"
1328
if [ $? -ne 0 ]
1429
then
1530
FAILED=`expr $FAILED + 1`
1631
fi
1732

18-
python test_commands.py
33+
$PYTHON "$DIRNAME/test_data.py"
1934
if [ $? -ne 0 ]
2035
then
2136
FAILED=`expr $FAILED + 1`
2237
fi
2338

24-
python test_table_scan.py
39+
$PYTHON -m doctest "$DIRNAME/test_ndim.txt"
2540
if [ $? -ne 0 ]
2641
then
2742
FAILED=`expr $FAILED + 1`
2843
fi
2944

30-
python test_data.py
45+
$PYTHON -m doctest "$DIRNAME/test_alignment.py"
3146
if [ $? -ne 0 ]
3247
then
3348
FAILED=`expr $FAILED + 1`
3449
fi
3550

36-
python -m doctest test_ndim.txt
51+
$PYTHON -m doctest "$DIRNAME/test_spreadsheet.py"
3752
if [ $? -ne 0 ]
3853
then
3954
FAILED=`expr $FAILED + 1`

0 commit comments

Comments
 (0)