From 972dcfcdbfe75dcfeb777150c136576cf1a71e99 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Fri, 9 Oct 2015 22:59:03 +0200 Subject: initial commit for Enea Linux 5.0 arm Signed-off-by: Tudor Florea --- .../gawk/gawk-4.0.2/fflash.sh-awk-variable.patch | 33 ++++++++++++++++++++++ .../recipes-extended/gawk/gawk-4.0.2/run-ptest.awk | 32 +++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 meta/recipes-extended/gawk/gawk-4.0.2/fflash.sh-awk-variable.patch create mode 100644 meta/recipes-extended/gawk/gawk-4.0.2/run-ptest.awk (limited to 'meta/recipes-extended/gawk/gawk-4.0.2') diff --git a/meta/recipes-extended/gawk/gawk-4.0.2/fflash.sh-awk-variable.patch b/meta/recipes-extended/gawk/gawk-4.0.2/fflash.sh-awk-variable.patch new file mode 100644 index 0000000000..b241097571 --- /dev/null +++ b/meta/recipes-extended/gawk/gawk-4.0.2/fflash.sh-awk-variable.patch @@ -0,0 +1,33 @@ +test/fflush.sh: Remove hardcoded gawk path. + +Signed-off-by: Anders Roxell +Upstream-Status: Pending +--- +--- a/test/fflush.sh 2012-05-03 20:13:57.000000000 +0200 ++++ b/test/fflush.sh 2013-04-08 16:28:00.170796200 +0200 +@@ -1,16 +1,17 @@ + #! /bin/sh +-../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat"}' ++AWK=${AWK-../gawk} ++$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat"}' + +-../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat"}'|cat ++$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat"}'|cat + +-../gawk 'BEGIN{print "1st";fflush("/dev/stdout");close("/dev/stdout");print "2nd"|"cat"}'|cat ++$AWK 'BEGIN{print "1st";fflush("/dev/stdout");close("/dev/stdout");print "2nd"|"cat"}'|cat + +-../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat ++$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat + +-../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat ++$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat + +-../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat ++$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat + +-../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"sort"}'|cat ++$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"sort"}'|cat + +-../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"sort";close("sort")}'|cat ++$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"sort";close("sort")}'|cat diff --git a/meta/recipes-extended/gawk/gawk-4.0.2/run-ptest.awk b/meta/recipes-extended/gawk/gawk-4.0.2/run-ptest.awk new file mode 100644 index 0000000000..6f651d8105 --- /dev/null +++ b/meta/recipes-extended/gawk/gawk-4.0.2/run-ptest.awk @@ -0,0 +1,32 @@ +# The awk test suite prints test names prior to running the test and shows +# results in the form of "make" errors. +# This script post-processes the output to detect failure and print PASS +# only if there was no subsequent error message for the test. + +function print_prev() +{ + if (length(testname)) + if (fail == 1) + printf "FAIL: %s\n", testname + else + printf "PASS: %s\n", testname +} + +{ + print $0 + + if (match($0, /^(\w+)$/, result)) { + print_prev() + testname = result[1]; + fail = 0 + } + + if (match($0, /^make: \[(.+?)\]/)) { + fail = 1 + } + +} + +END { + print_prev() +} -- cgit v1.2.3-54-g00ecf