3 # check pmdbg -l and pmdbg.h agree
5 # Copyright (c) 2009 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 if [ -f $PCP_INC_DIR/pmdbg.h
]
20 echo "$PCP_INC_DIR/pmdbg.h not installed?" >$seq.notrun
21 echo "$seq: [not run] `cat $seq.notrun`"
25 status
=0 # success is the default!
27 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
29 # real QA test starts here
32 |
sed -n -e '/^DBG_/s/[ ].*//p' \
33 | LC_COLLATE
=POSIX
sort >$tmp.dbg
35 echo "------" >>$seq.full
36 cat $PCP_INC_DIR/pmdbg.h
>>$seq.full
37 sed -n <$PCP_INC_DIR/pmdbg.h \
43 | LC_COLLATE
=POSIX
sort >$tmp.dbg.h
45 echo "Missing from pmdbg -l ..."
46 comm -23 $tmp.dbg.h
$tmp.dbg
49 echo "Missing from <pcp/pmdbg.h> ..."
50 comm -13 $tmp.dbg.h
$tmp.dbg