3 # check out user-added pmafm control files
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
16 status
=1 # failure is the default!
17 trap "rm -f $tmp $tmp.*; exit \$status" 0 1 2 3 15
23 sed -e "s;`pwd`;HERE;g" \
25 $1 == "Host:" { $2 = "HOST" }
30 if [ ! -d $HOME/.pcp
/pmafm
]
32 mkdir
-p $HOME/.pcp
/pmafm
33 if [ ! -d $HOME/.pcp
/pmafm
]
35 echo "Arrgh ... cannot make directory \"$HOME/.pcp/pmafm\""
40 rm -f $HOME/.pcp
/pmafm
/qa.
$seq
41 if [ -f $HOME/.pcp
/pmafm
/qa.
$seq ]
43 echo "Arrgh ... cannot remove \"$HOME/.pcp/pmafm/qa.$seq\""
47 echo 'SINGLE="pmclient pmlogcheck"' >$HOME/.pcp
/pmafm
/qa.
$seq
48 echo "SPECIAL=pmlogcheck" >>$HOME/.pcp
/pmafm
/qa.
$seq
50 # real QA test starts here
52 echo "Running pmlogcheck ... expect no errors"
53 mkaf
`pwd`/tmparch
/foo.
* >$tmp
54 pmafm
$tmp run pmlogcheck
2>&1 | _filter
58 echo "Running pmclient ... expect error from pmclient once pmafm starts it"
59 arch
=archives
/951127.23.01_v2
60 mkaf
`pwd`/$arch.
* >$tmp
61 pmafm
$tmp run pmclient
-n src
/root_irix
2>&1 | _filter