aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/hiredis/hiredis/run-ptest
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/hiredis/hiredis/run-ptest')
-rw-r--r--meta-oe/recipes-extended/hiredis/hiredis/run-ptest18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/hiredis/hiredis/run-ptest b/meta-oe/recipes-extended/hiredis/hiredis/run-ptest
new file mode 100644
index 0000000000..8b352c3401
--- /dev/null
+++ b/meta-oe/recipes-extended/hiredis/hiredis/run-ptest
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+TEST_SSL=0 TEST_ASYNC=0 ./test.sh | sed -e 's/PASSED/PASS/g' -e 's/FAILED/FAIL/g' -e 's/SKIPPED/SKIP/g' | awk '
+{
+ gsub(/\x1B\[[0-9;]*m/, "")
+ if ($NF == "PASS" || $NF == "FAIL" || $NF == "SKIP") {
+ printf "%s: %s\n", $NF, $0
+ } else {
+ print
+ }
+}' | awk '{
+ if ($NF == "PASS" || $NF == "FAIL" || $NF == "SKIP") {
+ $NF = ""
+ print $0
+ } else {
+ print
+ }
+}' | awk '{gsub(/:/,"",$NF)}1'