File: t_33_nestedparse

package info (click to toggle)
filtergen 0.12.8-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,924 kB
  • sloc: sh: 5,485; ansic: 4,268; yacc: 692; lex: 362; makefile: 165
file content (25 lines) | stat: -rwxr-xr-x 412 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh -x

TEST="that the parser can cope with included files"
DATA=parser16

testdir=`dirname $0`
. $testdir/testlib

cd $work
if test $? -ne 0 ; then no_result ; fi

cat > include.conf <<EOF
http
ssh
EOF
if test $? -ne 0 ; then no_result ; fi

$here/parse < $testdir/data/${DATA}.in > $work/out 2>&1
if test $? -ne 0 ; then no_result ; fi

compare $testdir/data/${DATA}.out $work/out

# got this far?
pass