3 # Exercise pmsignal(1) options.
5 # Copyright (c) 2016 Red Hat.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 status
=1 # failure is the default!
17 $sudo rm -rf $tmp $tmp.
* $seq.full
18 trap "cd $here; rm -rf $tmp $tmp.*; exit \$status" 0 1 2 3 15
23 -e "s/$pmcdpid/PMCDPID/g" \
24 -e "s/pcp-setevent/kill/g" \
25 -e "s/ TERM/-TERM/g" \
29 # real QA test starts here
30 pmcdpid
=`cat $PCP_RUN_DIR/pmcd.pid`
31 checked
=`_get_pids_by_name pmcd`
33 echo pmcdpid
=$pmcdpid >> $seq.full
34 echo checked
=$checked >> $seq.full
35 [ "$pmcdpid" = "$checked" ] || \
36 _notrun
"Multiple pmcd processes running? ($pmcdpid vs $checked)"
39 pmsignal
-n -a pmcd | _filter_pid
41 pmsignal
-n -p pmcd | _filter_pid
42 echo === list of signals