3 # #566355 - Macros cannot be used to define a metric name
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 status
=1 # failure is the default!
17 trap "rm -f /tmp/echo-out $tmp.*; exit \$status" 0 1 2 3 15
20 # real QA test starts here
21 cat <<'End-of-File' | pmie -v -t 2sec -T 1sec 2>$tmp.err
22 // one level macro substitution
29 $n1.one + $n1.ten + $n1.million; // start of ident
30 sample.$n2.one + sample.$n2.ten + sample.$n2.million; // middle of ident
31 sam$n3.one + sam$n3.ten + sam$n3.million; // partial
32 sam$'n4'one + sam$'n4'ten + sam$'n4'million; // macro-in-ident
34 // nested macro substitution (from right)
36 m0 = "sample.long.ten+sample.long.million;";
43 // nested macro substitution (from left)
48 p4 = "$p3$'p1'million";
55 $'d0'_inst $'p0'bin $'hash'100' $'hash'200' $'hash'300' > 100
56 -> shell "echo >>/tmp/echo-out high:" " %i:%v";
60 # Allow some time fo echo-out to be created
67 _filter_pmie_log
<$tmp.err