blob: a62b7030821a0b9efb6bcb208674277c0b9d22a9 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#!/bin/sh
2
Andrew Geissler5f350902021-07-23 13:09:54 -04003# clock.test needs a timezone to be set
4export TZ="Europe/London"
5export TCL_LIBRARY=library
6
Brad Bishop19323692019-04-05 15:28:33 -04007for i in `ls tests/*.test | awk -F/ '{print $2}'`; do
Andrew Geissler5f350902021-07-23 13:09:54 -04008 ./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 Bishop19323692019-04-05 15:28:33 -040010 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 Williamsc124f4f2015-09-15 14:41:29 -050017done