From 61638bdba3857825d1306caa67ee58b057d3bbdb Mon Sep 17 00:00:00 2001 From: Mingli Yu Date: Wed, 11 Aug 2021 17:38:41 +0800 Subject: jemalloc: add ptest support Add ptest support. Signed-off-by: Mingli Yu Signed-off-by: Khem Raj --- meta-oe/recipes-devtools/jemalloc/files/run-ptest | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-oe/recipes-devtools/jemalloc/files/run-ptest (limited to 'meta-oe/recipes-devtools/jemalloc/files') diff --git a/meta-oe/recipes-devtools/jemalloc/files/run-ptest b/meta-oe/recipes-devtools/jemalloc/files/run-ptest new file mode 100644 index 0000000000..ea9d80cbb6 --- /dev/null +++ b/meta-oe/recipes-devtools/jemalloc/files/run-ptest @@ -0,0 +1,19 @@ +#!/bin/sh + +saved_dir=$PWD +for dir in tests/* ; do + cd $dir + for atest in * ; do + if [ \( -x $atest \) -a \( -f $atest \) ] ; then + ./$atest > ${atest}.stdout 2> ${atest}.stderr + if [ $? = 0 ] ; then + echo "PASS: $dir $atest" + rm ${atest}.stdout ${atest}.stderr + else + echo "FAIL: ${dir}/${atest}" + fi + fi + done + cd $saved_dir +done + -- cgit v1.2.3-54-g00ecf