3 # Test pmLoadASCIINameSpace with pmcpp instead of cpp
5 # Copyright (c) 2011 Ken McDonell. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
16 status
=0 # success is the default!
17 $sudo rm -rf $tmp.
* $seq.full
18 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
23 grep "^pmcpp:" <$tmp.tmp
>$tmp.save
26 # pmcpp lines ... move 'em to the start
28 grep -v "^pmcpp:" $tmp.tmp
36 # real QA test starts here
37 echo "no error cases ..."
38 cat <<End-of-File >$tmp.root
54 pminfo
-n $tmp.root
-m >$tmp.out
2>$tmp.err
55 cat $tmp.out
$tmp.err | _filter
58 cat <<End-of-File >$tmp.root
63 cat <<End-of-File >$tmp.1
72 cat <<End-of-File >$tmp.2
80 pminfo
-n $tmp.root
-m >$tmp.out
2>$tmp.err
81 cat $tmp.out
$tmp.err | _filter
85 cat <<End-of-File >$tmp.root
86 /* comment at the beginning */
93 three /*inline comment*/ 4:5:6
102 * multi-line comment at the end
105 pminfo
-n $tmp.root
-m >$tmp.out
2>$tmp.err
106 cat $tmp.out
$tmp.err | _filter
109 cat <<End-of-File >$tmp.root
111 #define foo_path3 foo.three
130 pminfo
-n $tmp.root
-m >$tmp.out
2>$tmp.err
131 cat $tmp.out
$tmp.err | _filter
134 echo "#include errors ..."
135 cat <<End-of-File >$tmp.root
140 pminfo
-n $tmp.root
-m >$tmp.out
2>$tmp.err
141 cat $tmp.out
$tmp.err | _filter
144 cat <<End-of-File >$tmp.root
149 pminfo
-n $tmp.root
-m >$tmp.out
2>$tmp.err
150 cat $tmp.out
$tmp.err | _filter
152 cat <<End-of-File >$tmp.root
154 #include "$tmp.1" junk
157 pminfo
-n $tmp.root
-m >$tmp.out
2>$tmp.err
158 cat $tmp.out
$tmp.err | _filter
161 cat <<End-of-File >$tmp.root
166 pminfo
-n $tmp.root
-m >$tmp.out
2>$tmp.err
167 cat $tmp.out
$tmp.err | _filter
170 cat <<End-of-File >$tmp.root
176 cat <<End-of-File >$tmp.1
180 cat <<End-of-File >$tmp.2
184 cat <<End-of-File >$tmp.3
188 cat <<End-of-File >$tmp.4
192 pminfo
-Dpmns -n $tmp.root
-m >$tmp.out
2>$tmp.err
193 cat $tmp.out
$tmp.err | _filter
197 echo "#define errors ..."
198 cat <<End-of-File >$tmp.root
203 pminfo
-n $tmp.root
-m >$tmp.out
2>$tmp.err
204 cat $tmp.out
$tmp.err | _filter
206 cat <<End-of-File >$tmp.root
208 /* white space at the end of the next line */
212 pminfo
-n $tmp.root
-m >$tmp.out
2>$tmp.err
213 cat $tmp.out
$tmp.err | _filter
215 cat <<End-of-File >$tmp.root
220 pminfo
-n $tmp.root
-m >$tmp.out
2>$tmp.err
221 cat $tmp.out
$tmp.err | _filter
223 cat <<End-of-File >$tmp.root
225 #define bad_123_macro!name
228 pminfo
-n $tmp.root
-m >$tmp.out
2>$tmp.err
229 cat $tmp.out
$tmp.err | _filter
232 echo "other #cpp line errors ..."
233 cat <<End-of-File >$tmp.root
238 pminfo
-n $tmp.root
-m >$tmp.out
2>$tmp.err
239 cat $tmp.out
$tmp.err | _filter