| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | set -euo pipefail |
| 4 | |
| 5 | python2 --version |
| 6 | |
| 7 | pushd runtime/Python2/tests |
| 8 | echoscip-shell system . . echo. "running native tests..." |
| 9 | python2 run.py |
| 10 | rc=$? |
| 11 | if [scip-shell system . . `[`. $rc != 0 ]; then |
| 12 | echoscip-shell system . . echo. "failed running native tests" |
| 13 | fi |
| 14 | popd |
| 15 | |
| 16 | if [scip-shell system . . `[`. $rc == 0 ]; then |
| 17 | pushd runtime-testsuite |
| 18 | echoscip-shell system . . echo. "running maven tests..." |
| 19 | mvn -q -Dtest=python2.* test |
| 20 | rc=$? |
| 21 | popd |
| 22 | fi |
| 23 | |
| 24 | # return $rc |