Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 306
blob61f13ec46b03271d07a09e74e8a3d46ab6f21218
1 #!/bin/sh
2 # PCP QA Test No. 306
3 # test pmpost
4 # - pmpost "message"
5 # - check that "message" is in $PCP_LOG_DIR/NOTICES
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 filters
14 . ./common.product
15 . ./common.filter
16 . ./common.check
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
23 _day=`date | $PCP_AWK_PROG '{ print $1 }'`
24 _month=`date | $PCP_AWK_PROG '{ print $2 }'`
25 _date=`date | $PCP_AWK_PROG '{ print $3 }'`
27 $sudo $PCP_BINADM_DIR/pmpost "QA test $seq"
28 tail -1 $PCP_LOG_DIR/NOTICES | sed -e 's/[0-9]*:[0-9]* //'
30 # success, all done
31 status=0
32 exit