zsh completions: minor tweaks
[pcp.git] / qa / 756
blob3dfa2fc0695b7803e200d8ba2867373daa36d514
1 #!/bin/sh
2 # PCP QA Test No. 756
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
11 seq=`basename $0`
12 echo "QA output created by $seq"
14 # get standard environment, filters and checks
15 . ./common.product
16 . ./common.filter
17 . ./common.check
19 test -e perfevent/perfevent_test || _notrun "Optional perfevent PMDA not present"
20 status=1 # failure is the default
21 rm -f $seq.full
22 cd perfevent
24 if [ -f perf_event_test.c ]
25 then
26 # we're in the git tree, rebuild the binary to be sure, to be sure
28 rm -f perfevent_test
29 if $PCP_MAKE_PROG >>$here/$seq.full 2>&1
30 then
32 else
33 echo "Arrg, failed to rebuild perfevent/perfevent_test ... see $seq.full"
34 exit
38 if ./perfevent_test all 2>/dev/null;
39 then
40 echo "Unit tests Passed"
41 status=0
44 cd - > /dev/null
46 exit $status