Drop unused condition check
[pcp.git] / qa / 124
blob0884f23be88ec80858860b98f6554db1939b4c0e
1 #! /bin/sh
2 # PCP QA Test No. 124
3 # check that exit status in pmie actions processed correctly
4 # (problem raised by todd.c.davis@intel.com)
5 # pv #870661
7 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
10 seq=`basename $0`
11 echo "QA output created by $seq"
13 # get standard environment, filters and checks
14 . ./common.product
15 . ./common.filter
16 . ./common.check
18 status=0 # success is the default!
19 $sudo rm -rf $tmp.*
20 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
22 # real QA test starts here
24 echo 'hinv.ncpu > 0 -> shell "echo true; true";' | pmie -f -t2 -T1 2>/dev/null
25 sleep 1
27 echo 'hinv.ncpu > 0 -> shell "echo true; true" | shell "echo or true; true";' | pmie -f -t2 -T1 2>/dev/null
28 sleep 1
30 echo 'hinv.ncpu > 0 -> shell "echo true; true" & shell "echo and true; true";' | pmie -f -t2 -T1 2>/dev/null
31 sleep 1
33 echo 'hinv.ncpu > 0 -> shell "echo false; false" | shell "echo or true; true";' | pmie -f -t2 -T1 2>/dev/null
34 sleep 1
36 echo 'hinv.ncpu > 0 -> shell "echo false; false" & shell "echo and true; true";' | pmie -f -t2 -T1 2>/dev/null
37 sleep 1
39 # success, all done
40 exit