3 # arg parsing botches for
4 # pmtrace -h host -v value tag
7 # Copyright (c) 2002 Silicon Graphics, Inc. All Rights Reserved.
11 echo "QA output created by $seq"
13 # get standard environment, filters and checks
18 status
=0 # success is the default!
20 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
24 # stolen from getpmcdhosts
26 check
=`echo a | od -x 2>&1 | sed -e 's/^0[^ ]* *//' -e 's/ //g' -e '/^$/d'`
33 echo "I am little endian, looking for pmtrace PMDA on a big endian platform" >>$seq.full
39 echo "I am big endian, looking for pmtrace PMDA on a little endian platform" >>$seq.full
42 echo "Arrgh ... od -x returned something odd ($check)"
49 # find the trace PMDA running somewhere else with tho other endianess
51 host=`./getpmcdhosts -L -n 1 -a trace -e $want`
54 echo "Cannot find $want endian host running pmdatrace" >$seq.notrun
57 echo "remote host: $host" >>$seq.full
59 # real QA test starts here
60 for val
in 42 1234.5678 -3.14132
62 pmtrace
-h $host -v $val "qa/$seq-value"
63 pminfo
-h $host -f trace.observe.value |
grep "qa/$seq-value"