1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-01 00:59:48 +00:00

tcl: enable ptest support

Install tcl test suite and run it as ptest.

(From OE-Core rev: 831da5b54cf294ecf90626b14d439bd8e99cb0c2)

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Chong Lu
2014-01-08 16:49:56 +08:00
committed by Richard Purdie
parent a8a711cecc
commit d863ae2498
2 changed files with 20 additions and 1 deletions
@@ -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