3 # check mkaf and pmafm, after file(1) not used
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
16 rm -f $seq.out
$seq.full
17 if [ $PCP_VER -lt 30600 ]
19 # V1 archives supported
20 LIST
="archives/951127.23.01.0 archives/960624.08.17.0 archives/ace.0 tmparch/bar.0 archives/bigace.0 tmparch/bigbin.0 archives/bug.0 tmparch/dodgey-all.0 tmparch/dodgey-mixed.0 tmparch/dodgey-some.0 tmparch/foo.0 tmparch/interp.0 archives/mirage.0 tmparch/mv-bar.0 tmparch/mv-bigbin.0 tmparch/mv-foo.0 tmparch/mv-interp.0 tmparch/truncbin.0"
21 ln $seq.out
.1 $seq.out
23 # no support for V1 archives
24 LIST
="archives/951127.23.01_v2.0 archives/960624.08.17_v2.0 archives/ace_v2.0 tmparch/bar.0 archives/bigace_v2.0 tmparch/bigbin.0 archives/bug_v2.0 tmparch/dodgey-all.0 tmparch/dodgey-mixed.0 tmparch/dodgey-some.0 tmparch/foo.0 tmparch/interp.0 archives/mirage.0 tmparch/mv-bar.0 tmparch/mv-bigbin.0 tmparch/mv-foo.0 tmparch/mv-interp.0 tmparch/truncbin.0"
25 ln $seq.out
.2 $seq.out
28 tmp
=/var
/tmp
/$$
"_pmafm"
29 $sudo rm -rf $tmp $tmp.
*
32 trap "rm -rf $tmp $tmp.*; exit \$status" 0 1 2 3 15
37 tee -a $here/$seq.full \
43 -e "s;`pwd`;<initial-path>/qa;" \
46 s/kmchart/MKAF_OR_CHART/
47 s/pmchart/MKAF_OR_CHART/
50 $1 == "Archive:" { if ($3 ~ /bar$/ || $3 ~ /bigbin$/ ||
51 $3 ~ /dodgey/ || $3 ~ /foo$/ ||
52 $3 ~ /interp$/ || $3 ~ /truncbin$/)
56 printf "%-16s%-24s%s\n",$1,$2,$3
63 # fake out the old pcp/qa/src directory structure
68 pat
=`echo $arch | sed -e 's/0$/*/'`
72 echo "tmp=$tmp" >>$here/$seq.full
73 echo "pwd: `pwd`" >>$here/$seq.full
74 ( echo "src dir ..."; ls src
) >>$here/$seq.full
81 ABSLIST
="$ABSLIST $HERE/$i"
86 # real QA test starts here
87 echo "=== relative names ==="
89 echo $LIST |
sed -e 's/ /\
90 /g' |
sed -e 's;^.*/;;' >$tmp.tmp
91 mkaf
`cat $tmp.tmp` >tmp.af
100 echo "=== absolute pathnames ==="
101 echo $ABSLIST |
sed -e 's/ /\
102 /g' |
sed -e 's;/archives/;/src/;' -e 's;/tmparch/;/src/;' >$tmp.tmp
103 mkaf
`cat $tmp.tmp` >tmp.af
107 pmafm tmp.af check
2>&1 |
sed -e "s;`pwd`;<initial-path>/qa;"
111 echo "=== relative names, down one dir ==="
112 echo $RELLIST |
sed -e 's/ /\
113 /g' |
sed -e 's;^.*/;src/;' >$tmp.tmp
114 mkaf
`cat $tmp.tmp` >tmp.af