From 9cc183a531e1e309a99784f65b15c0fb1a18ddef Mon Sep 17 00:00:00 2001
From: P Dheeraj Srujan Kumar
Date: Fri, 6 May 2022 06:11:20 +0530
Subject: Update to internal 1-0.91-67
Signed-off-by: P Dheeraj Srujan Kumar
---
.../meta-common/recipes-core/expat/expat/run-ptest | 23 ++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 meta-openbmc-mods/meta-common/recipes-core/expat/expat/run-ptest
(limited to 'meta-openbmc-mods/meta-common/recipes-core/expat/expat/run-ptest')
diff --git a/meta-openbmc-mods/meta-common/recipes-core/expat/expat/run-ptest b/meta-openbmc-mods/meta-common/recipes-core/expat/expat/run-ptest
new file mode 100644
index 000000000..2cd3637d8
--- /dev/null
+++ b/meta-openbmc-mods/meta-common/recipes-core/expat/expat/run-ptest
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+output=${1:-"expat_tests.log"} # default log file
+
+# logging function
+function testCheck() {
+ testExec="$1"
+ shift
+ echo && echo ${testExec} && ./${testExec} "$@"
+ error=$?
+ result=$([[ ${error} -eq 0 ]] && echo "PASS" || echo "FAIL")
+ echo "${result}: ${testExec}" && echo "============================"
+}
+
+export output
+export -f testCheck
+TIME=$(which time)
+
+echo "runtests"
+${TIME} -f 'Execution time: %e s' bash -c "./runtests -v"
+echo "runtestspp"
+${TIME} -f 'Execution time: %e s' bash -c "./runtestspp -v"
+echo
--
cgit v1.2.3