Fix an issue where the pattern doesn't advance,
[quincer.git] / test / 04pattern.test
blob3c6af08323476f683aeeb8db7a042355449676ec
1 #!/bin/sh
2 set -x
3 input=$(mktemp)
4 output=$(mktemp)
6 die() {
7 rm -f $input $output
8 exit 1
11 cat >$input <<EOF
12 pattern 144 #cool pattern
13 EOF
15 ./lexdump $input >$output
16 [ $? = 0 ] || die
18 grep pattern $output || die
19 grep 144 $output || die
20 grep absolute $output || die
22 rm -f $input $output