3 # Test $PCP_RC_DIR/pcp script pmcd log location
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
19 _restore_config
$PCP_PMCDOPTIONS_PATH
21 $sudo $PCP_RC_DIR/pcp restart | _filter_pcp_start
27 trap _cleanup
0 1 2 3 15
29 # real QA test starts here
31 rm -rf $tmp.
* $seq.full
32 echo "First, the standard logfile:" |
tee -a $seq.full
33 $sudo $PCP_RC_DIR/pcp stop
>/dev
/null
34 $sudo rm -f $PCP_LOG_DIR/pmcd
/pmcd.log
35 $sudo $PCP_RC_DIR/pcp start |
tee -a $seq.full
>$tmp.out
38 grep -i 'starting pmcd' $tmp.out | _filter_pcp_start
39 if [ -f $PCP_LOG_DIR/pmcd
/pmcd.log
]
41 echo '$PCP_LOG_DIR/pmcd/pmcd.log created'
43 echo 'Error: $PCP_LOG_DIR/pmcd/pmcd.log not created'
48 _save_config
$PCP_PMCDOPTIONS_PATH
49 cp $PCP_PMCDOPTIONS_PATH $tmp.options
50 cat <<End-Of-File >>$tmp.options
51 # Dummy lines added by PCP QA test 170
56 $sudo cp $tmp.options
$PCP_PMCDOPTIONS_PATH
58 echo "The logfile from the hacked \$PCP_PMCDOPTIONS_PATH (pmcd.options):" |
tee -a $seq.full
59 $sudo $PCP_RC_DIR/pcp restart |
tee -a $seq.full
>$tmp.out
62 grep -i 'starting pmcd' $tmp.out |
sed -e "s/$$/MYPID/" | _filter_pcp_start
63 if [ -f $tmp.1.pmcd.log
]
65 echo 'Error: $tmp.1.pmcd.log created unexpectedly'
70 if [ -f $tmp.2.pmcd.log
]
72 echo '$tmp.2.pmcd.log created'
74 echo 'Error: $tmp.2.pmcd.log not created'