diff --git a/test.sh b/test.sh index af28413..4ae83e6 100755 --- a/test.sh +++ b/test.sh @@ -1,8 +1,19 @@ #!/bin/sh -APPLIANCES="tests/appliances/zowie.py2.md tests/appliances/zowie.py3.md" +APPLIANCES="" +if command -v python2 > /dev/null 2>&1; then + APPLIANCES="$APPLIANCES tests/appliances/zowie.py2.md" +fi +if command -v python3 > /dev/null 2>&1; then + APPLIANCES="$APPLIANCES tests/appliances/zowie.py3.md" +fi if [ -x bin/zowie-c ]; then APPLIANCES="$APPLIANCES tests/appliances/zowie-c.md" fi +if [ "x$APPLIANCES" = "x" ]; then + echo "No suitable Python versions or RPython-compiled executables found." + exit 1 +fi + falderal $APPLIANCES tests/ZOWIE.md