summaryrefslogtreecommitdiffstats
path: root/testsuite/buildok/example.stp
blob: 1051a2478b6f76be1067b84da68585ce1d20b1f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/sh

example_stp=`ls ${SRCDIR}/examples/*.stp`
sub_stp=`ls ${SRCDIR}/examples/small_demos/*.stp`

ret=0

for i in $example_stp $sub_stp
do
#iostat-scsi, sigmon need parameter
case $i in
	(*iostat-scsi.stp)
		stap -p4 $i 5
	;;
	(*sigmon.stp)
		stap -p4 -x 1234 $i SIGKILL
	;;
	(*small_demos/keyhack.stp)
		stap -p4 -g $i
	;;
	*)
		stap -p4 $i
	;;
esac

if [ $? -eq 0 ];then
	echo "PASS: $i"
else
	echo "FAIL: $i"
	ret=1
fi
done

exit $ret