3 # pmdumplog dumps core when fed a metadata file instead of a basename?
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
20 -e '/__pmLogChkLabel:/d' \
21 -e '/__pmLogLoadMeta:/d' \
22 -e '/__pmLogSetTime/d' \
26 trap "rm -f $tmp.* /tmp/bogus.* /tmp/fungus.* /tmp/fungus /tmp/bogus; exit 0" 0 1 2 3 15
28 # real QA test starts here
29 echo "For PCP 1.1 Expect cannot open archive error message, and no core file ..."
30 echo "For PCP 2.0 -l tmparch/foo.meta is a synonym for -l src/foo, so this works ..."
32 $sudo rm -f /tmp
/bogus.
* /tmp
/fungus.
* /tmp
/fungus
33 touch /tmp
/bogus.verylongsuffix
/tmp
/fungus
34 for dir
in /etc
/sbin
/bin
/usr
/sbin
/usr
/bin
36 [ ! -f $dir/init
] && continue
37 cp $dir/init
/tmp
/fungus
41 for bad
in tmparch
/foo.meta
/tmp
/fungus
/tmp
/bogus
46 echo "=== $bad: exists ==="
48 echo "=== $bad: does not exist ==="
51 pmdumplog
-D 128 -l $bad 2>$tmp.err
>$tmp.out
53 _filter_pmdumplog
<$tmp.out
56 # need sort 'cause "inspect file" diag order is not determinisitic
57 echo "[filtered and sorted stderr]"
58 _filter_trace
<$tmp.err | LC_COLLATE
=POSIX
sort