jemalloc: add ptest support

Add ptest support.

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Mingli Yu authored and Khem Raj committed 2021-08-11 10:23:54 -07:00
1 parent 7a512dfc24
commit 61638bdba3
2 files changed
+35 -1

No files matched your search

@@ -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