3 # pmie macro name handling in lexical scanner
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 \$status" 0 1 2 3 15
21 |
sed -e '/warning cannot create stats file dir/d'
24 # real QA test starts here
25 echo "special chars in macro name ..."
26 cat >$tmp.conf
<<'End-of-File'
33 z = $'f!o!o'.long.ten;
35 pmie
-v -t 1 -T 1 <$tmp.conf
>$tmp.out
2>$tmp.err
36 cat $tmp.out
$tmp.err | _filter
39 echo "some syntax errors ..."
41 cat >$tmp.conf
<<'End-of-File'
42 // $foo-not-bar not defined
43 x = $'foo-not-bar'.long.ten;
45 pmie
-v -t 1 -T 1 <$tmp.conf
>$tmp.out
2>$tmp.err
46 cat $tmp.out
$tmp.err | _filter
48 cat >$tmp.conf
<<'End-of-File'
52 pmie
-v -t 1 -T 1 <$tmp.conf
>$tmp.out
2>$tmp.err
53 cat $tmp.out
$tmp.err | _filter
55 cat >$tmp.conf
<<'End-of-File'
56 // e-o-f before end of macro name
59 pmie
-v -t 1 -T 1 <$tmp.conf
>$tmp.out
2>$tmp.err
60 cat $tmp.out
$tmp.err | _filter
62 cat >$tmp.conf
<<'End-of-File'
63 // macro name way too long
64 x = $'foo.long.ten.this.is.some.long.and.boring.text.to.make.the.macro.name.exceed.the.250-odd.char.limit.this.is.some.long.and.boring.text.to.make.the.macro.name.exceed.the.250-odd.char.limit.this.is.some.long.and.boring.text.to.make.the.macro.name.exceed.the.250-odd.char.limit';
66 pmie
-v -t 1 -T 1 <$tmp.conf
>$tmp.out
2>$tmp.err
67 cat $tmp.out
$tmp.err | _filter