Blob Blame History Raw
#! /bin/sh

. ${srcdir:=.}/t.frame

# test description here
#
# test below
# remember to use "$srcdir"
echo 0a 74 65 73 74 00 74 65 0d 73 74 0d 0a \
| ./dehex > "$TMPDIR"/input
./escnp < "$TMPDIR/input" > "$TMPDIR/reference"
shn="`./spam_header_name`:"
# check seekable input
$VAL $BOGOFILTER -e -p -C < "$TMPDIR"/input | ./escnp > "$TMPDIR/output"
grep -v "$shn" "$TMPDIR/output" | cmp - "$TMPDIR/reference"
# check non-seekable input
cat "$TMPDIR"/input | $VAL $BOGOFILTER -e -p -C | ./escnp > "$TMPDIR/output"
grep -v "$shn" "$TMPDIR/output" | cmp - "$TMPDIR/reference"