diff options
author | wenji <wenji> | 2007-09-16 02:17:01 +0000 |
---|---|---|
committer | wenji <wenji> | 2007-09-16 02:17:01 +0000 |
commit | 76a7bcf1f6d0081540f744129c356e837df1e585 (patch) | |
tree | 2bf1f3b9990cd1fe052b87a70d30fb022971b877 /testsuite/buildok/example.stp | |
parent | ca55dccb1472fec954347b0a00aa9f741d3f063a (diff) | |
download | systemtap-steved-76a7bcf1f6d0081540f744129c356e837df1e585.tar.gz systemtap-steved-76a7bcf1f6d0081540f744129c356e837df1e585.tar.xz systemtap-steved-76a7bcf1f6d0081540f744129c356e837df1e585.zip |
2007-09-15 Wenji Huang <wenji.huang@oracle.com>
PR 4930
* buildok/examples.stp: New test case.
Diffstat (limited to 'testsuite/buildok/example.stp')
-rwxr-xr-x | testsuite/buildok/example.stp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testsuite/buildok/example.stp b/testsuite/buildok/example.stp new file mode 100755 index 00000000..1051a247 --- /dev/null +++ b/testsuite/buildok/example.stp @@ -0,0 +1,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 |