3 # pmpost race condition between check modified date and lock
6 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
17 status
=1 # failure is the default!
18 trap "_cleanup; exit \$status" 0 1 2 3 15
22 [ -f $PCP_LOG_DIR/NOTICES.qa.
$seq ] && $sudo mv $PCP_LOG_DIR/NOTICES.qa.
$seq $PCP_LOG_DIR/NOTICES
28 echo "DATE lines (expect 1) ..."
30 -e '/^DATE:/s/ .*/ .../p'
31 echo "pmpost lines (expect 20) ..."
33 -e "/qa-$seq/s/.*qa/... qa/p"
36 $sudo mv $PCP_LOG_DIR/NOTICES
$PCP_LOG_DIR/NOTICES.qa.
$seq
37 $sudo touch -t 199701020304.00 $PCP_LOG_DIR/NOTICES
39 # real QA test starts here
42 $sudo $PCP_BINADM_DIR/pmpost qa-
$seq &
44 $sudo $PCP_BINADM_DIR/pmpost qa-
$seq &
46 $sudo $PCP_BINADM_DIR/pmpost qa-
$seq &
48 $sudo $PCP_BINADM_DIR/pmpost qa-
$seq &
54 _filter
$PCP_LOG_DIR/NOTICES