File: 363

package info (click to toggle)
pcp 4.3.2%2Breally4.3.1-0.1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 175,188 kB
  • sloc: ansic: 261,305; sh: 123,606; xml: 107,279; cpp: 72,127; perl: 18,283; python: 15,453; yacc: 8,249; lex: 2,585; makefile: 1,957; fortran: 60; java: 52
file content (63 lines) | stat: -rwxr-xr-x 1,572 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#! /bin/sh
# PCP QA Test No. 363
# checks pmlogsummary error reporting
#
# Copyright (c) 1995-2002 Silicon Graphics, Inc.  All Rights Reserved.
#

seq=`basename $0`
echo "QA output created by $seq"

# get standard filters
. ./common.product
. ./common.filter

# use V2 archives only
arch=archives/ace_v2

status=1	# failure is the default!
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15

# strip marks from archives
src/stripmark archives/changeinst.0 $tmp.changeinst.0 > /dev/null 2>&1
cp archives/changeinst.index $tmp.changeinst.index
cp archives/changeinst.meta $tmp.changeinst.meta

# deal with an annoying libc error ... using TZ=:Australia/Melbourne
# causes the -z option to report the wrong time, at least for some
# times of the year
#
TZ=EST-10
export TZ

# real QA test starts here
echo
echo "=== Sanity checks ==="
pmlogsummary -z -n src/root_irix -bmMy $arch \
     | LC_COLLATE=POSIX sort -f | ./xlate_2_new_pmns
echo
echo "=== Down-rev error check ==="
pmlogsummary -v -z -n src/root_irix -a badarchives/err_v1
echo
echo "=== Changing inst check ==="
pmlogsummary -z -a $tmp.changeinst
echo
echo "=== Bogus archive check ==="

_filter()
{
    sed -e 's/sample.*colour .*none/sample.colour (masked out)/g' \
	-e 's/pmcd.pmlogger.port .* none/pmcd.pmlogger.port [PID] PORT none/g' \
	-e '/^pmcd\.seqnum/s/[0-9][0-9.]*/SEQNUM/' \
	-e '/^pmcd\.pid/s/[0-9][0-9.]*/PID/' \
	-e 's/  1.001 none/  1.000 none/g'
	# sample[dso].milliseconds is a fickle mistress
}

pmlogsummary tmparch/truncbin | _filter
pmlogsummary tmparch/null


# success, all done
status=0
exit