primes/t
raw| 1 | #!/bin/sh |
| 2 | # Shell script to test the Mathomatic prime number tools. |
| 3 | |
| 4 | set -e |
| 5 | set -u |
| 6 | |
| 7 | trap "rm -f test.out bigtest.out" EXIT |
| 8 | |
| 9 | make -j2 check bigcheck |
| 10 | |
| 11 | echo Testing matho-pascal... |
| 12 | ./matho-pascal >/dev/null |
| 13 | |
| 14 | echo Testing matho-sumsq... |
| 15 | ./matho-sumsq 12146807 50000000 >/dev/null |
| 16 | |
| 17 | echo Prime number tools tests successful. |