]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/blob - meta/recipes-devtools/tcltk/tcl/run-ptest
87e025fce12b57298bf88c3cdf985e71bc0cd568
[thirdparty/openembedded/openembedded-core.git] / meta / recipes-devtools / tcltk / tcl / run-ptest
1 #!/bin/sh
2
3 # clock.test needs a timezone to be set
4 export TZ="Europe/London"
5 export TCL_LIBRARY=library
6
7 # Some tests are overly strict with timings and fail on loaded systems.
8 # See bugs #14825 #14882 #15081 #15321.
9 SKIPPED_TESTS='async-* cmdMZ-6.6 event-* exit-1.* socket-* socket_inet-*'
10
11 for i in `ls tests/*.test | awk -F/ '{print $2}'`; do
12 ./tcltest tests/all.tcl -file $i -skip "$SKIPPED_TESTS" >$i.log 2>&1
13 grep -q -F -e "Files with failing tests:" -e "Test files exiting with errors:" $i.log
14 if [ $? -eq 0 ]; then
15 echo "FAIL: $i"
16 cat $i.log
17 else
18 echo "PASS: $i"
19 fi
20 rm -f $i.log
21 done