| 1 | #!/usr/bin/env bash |
| 2 | set -e |
| 3 | export PYTHONPYCACHEPREFIX="$(mktemp -d)" |
| 4 | sum="$(shasum -a 256 tests/test_textload.py 2>/dev/null | cut -d' ' -f1 || sha256sum tests/test_textload.py | cut -d' ' -f1)" |
| 5 | if [ "$sum" != "aa7861f6c40e3fcb0b2f134683050318bc5fb50ddb174ce647099f52d51f9c66" ]; then |
| 6 | echo "tests/test_textload.py was modified; fix the source instead" >&2 |
| 7 | exit 1 |
| 8 | fi |
| 9 | python3 -m unittest discover -s tests |
| 10 |