diff options
author | Chong Lu <Chong.Lu@windriver.com> | 2014-01-22 12:55:34 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-28 00:48:25 +0000 |
commit | 06b6b29a526541acde8916d6ba504655f4401f37 (patch) | |
tree | f37b953bafdcfd0761fba1b50c76c2d0e4724ebc /meta/recipes-extended/gawk/gawk-4.0.2 | |
parent | 0b49729af46f98a1bd155fc798d39d5d12c674cd (diff) | |
download | openembedded-core-06b6b29a526541acde8916d6ba504655f4401f37.tar.gz openembedded-core-06b6b29a526541acde8916d6ba504655f4401f37.tar.bz2 openembedded-core-06b6b29a526541acde8916d6ba504655f4401f37.zip |
gawk: enable ptest support
Install gawk test suite and run it as ptest.
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-extended/gawk/gawk-4.0.2')
-rw-r--r-- | meta/recipes-extended/gawk/gawk-4.0.2/run-ptest | 10 |
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 @@ +#!/bin/sh + +cd test +for i in `grep -vE "@|^$|#|Gt-dummy" Maketests |awk -F: '{print $1}'`; \ + do LC_ALL=${GAWKLOCALE:-C} LANG=${GAWKLOCALE:-C} srcdir=`pwd` AWK=gawk CMP=cmp \ + make -f Maketests $i &>$i.tmp; \ + grep -q "Error" $i.tmp; \ + if [ $? == 0 ]; then echo "FAIL: $i"; \ + else echo "PASS: $i"; rm -f $i.tmp; fi; \ +done |