File: firstmatch.test

package info (click to toggle)
enscript 1.6.5.90-3.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,456 kB
  • sloc: ansic: 33,708; sh: 5,383; makefile: 649; yacc: 457; lex: 428; perl: 340; lisp: 109; sed: 16
file content (17 lines) | stat: -rwxr-xr-x 212 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
#
# Test the first match.
#

. $srcdir/defs || exit 1

cat << EOF >data.in
aaaa
EOF

result=`$states --state=test_first_match data.in 2>&1`
rm -f data.in

if test "X$result" != "Xok"; then
  exit 1;
fi