xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/tcltk/tcl/run-ptest (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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