docs: tweak formatting in pmrep(1) archive folio example
[pcp.git] / qa / 092
blob39df47eac525f0a8aaa24ba64e46f360e11d531a
1 #! /bin/sh
2 # PCP QA Test No. 092
3 # end of log and truncated log test
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 filters
12 . ./common.product
13 . ./common.filter
14 . ./common.check
16 rm -f $seq.out
17 if [ $PCP_VER -lt 30509 ]
18 then
19 ln $seq.out.1 $seq.out || exit 1
20 else
21 ln $seq.out.2 $seq.out || exit 1
24 trap "rm -f $tmp.*; exit" 0 1 2 3 15
26 _filter()
28 cat >$tmp.out
29 STAMP=`sed <$tmp.out -n -e '/pmGetArchiveEnd time:/s/.* //p'`
30 if [ "X$STAMP" = X ]
31 then
32 echo "pmGetArchiveEnd failed!"
33 cat $tmp.out
34 else
35 sed -e "s/$STAMP/MY-EOL-TIMESTAMP/g" <$tmp.out
39 # real QA test starts here
40 echo "small archive"
41 src/eol -a tmparch/foo | _filter
43 echo
44 echo "large archive"
45 src/eol -a tmparch/bigbin | _filter
47 echo
48 echo "truncated archive"
49 src/eol -a tmparch/truncbin | _filter
51 echo
52 echo "empty archive"
53 src/eol -a tmparch/null | _filter
55 echo
56 echo "small multi-volume archive"
57 src/eol -a tmparch/mv-foo | _filter
59 echo
60 echo "large multi-volume archive"
61 src/eol -a tmparch/mv-bigbin | _filter
63 echo
64 echo "large no index archive"
65 src/eol -a tmparch/noti-bigbin | _filter