Files
astronomy/generate/unit_test_python
2019-06-26 19:12:59 -04:00

13 lines
343 B
Bash
Executable File

#!/bin/bash
Fail()
{
echo "ERROR($0): $1"
exit 1
}
python3 --version || Fail "Cannot print python version"
python3 test.py time || Fail "Failure reported by test.py (time)"
python3 test.py moon || Fail "Failure reported by test.py (moon)"
python3 test.py astro_check > temp/py_check.txt || Fail "Failure in Python astro_check"
exit 0