aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/jemalloc/files/run-ptest
blob: b351f947e82612fb4c6cda012522edf957d26410 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

saved_dir=$PWD
for dir in tests/* ; do
	cd $dir
	for atest in * ; do
		if [ \( -x $atest \) -a \( -f $atest \) ] ; then
			rm -rf tests.log
			./$atest > tests.log 2>&1
			sed -e '/: pass/ s/^/PASS: /g' \
			    -e '/: skip/ s/^/SKIP: /g' \
			    -e '/: fail/ s/^/FAIL: /g' \
			    -e 's/: pass//g' \
			    -e 's/: skip//g' \
			    -e 's/: fail//g' \
			    -e '/^--- pass:/d' tests.log
		fi
	done
	cd $saved_dir
done