]> code.ossystems Code Review - openembedded-core.git/commitdiff
expat: Simplify ptest-runner
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 18 Jan 2022 15:43:40 +0000 (15:43 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Jan 2022 10:40:57 +0000 (10:40 +0000)
Upstream mentioned our ptest-runner could likely be simplified. I had a
look at the output and yes, most of the code in the runner is now obsolete
as upstream output is compatible with what we need. Simplify accordingly.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/expat/expat/run-ptest

index 59d8ab57e389b6ae926e4549d4db1e05eec04895..dbf602ca800219d85c2a2955cfdfcb934394ea61 100644 (file)
@@ -1,23 +1,9 @@
 #!/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 "Architecture: $(uname -m)" > ${output}
-echo "Image: $(uname -sr)" >> ${output}
-${TIME} -f 'Execution time: %e s' bash -c "testCheck runtests -v" |& tee -a ${output}
-${TIME} -f 'Execution time: %e s' bash -c "testCheck runtestspp -v" |& tee -a ${output}
+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