Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
Andrew Geissler | 5f35090 | 2021-07-23 13:09:54 -0400 | [diff] [blame^] | 3 | # clock.test needs a timezone to be set |
| 4 | export TZ="Europe/London" |
| 5 | export TCL_LIBRARY=library |
| 6 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 7 | for i in `ls tests/*.test | awk -F/ '{print $2}'`; do |
Andrew Geissler | 5f35090 | 2021-07-23 13:09:54 -0400 | [diff] [blame^] | 8 | ./tcltest tests/all.tcl -file $i >$i.log 2>&1 |
| 9 | grep -q -F -e "Files with failing tests:" -e "Test files exiting with errors:" $i.log |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 10 | if [ $? -eq 0 ]; then |
| 11 | echo "FAIL: $i" |
| 12 | cat $i.log |
| 13 | else |
| 14 | echo "PASS: $i" |
| 15 | fi |
| 16 | rm -f $i.log |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | done |