git @ Cat's Eye Technologies Exanoke / cleanups
Run tests on Python 2, or 3, or both, depending on what's available. Chris Pressey 1 year, 8 months ago
4 changed file(s) with 16 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
00 #!/bin/sh
11
2 APPLIANCES="tests/appliances/exanoke.py.md"
2 APPLIANCES=""
3 if command -v python2 > /dev/null 2>&1; then
4 APPLIANCES="$APPLIANCES tests/appliances/exanoke.py2.md"
5 fi
6 if command -v python3 > /dev/null 2>&1; then
7 APPLIANCES="$APPLIANCES tests/appliances/exanoke.py3.md"
8 fi
9
10 if [ "x$APPLIANCES" = "x" ]; then
11 echo "No suitable Python versions found."
12 exit 1
13 fi
314
415 falderal $APPLIANCES README.md
+0
-5
tests/appliances/exanoke.py.md less more
0 -> Functionality "Evaluate Exanoke program" is implemented by
1 -> shell command "python2 src/exanoke.py %(test-body-file)"
2
3 -> Functionality "Evaluate Exanoke program" is implemented by
4 -> shell command "python3 src/exanoke.py %(test-body-file)"
0 -> Functionality "Evaluate Exanoke program" is implemented by
1 -> shell command "python2 src/exanoke.py %(test-body-file)"
0 -> Functionality "Evaluate Exanoke program" is implemented by
1 -> shell command "python3 src/exanoke.py %(test-body-file)"