| 1 | #!/bin/sh |
| 2 | |
| 3 | errorexit() { |
| 4 | echo $1 |
| 5 | exit 1 |
| 6 | } |
| 7 | |
| 8 | # prepare locales to make date format reproducible |
| 9 | LC_ALL=en_US |
| 10 | LANG=en |
| 11 | LINGUAS=en |
| 12 | export LC_ALL LANG LINGUAS |
| 13 | |
| 14 | # run the test |
| 15 | ./testsms > testsms.log |
| 16 | |
| 17 | # check if output differs from what it should be |
| 18 | diff testsms.log testsms-output.txt |