forked from performancecopilot/pcp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path021
executable file
·56 lines (48 loc) · 1022 Bytes
/
021
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
#! /bin/sh
# PCP QA Test No. 021
# test pmgenmap handling of comments
#
# Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
#
_strip()
{
$PCP_AWK_PROG '
/Built/ { print; name = 1; next }
name == 1 { print "<filename goes in here>"; name = 0; date = 1; next }
date == 1 { print "<date goes in here>"; date = 0; next }
{ print }'
}
seq=`basename $0`
echo "QA output created by $seq"
# get standard filters
. ./common.product
. ./common.filter
trap "rm -f $tmp.*; exit 0" 0 1 2 3 15
# real QA test starts here
cat <<End-of-File >$tmp.spec
# leading single line comment
foo {
a.b.c ONE
d.e.f.g TWO
# embedded single line comment
xx.yy.zz THREE
}
# trailing block of
# multi-lines
# comments
End-of-File
pmgenmap $tmp.spec | _strip
cat <<End-of-File >$tmp.spec
# leading block of
# multi-lines
# comments
foo {
a.b.c ONE
d.e.f.g TWO
# embedded block of multi-lines
# comments and boring pad text
xx.yy.zz THREE
}
# trailing single line comment
End-of-File
pmgenmap $tmp.spec | _strip