qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 644
blob135e498c618e8baf92d0f99f3c4e803360ba1824
1 #! /bin/sh
2 # PCP QA Test No. 644
3 # concurrent Rebuild executions trash the PMNS?
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
12 . ./common.product
13 . ./common.filter
14 . ./common.check
16 status=0 # success is the default!
17 $sudo rm -rf $tmp.*
18 trap "_done; exit \$status" 0 1 2 3 15
20 _done()
22 cd $PCP_VAR_DIR/pmns
23 $sudo ./Rebuild -u </dev/null >/dev/null 2>&1
24 $sudo rm -f $tmp.*
27 # real QA test starts here
28 cd $PCP_VAR_DIR/pmns
30 for i in 1 2 3 4 5
32 $sudo ./Rebuild -u </dev/null >$tmp.out.$i 2>&1 &
33 done
35 wait
37 for i in 1 2 3 4 5
39 echo
40 echo "=== Rebuild #$i ==="
41 cat $tmp.out.$i
42 done
44 # success, all done
45 exit