File: t_67_includeemptyfile

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 (27 lines) | stat: -rwxr-xr-x 407 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
26
27
#!/bin/sh -x

TEST="that inclusion of empty files works"

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

cat > $work/rules <<EOF
include $work/empty
EOF
if test $? -ne 0 ; then no_result ; fi

cat > $work/empty <<EOF

EOF
if test $? -ne 0 ; then no_result ; fi

$here/scan < $work/rules > $work/out
if test $? -ne 0 ; then fail ; fi

cat > $work/good <<EOF
EOF

compare $work/good $work/out

# got this far?
pass