Run tests on Python 2, or 3, or both, depending on what's available.
Chris Pressey
1 year, 8 months ago
0 | 0 |
#!/bin/sh
|
1 | 1 |
|
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
|
3 | 14 |
|
4 | 15 |
falderal $APPLIANCES README.md
|
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)"
|