summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/gawk/gawk-4.0.2
diff options
context:
space:
mode:
authorChong Lu <Chong.Lu@windriver.com>2014-01-22 12:55:34 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-28 00:52:33 +0000
commite1780a29d0c88019692ca0094cf76fd6c7c70c8e (patch)
tree4fbd6e30f36abab9a12df0928feadae4886ca846 /meta/recipes-extended/gawk/gawk-4.0.2
parent1f45bc347169812c8a0c79132e491293268ad8d8 (diff)
downloadpoky-e1780a29d0c88019692ca0094cf76fd6c7c70c8e.tar.gz
gawk: enable ptest support
Install gawk test suite and run it as ptest. (From OE-Core rev: 06b6b29a526541acde8916d6ba504655f4401f37) 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>
Diffstat (limited to 'meta/recipes-extended/gawk/gawk-4.0.2')
-rw-r--r--meta/recipes-extended/gawk/gawk-4.0.2/run-ptest10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-extended/gawk/gawk-4.0.2/run-ptest b/meta/recipes-extended/gawk/gawk-4.0.2/run-ptest
new file mode 100644
index 0000000000..7d214eafbe
--- /dev/null
+++ b/meta/recipes-extended/gawk/gawk-4.0.2/run-ptest
@@ -0,0 +1,10 @@
1#!/bin/sh
2
3cd test
4for i in `grep -vE "@|^$|#|Gt-dummy" Maketests |awk -F: '{print $1}'`; \
5 do LC_ALL=${GAWKLOCALE:-C} LANG=${GAWKLOCALE:-C} srcdir=`pwd` AWK=gawk CMP=cmp \
6 make -f Maketests $i &>$i.tmp; \
7 grep -q "Error" $i.tmp; \
8 if [ $? == 0 ]; then echo "FAIL: $i"; \
9 else echo "PASS: $i"; rm -f $i.tmp; fi; \
10done