5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
16 trap "rm -f $tmp.*; exit" 0 1 2 3 15
18 # real QA test starts here
19 for type in long longlong float double string aggregate
21 for val
in 123 123.456 1e10
9.87654321e40
0xdeadbeef 0x100000000 0xdeadbeefcafefeed zoo
24 echo "stuff \"$val\" into sampledso.$type.write_me"
25 # Note: for long data, using strtol() and strtoll() need to
26 # worry about the sign bit ...
27 # -0x21524111 is 0xdeadbeef
28 # -0x2152411035010113 is 0xdeadbeefcafefeed
29 if [ $type = long
-a "$val" = 0xdeadbeef ]
32 elif [ $type = longlong
-a "$val" = 0xdeadbeefcafefeed ]
34 val
=-0x2152411035010113
35 elif [ $type = aggregate
-a "$val" = 0xdeadbeefcafefeed ]
37 val
=-0x2152411035010113
40 if pmstore sampledso.
$type.write_me
$val
42 pminfo
-f sampledso.
$type.write_me \
48 -e 's/old value=.* new value=/old value=? new value=/' \
49 -e '/sampledso.aggregate/s/new value=.*\[/new value=XXX [/' \
51 /sampledso.aggregate/ { gotagg=1; print; next }
52 gotagg && /value/ { gotagg=0; sub(/value.*\[/, "value XXX["); print; next }