From 831da5b54cf294ecf90626b14d439bd8e99cb0c2 Mon Sep 17 00:00:00 2001 From: Chong Lu Date: Wed, 8 Jan 2014 16:49:56 +0800 Subject: tcl: enable ptest support Install tcl test suite and run it as ptest. Signed-off-by: Chong Lu Signed-off-by: Saul Wold --- meta/recipes-devtools/tcltk/tcl/run-ptest | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 meta/recipes-devtools/tcltk/tcl/run-ptest (limited to 'meta/recipes-devtools/tcltk/tcl') diff --git a/meta/recipes-devtools/tcltk/tcl/run-ptest b/meta/recipes-devtools/tcltk/tcl/run-ptest new file mode 100644 index 0000000000..a5d6548d2a --- /dev/null +++ b/meta/recipes-devtools/tcltk/tcl/run-ptest @@ -0,0 +1,8 @@ +#!/bin/sh + +for i in `ls tests/*.test |awk -F/ '{print $2}'`; \ + do TCL_LIBRARY=library ./tcltest tests/all.tcl -file $i &>$i.tmp; \ + grep -q "^Files with failing tests:" $i.tmp; \ + if [ $? == 0 ]; then echo "FAIL: $i"; \ + else echo "PASS: $i"; rm -f $i.tmp; fi; \ +done -- cgit 1.2.3-korg