Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 547
blobc7e95202aa14890b71ca8cf7e9ba58c3a7c4290b
1 #!/bin/sh
2 # PCP QA Test No. 547
3 # Exercise past security flaws in PCP protocol implementation
5 # Copyright (c) 2013 Red Hat. All Rights Reserved.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 . ./common.python
13 host=localhost
14 timeout=2
15 status=1 # failure is the default!
16 $sudo rm -rf $tmp.* $seq.full
17 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
19 # real QA test starts here
20 cd secure
21 for crash_test in crash-*
23 echo "$crash_test checking: " | tee -a $here/$seq.full
24 $python $crash_test $host
25 pmcd_wait -t $timeout -h $host
26 sts=$?
27 echo "$crash_test complete sts=$sts" | tee -a $here/$seq.full
28 [ $sts -ne 0 ] && exit
29 done
31 # success, all done
32 status=0
33 exit