docs: tweak formatting in pmrep(1) archive folio example
[pcp.git] / qa / 332
blob170246cb1b36d33f8113cba16ac6e195cb7b50e6
1 #!/bin/sh
2 # PCP QA Test No. 332
3 # Interp mode (similar to qa/095, but with purify) (see also 394)
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 _filter()
18 $PCP_AWK_PROG '
19 BEGIN { skip = 1 }
20 /^===/ { print; next }
21 / Purify / { skip = 0 }
22 /^FIU/ { skip = 2; next }
23 /^[^ ]/ && skip == 2 { skip = 0 }
24 skip == 0 { print }' \
25 | sed \
26 -e '/MLK/s/0x.*/ADDR/' \
27 -e 's/\[.*\]/[...]/' \
28 -e 's/__start/START /' \
29 -e 's/__istart/START /' \
30 -e '/Memory leaked:/s/([0-9][0-9.]*%)/(PERCENT)/g'
33 _check_purify src/interp3
35 status=1 # failure is the default!
36 trap "cd $here; rm -rf $tmp; exit \$status" 0 1 2 3 15
38 # real QA test starts here
39 _setup_purify src/interp3
41 for arch in tmparch/bigbin
43 for delta in 2 0.012
45 echo
46 echo "=== $arch delta=$delta ==="
47 _run_purify -a $here/$arch -t $delta | _filter
48 done
49 done
51 for arch in tmparch/noti-foo
53 for delta in 0.5 1.0 2.0
55 echo
56 echo "=== $arch delta=$delta ==="
57 _run_purify -a $here/$arch -t $delta | _filter
58 done
59 done
61 # all done
62 status=0
63 exit