3 # #681487 error handling in pmdaproc.sh dialogs
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 [ -d $PCP_PMDAS_DIR/simple
] || _notrun
"simple PMDA directory is not installed"
18 status
=1 # failure is the default!
19 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
21 # real QA test starts here
22 cd $PCP_PMDAS_DIR/simple
26 $sudo $PCP_MAKE_PROG clobber
>/dev
/null
2>&1
27 $sudo $PCP_MAKE_PROG >/dev
/null
2>&1
32 -e '/In function .vpmprintf./d' \
33 -e '/warning: the use of .tempnam./d' \
34 -e '/make: Nothing to be done/d'
37 cat <<End-of-File | $sudo ./Install -e >$tmp.out 2>&1
53 -e 's/or python //g' \
54 -e 's/daemon or dso,/"daemon" or "dso",/g' \
55 | _filter_pmda_install \
58 echo "in \$PCP_PMCDCONF_PATH ..."
59 sed -n "/^simple/s;$PCP_PMDAS_DIR;\$PCP_PMDAS_DIR;p" <$PCP_PMCDCONF_PATH
64 if $sudo $PCP_MAKE_PROG >$tmp.tmp
2>$tmp.err
66 cat $tmp.err | _filter_make
69 echo "make prior to Install failed!"
71 $sudo .
/Install
</dev
/null
>$tmp.out
2>&1