1#!/bin/sh 2 3# clock.test needs a timezone to be set 4export TZ="Europe/London" 5export TCL_LIBRARY=library 6 7for i in `ls tests/*.test | awk -F/ '{print $2}'`; do 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 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 17done 18