Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 186
blobb58ffd0203390772cd069706f82c708b71cfeed1
1 #! /bin/sh
2 # PCP QA Test No. 186
3 # pmlogextract error?
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
15 arch=archives/951127.23.01_v2
17 trap "rm -f $tmp.*; exit" 0 1 2 3 15
19 # real QA test starts here
20 echo "=== merge ==="
21 pmlogextract $arch $tmp
23 echo
24 echo "=== cmp files ==="
25 for x in meta 0
27 echo $x:
28 od -x $arch.$x \
29 | $PCP_AWK_PROG 'NR == 1 { print $1,$2,$3,$4,$5,".... .PID",$8,$9 }' >$tmp.input.hex
30 od -x $tmp.$x \
31 | $PCP_AWK_PROG 'NR == 1 { print $1,$2,$3,$4,$5,".... .PID",$8,$9 }' >$tmp.output.hex
32 diff -c $tmp.input.hex $tmp.output.hex
33 done