diff options
Diffstat (limited to 'meta/recipes-devtools/tcltk/tcl/run-ptest')
-rw-r--r-- | meta/recipes-devtools/tcltk/tcl/run-ptest | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-devtools/tcltk/tcl/run-ptest b/meta/recipes-devtools/tcltk/tcl/run-ptest index 6d52f34a9f..a62b703082 100644 --- a/meta/recipes-devtools/tcltk/tcl/run-ptest +++ b/meta/recipes-devtools/tcltk/tcl/run-ptest | |||
@@ -1,7 +1,11 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | # clock.test needs a timezone to be set | ||
4 | export TZ="Europe/London" | ||
5 | export TCL_LIBRARY=library | ||
6 | |||
3 | for i in `ls tests/*.test | awk -F/ '{print $2}'`; do | 7 | for i in `ls tests/*.test | awk -F/ '{print $2}'`; do |
4 | TCL_LIBRARY=library ./tcltest tests/all.tcl -file $i >$i.log 2>&1 | 8 | ./tcltest tests/all.tcl -file $i >$i.log 2>&1 |
5 | grep -q -F -e "Files with failing tests:" -e "Test files exiting with errors:" $i.log | 9 | grep -q -F -e "Files with failing tests:" -e "Test files exiting with errors:" $i.log |
6 | if [ $? -eq 0 ]; then | 10 | if [ $? -eq 0 ]; then |
7 | echo "FAIL: $i" | 11 | echo "FAIL: $i" |