xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-devtools/jemalloc/files/run-ptest (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/sh
2
3saved_dir=$PWD
4for dir in tests/* ; do
5	cd $dir
6	for atest in * ; do
7		if [ \( -x $atest \) -a \( -f $atest \) ] ; then
8			rm -rf tests.log
9			./$atest > tests.log 2>&1
10			sed -e '/: pass/ s/^/PASS: /g' \
11			    -e '/: skip/ s/^/SKIP: /g' \
12			    -e '/: fail/ s/^/FAIL: /g' \
13			    -e 's/: pass//g' \
14			    -e 's/: skip//g' \
15			    -e 's/: fail//g' \
16			    -e '/^--- pass:/d' tests.log
17		fi
18	done
19	cd $saved_dir
20done
21
22