3 # Run the test harness for perfevent code.
5 # The test harness is designed to check the correct function of the
6 # internal perfevent function calls.
8 # Copyright (c) 2014 Joe White
12 echo "QA output created by $seq"
14 # get standard environment, filters and checks
19 test -e perfevent
/perfevent_test || _notrun
"Optional perfevent PMDA not present"
20 status
=1 # failure is the default
24 if [ -f perf_event_test.c
]
26 # we're in the git tree, rebuild the binary to be sure, to be sure
29 if $PCP_MAKE_PROG >>$here/$seq.full
2>&1
33 echo "Arrg, failed to rebuild perfevent/perfevent_test ... see $seq.full"
38 if .
/perfevent_test all
2>/dev
/null
;
40 echo "Unit tests Passed"