From df86f458a20a25b0655ad1c5eb9f80914f2a5f03 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 26 Feb 1997 02:21:34 +0000 Subject: . --- tests/tac/Makefile.am | 10 +- tests/tac/Makefile.in | 10 +- tests/tac/Test.pm | 14 ++ tests/tac/tac-tests | 665 +++++++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 694 insertions(+), 5 deletions(-) (limited to 'tests/tac') diff --git a/tests/tac/Makefile.am b/tests/tac/Makefile.am index a15e548d1..4c8eab7b1 100644 --- a/tests/tac/Makefile.am +++ b/tests/tac/Makefile.am @@ -4,9 +4,15 @@ x = tac explicit = maint_gen = basic-0.I basic-0.X basic-a.I basic-a.X basic-b.I basic-b.X \ -basic-c.I basic-c.X basic-d.I basic-d.X basic-e.I basic-e.X +basic-c.I basic-c.X basic-d.I basic-d.X basic-e.I basic-e.X basic-f.I \ +basic-f.X basic-g.I basic-g.X basic-h.I basic-h.X basic-i.I basic-i.X \ +basic-j.I basic-j.X basic-k.I basic-k.X b2-e.I b2-e.X b2-f.I b2-f.X b2-g.I \ +b2-g.X b2-h.I b2-h.X b2-i.I b2-i.X b2-j.I b2-j.X b2-k.I b2-k.X run_gen = basic-0.O basic-0.E basic-a.O basic-a.E basic-b.O basic-b.E \ -basic-c.O basic-c.E basic-d.O basic-d.E basic-e.O basic-e.E +basic-c.O basic-c.E basic-d.O basic-d.E basic-e.O basic-e.E basic-f.O \ +basic-f.E basic-g.O basic-g.E basic-h.O basic-h.E basic-i.O basic-i.E \ +basic-j.O basic-j.E basic-k.O basic-k.E b2-e.O b2-e.E b2-f.O b2-f.E b2-g.O \ +b2-g.E b2-h.O b2-h.E b2-i.O b2-i.E b2-j.O b2-j.E b2-k.O b2-k.E ##test-files-end EXTRA_DIST = mk-script.pl Test.pm $x-tests $(explicit) $(maint_gen) diff --git a/tests/tac/Makefile.in b/tests/tac/Makefile.in index e7f0a34a2..3abd6c88b 100644 --- a/tests/tac/Makefile.in +++ b/tests/tac/Makefile.in @@ -45,9 +45,15 @@ CC = @CC@ x = tac explicit = maint_gen = basic-0.I basic-0.X basic-a.I basic-a.X basic-b.I basic-b.X \ -basic-c.I basic-c.X basic-d.I basic-d.X basic-e.I basic-e.X +basic-c.I basic-c.X basic-d.I basic-d.X basic-e.I basic-e.X basic-f.I \ +basic-f.X basic-g.I basic-g.X basic-h.I basic-h.X basic-i.I basic-i.X \ +basic-j.I basic-j.X basic-k.I basic-k.X b2-e.I b2-e.X b2-f.I b2-f.X b2-g.I \ +b2-g.X b2-h.I b2-h.X b2-i.I b2-i.X b2-j.I b2-j.X b2-k.I b2-k.X run_gen = basic-0.O basic-0.E basic-a.O basic-a.E basic-b.O basic-b.E \ -basic-c.O basic-c.E basic-d.O basic-d.E basic-e.O basic-e.E +basic-c.O basic-c.E basic-d.O basic-d.E basic-e.O basic-e.E basic-f.O \ +basic-f.E basic-g.O basic-g.E basic-h.O basic-h.E basic-i.O basic-i.E \ +basic-j.O basic-j.E basic-k.O basic-k.E b2-e.O b2-e.E b2-f.O b2-f.E b2-g.O \ +b2-g.E b2-h.O b2-h.E b2-i.O b2-i.E b2-j.O b2-j.E b2-k.O b2-k.E EXTRA_DIST = mk-script.pl Test.pm $x-tests $(explicit) $(maint_gen) noinst_SCRIPTS = $x-tests diff --git a/tests/tac/Test.pm b/tests/tac/Test.pm index cf90d7bab..7b5b067c4 100644 --- a/tests/tac/Test.pm +++ b/tests/tac/Test.pm @@ -11,6 +11,20 @@ my @tv = ( ['basic-c', '', "a\n", "a\n", 0], ['basic-d', '', "a\nb", "b\na\n", 0], ['basic-e', '', "a\nb\n", "b\na\n", 0], +['basic-f', '', "1234567\n8\n", "8\n1234567\n", 0], +['basic-g', '', "12345678\n9\n", "9\n12345678\n", 0], +['basic-h', '', "123456\n8\n", "8\n123456\n", 0], +['basic-i', '', "12345\n8\n", "8\n12345\n", 0], +['basic-j', '', "1234\n8\n", "8\n1234\n", 0], +['basic-k', '', "123\n8\n", "8\n123\n", 0], + +['b2-e', '', "a\nb", "b\na\n", 0], +['b2-f', '', "1234567\n8", "8\n1234567\n", 0], +['b2-g', '', "12345678\n9", "9\n12345678\n", 0], +['b2-h', '', "123456\n8", "8\n123456\n", 0], +['b2-i', '', "12345\n8", "8\n12345\n", 0], +['b2-j', '', "1234\n8", "8\n1234\n", 0], +['b2-k', '', "123\n8", "8\n123\n", 0], ); sub test_vector diff --git a/tests/tac/tac-tests b/tests/tac/tac-tests index 078b50bd8..48c7af901 100755 --- a/tests/tac/tac-tests +++ b/tests/tac/tac-tests @@ -315,8 +315,671 @@ else esac fi test -s basic-e.E || rm -f basic-e.E +$xx $srcdir/basic-f.I > basic-f.O 2> basic-f.E +code=$? +if test $code != 0 ; then + $echo "Test basic-f(F) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-f.O $srcdir/basic-f.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-f(F)"; fi ;; + 1) $echo "Test basic-f(F) failed: files basic-f.O and $srcdir/basic-f.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-f(F) may have failed." 1>&2; + $echo The command "cmp basic-f.O $srcdir/basic-f.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-f.E || rm -f basic-f.E +cat $srcdir/basic-f.I | $xx > basic-f.O 2> basic-f.E +code=$? +if test $code != 0 ; then + $echo "Test basic-f(|) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-f.O $srcdir/basic-f.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-f(|)"; fi ;; + 1) $echo "Test basic-f(|) failed: files basic-f.O and $srcdir/basic-f.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-f(|) may have failed." 1>&2; + $echo The command "cmp basic-f.O $srcdir/basic-f.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-f.E || rm -f basic-f.E +$xx < $srcdir/basic-f.I > basic-f.O 2> basic-f.E +code=$? +if test $code != 0 ; then + $echo "Test basic-f(<) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-f.O $srcdir/basic-f.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-f(<)"; fi ;; + 1) $echo "Test basic-f(<) failed: files basic-f.O and $srcdir/basic-f.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-f(<) may have failed." 1>&2; + $echo The command "cmp basic-f.O $srcdir/basic-f.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-f.E || rm -f basic-f.E +$xx $srcdir/basic-g.I > basic-g.O 2> basic-g.E +code=$? +if test $code != 0 ; then + $echo "Test basic-g(F) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-g.O $srcdir/basic-g.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-g(F)"; fi ;; + 1) $echo "Test basic-g(F) failed: files basic-g.O and $srcdir/basic-g.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-g(F) may have failed." 1>&2; + $echo The command "cmp basic-g.O $srcdir/basic-g.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-g.E || rm -f basic-g.E +cat $srcdir/basic-g.I | $xx > basic-g.O 2> basic-g.E +code=$? +if test $code != 0 ; then + $echo "Test basic-g(|) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-g.O $srcdir/basic-g.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-g(|)"; fi ;; + 1) $echo "Test basic-g(|) failed: files basic-g.O and $srcdir/basic-g.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-g(|) may have failed." 1>&2; + $echo The command "cmp basic-g.O $srcdir/basic-g.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-g.E || rm -f basic-g.E +$xx < $srcdir/basic-g.I > basic-g.O 2> basic-g.E +code=$? +if test $code != 0 ; then + $echo "Test basic-g(<) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-g.O $srcdir/basic-g.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-g(<)"; fi ;; + 1) $echo "Test basic-g(<) failed: files basic-g.O and $srcdir/basic-g.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-g(<) may have failed." 1>&2; + $echo The command "cmp basic-g.O $srcdir/basic-g.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-g.E || rm -f basic-g.E +$xx $srcdir/basic-h.I > basic-h.O 2> basic-h.E +code=$? +if test $code != 0 ; then + $echo "Test basic-h(F) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-h.O $srcdir/basic-h.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-h(F)"; fi ;; + 1) $echo "Test basic-h(F) failed: files basic-h.O and $srcdir/basic-h.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-h(F) may have failed." 1>&2; + $echo The command "cmp basic-h.O $srcdir/basic-h.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-h.E || rm -f basic-h.E +cat $srcdir/basic-h.I | $xx > basic-h.O 2> basic-h.E +code=$? +if test $code != 0 ; then + $echo "Test basic-h(|) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-h.O $srcdir/basic-h.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-h(|)"; fi ;; + 1) $echo "Test basic-h(|) failed: files basic-h.O and $srcdir/basic-h.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-h(|) may have failed." 1>&2; + $echo The command "cmp basic-h.O $srcdir/basic-h.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-h.E || rm -f basic-h.E +$xx < $srcdir/basic-h.I > basic-h.O 2> basic-h.E +code=$? +if test $code != 0 ; then + $echo "Test basic-h(<) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-h.O $srcdir/basic-h.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-h(<)"; fi ;; + 1) $echo "Test basic-h(<) failed: files basic-h.O and $srcdir/basic-h.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-h(<) may have failed." 1>&2; + $echo The command "cmp basic-h.O $srcdir/basic-h.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-h.E || rm -f basic-h.E +$xx $srcdir/basic-i.I > basic-i.O 2> basic-i.E +code=$? +if test $code != 0 ; then + $echo "Test basic-i(F) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-i.O $srcdir/basic-i.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-i(F)"; fi ;; + 1) $echo "Test basic-i(F) failed: files basic-i.O and $srcdir/basic-i.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-i(F) may have failed." 1>&2; + $echo The command "cmp basic-i.O $srcdir/basic-i.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-i.E || rm -f basic-i.E +cat $srcdir/basic-i.I | $xx > basic-i.O 2> basic-i.E +code=$? +if test $code != 0 ; then + $echo "Test basic-i(|) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-i.O $srcdir/basic-i.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-i(|)"; fi ;; + 1) $echo "Test basic-i(|) failed: files basic-i.O and $srcdir/basic-i.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-i(|) may have failed." 1>&2; + $echo The command "cmp basic-i.O $srcdir/basic-i.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-i.E || rm -f basic-i.E +$xx < $srcdir/basic-i.I > basic-i.O 2> basic-i.E +code=$? +if test $code != 0 ; then + $echo "Test basic-i(<) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-i.O $srcdir/basic-i.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-i(<)"; fi ;; + 1) $echo "Test basic-i(<) failed: files basic-i.O and $srcdir/basic-i.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-i(<) may have failed." 1>&2; + $echo The command "cmp basic-i.O $srcdir/basic-i.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-i.E || rm -f basic-i.E +$xx $srcdir/basic-j.I > basic-j.O 2> basic-j.E +code=$? +if test $code != 0 ; then + $echo "Test basic-j(F) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-j.O $srcdir/basic-j.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-j(F)"; fi ;; + 1) $echo "Test basic-j(F) failed: files basic-j.O and $srcdir/basic-j.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-j(F) may have failed." 1>&2; + $echo The command "cmp basic-j.O $srcdir/basic-j.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-j.E || rm -f basic-j.E +cat $srcdir/basic-j.I | $xx > basic-j.O 2> basic-j.E +code=$? +if test $code != 0 ; then + $echo "Test basic-j(|) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-j.O $srcdir/basic-j.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-j(|)"; fi ;; + 1) $echo "Test basic-j(|) failed: files basic-j.O and $srcdir/basic-j.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-j(|) may have failed." 1>&2; + $echo The command "cmp basic-j.O $srcdir/basic-j.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-j.E || rm -f basic-j.E +$xx < $srcdir/basic-j.I > basic-j.O 2> basic-j.E +code=$? +if test $code != 0 ; then + $echo "Test basic-j(<) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-j.O $srcdir/basic-j.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-j(<)"; fi ;; + 1) $echo "Test basic-j(<) failed: files basic-j.O and $srcdir/basic-j.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-j(<) may have failed." 1>&2; + $echo The command "cmp basic-j.O $srcdir/basic-j.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-j.E || rm -f basic-j.E +$xx $srcdir/basic-k.I > basic-k.O 2> basic-k.E +code=$? +if test $code != 0 ; then + $echo "Test basic-k(F) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-k.O $srcdir/basic-k.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-k(F)"; fi ;; + 1) $echo "Test basic-k(F) failed: files basic-k.O and $srcdir/basic-k.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-k(F) may have failed." 1>&2; + $echo The command "cmp basic-k.O $srcdir/basic-k.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-k.E || rm -f basic-k.E +cat $srcdir/basic-k.I | $xx > basic-k.O 2> basic-k.E +code=$? +if test $code != 0 ; then + $echo "Test basic-k(|) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-k.O $srcdir/basic-k.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-k(|)"; fi ;; + 1) $echo "Test basic-k(|) failed: files basic-k.O and $srcdir/basic-k.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-k(|) may have failed." 1>&2; + $echo The command "cmp basic-k.O $srcdir/basic-k.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-k.E || rm -f basic-k.E +$xx < $srcdir/basic-k.I > basic-k.O 2> basic-k.E +code=$? +if test $code != 0 ; then + $echo "Test basic-k(<) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp basic-k.O $srcdir/basic-k.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed basic-k(<)"; fi ;; + 1) $echo "Test basic-k(<) failed: files basic-k.O and $srcdir/basic-k.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test basic-k(<) may have failed." 1>&2; + $echo The command "cmp basic-k.O $srcdir/basic-k.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s basic-k.E || rm -f basic-k.E +$xx $srcdir/b2-e.I > b2-e.O 2> b2-e.E +code=$? +if test $code != 0 ; then + $echo "Test b2-e(F) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-e.O $srcdir/b2-e.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-e(F)"; fi ;; + 1) $echo "Test b2-e(F) failed: files b2-e.O and $srcdir/b2-e.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-e(F) may have failed." 1>&2; + $echo The command "cmp b2-e.O $srcdir/b2-e.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-e.E || rm -f b2-e.E +cat $srcdir/b2-e.I | $xx > b2-e.O 2> b2-e.E +code=$? +if test $code != 0 ; then + $echo "Test b2-e(|) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-e.O $srcdir/b2-e.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-e(|)"; fi ;; + 1) $echo "Test b2-e(|) failed: files b2-e.O and $srcdir/b2-e.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-e(|) may have failed." 1>&2; + $echo The command "cmp b2-e.O $srcdir/b2-e.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-e.E || rm -f b2-e.E +$xx < $srcdir/b2-e.I > b2-e.O 2> b2-e.E +code=$? +if test $code != 0 ; then + $echo "Test b2-e(<) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-e.O $srcdir/b2-e.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-e(<)"; fi ;; + 1) $echo "Test b2-e(<) failed: files b2-e.O and $srcdir/b2-e.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-e(<) may have failed." 1>&2; + $echo The command "cmp b2-e.O $srcdir/b2-e.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-e.E || rm -f b2-e.E +$xx $srcdir/b2-f.I > b2-f.O 2> b2-f.E +code=$? +if test $code != 0 ; then + $echo "Test b2-f(F) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-f.O $srcdir/b2-f.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-f(F)"; fi ;; + 1) $echo "Test b2-f(F) failed: files b2-f.O and $srcdir/b2-f.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-f(F) may have failed." 1>&2; + $echo The command "cmp b2-f.O $srcdir/b2-f.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-f.E || rm -f b2-f.E +cat $srcdir/b2-f.I | $xx > b2-f.O 2> b2-f.E +code=$? +if test $code != 0 ; then + $echo "Test b2-f(|) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-f.O $srcdir/b2-f.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-f(|)"; fi ;; + 1) $echo "Test b2-f(|) failed: files b2-f.O and $srcdir/b2-f.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-f(|) may have failed." 1>&2; + $echo The command "cmp b2-f.O $srcdir/b2-f.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-f.E || rm -f b2-f.E +$xx < $srcdir/b2-f.I > b2-f.O 2> b2-f.E +code=$? +if test $code != 0 ; then + $echo "Test b2-f(<) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-f.O $srcdir/b2-f.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-f(<)"; fi ;; + 1) $echo "Test b2-f(<) failed: files b2-f.O and $srcdir/b2-f.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-f(<) may have failed." 1>&2; + $echo The command "cmp b2-f.O $srcdir/b2-f.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-f.E || rm -f b2-f.E +$xx $srcdir/b2-g.I > b2-g.O 2> b2-g.E +code=$? +if test $code != 0 ; then + $echo "Test b2-g(F) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-g.O $srcdir/b2-g.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-g(F)"; fi ;; + 1) $echo "Test b2-g(F) failed: files b2-g.O and $srcdir/b2-g.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-g(F) may have failed." 1>&2; + $echo The command "cmp b2-g.O $srcdir/b2-g.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-g.E || rm -f b2-g.E +cat $srcdir/b2-g.I | $xx > b2-g.O 2> b2-g.E +code=$? +if test $code != 0 ; then + $echo "Test b2-g(|) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-g.O $srcdir/b2-g.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-g(|)"; fi ;; + 1) $echo "Test b2-g(|) failed: files b2-g.O and $srcdir/b2-g.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-g(|) may have failed." 1>&2; + $echo The command "cmp b2-g.O $srcdir/b2-g.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-g.E || rm -f b2-g.E +$xx < $srcdir/b2-g.I > b2-g.O 2> b2-g.E +code=$? +if test $code != 0 ; then + $echo "Test b2-g(<) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-g.O $srcdir/b2-g.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-g(<)"; fi ;; + 1) $echo "Test b2-g(<) failed: files b2-g.O and $srcdir/b2-g.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-g(<) may have failed." 1>&2; + $echo The command "cmp b2-g.O $srcdir/b2-g.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-g.E || rm -f b2-g.E +$xx $srcdir/b2-h.I > b2-h.O 2> b2-h.E +code=$? +if test $code != 0 ; then + $echo "Test b2-h(F) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-h.O $srcdir/b2-h.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-h(F)"; fi ;; + 1) $echo "Test b2-h(F) failed: files b2-h.O and $srcdir/b2-h.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-h(F) may have failed." 1>&2; + $echo The command "cmp b2-h.O $srcdir/b2-h.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-h.E || rm -f b2-h.E +cat $srcdir/b2-h.I | $xx > b2-h.O 2> b2-h.E +code=$? +if test $code != 0 ; then + $echo "Test b2-h(|) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-h.O $srcdir/b2-h.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-h(|)"; fi ;; + 1) $echo "Test b2-h(|) failed: files b2-h.O and $srcdir/b2-h.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-h(|) may have failed." 1>&2; + $echo The command "cmp b2-h.O $srcdir/b2-h.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-h.E || rm -f b2-h.E +$xx < $srcdir/b2-h.I > b2-h.O 2> b2-h.E +code=$? +if test $code != 0 ; then + $echo "Test b2-h(<) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-h.O $srcdir/b2-h.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-h(<)"; fi ;; + 1) $echo "Test b2-h(<) failed: files b2-h.O and $srcdir/b2-h.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-h(<) may have failed." 1>&2; + $echo The command "cmp b2-h.O $srcdir/b2-h.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-h.E || rm -f b2-h.E +$xx $srcdir/b2-i.I > b2-i.O 2> b2-i.E +code=$? +if test $code != 0 ; then + $echo "Test b2-i(F) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-i.O $srcdir/b2-i.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-i(F)"; fi ;; + 1) $echo "Test b2-i(F) failed: files b2-i.O and $srcdir/b2-i.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-i(F) may have failed." 1>&2; + $echo The command "cmp b2-i.O $srcdir/b2-i.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-i.E || rm -f b2-i.E +cat $srcdir/b2-i.I | $xx > b2-i.O 2> b2-i.E +code=$? +if test $code != 0 ; then + $echo "Test b2-i(|) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-i.O $srcdir/b2-i.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-i(|)"; fi ;; + 1) $echo "Test b2-i(|) failed: files b2-i.O and $srcdir/b2-i.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-i(|) may have failed." 1>&2; + $echo The command "cmp b2-i.O $srcdir/b2-i.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-i.E || rm -f b2-i.E +$xx < $srcdir/b2-i.I > b2-i.O 2> b2-i.E +code=$? +if test $code != 0 ; then + $echo "Test b2-i(<) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-i.O $srcdir/b2-i.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-i(<)"; fi ;; + 1) $echo "Test b2-i(<) failed: files b2-i.O and $srcdir/b2-i.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-i(<) may have failed." 1>&2; + $echo The command "cmp b2-i.O $srcdir/b2-i.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-i.E || rm -f b2-i.E +$xx $srcdir/b2-j.I > b2-j.O 2> b2-j.E +code=$? +if test $code != 0 ; then + $echo "Test b2-j(F) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-j.O $srcdir/b2-j.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-j(F)"; fi ;; + 1) $echo "Test b2-j(F) failed: files b2-j.O and $srcdir/b2-j.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-j(F) may have failed." 1>&2; + $echo The command "cmp b2-j.O $srcdir/b2-j.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-j.E || rm -f b2-j.E +cat $srcdir/b2-j.I | $xx > b2-j.O 2> b2-j.E +code=$? +if test $code != 0 ; then + $echo "Test b2-j(|) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-j.O $srcdir/b2-j.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-j(|)"; fi ;; + 1) $echo "Test b2-j(|) failed: files b2-j.O and $srcdir/b2-j.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-j(|) may have failed." 1>&2; + $echo The command "cmp b2-j.O $srcdir/b2-j.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-j.E || rm -f b2-j.E +$xx < $srcdir/b2-j.I > b2-j.O 2> b2-j.E +code=$? +if test $code != 0 ; then + $echo "Test b2-j(<) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-j.O $srcdir/b2-j.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-j(<)"; fi ;; + 1) $echo "Test b2-j(<) failed: files b2-j.O and $srcdir/b2-j.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-j(<) may have failed." 1>&2; + $echo The command "cmp b2-j.O $srcdir/b2-j.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-j.E || rm -f b2-j.E +$xx $srcdir/b2-k.I > b2-k.O 2> b2-k.E +code=$? +if test $code != 0 ; then + $echo "Test b2-k(F) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-k.O $srcdir/b2-k.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-k(F)"; fi ;; + 1) $echo "Test b2-k(F) failed: files b2-k.O and $srcdir/b2-k.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-k(F) may have failed." 1>&2; + $echo The command "cmp b2-k.O $srcdir/b2-k.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-k.E || rm -f b2-k.E +cat $srcdir/b2-k.I | $xx > b2-k.O 2> b2-k.E +code=$? +if test $code != 0 ; then + $echo "Test b2-k(|) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-k.O $srcdir/b2-k.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-k(|)"; fi ;; + 1) $echo "Test b2-k(|) failed: files b2-k.O and $srcdir/b2-k.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-k(|) may have failed." 1>&2; + $echo The command "cmp b2-k.O $srcdir/b2-k.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-k.E || rm -f b2-k.E +$xx < $srcdir/b2-k.I > b2-k.O 2> b2-k.E +code=$? +if test $code != 0 ; then + $echo "Test b2-k(<) failed: ../../src/tac return code $code differs from expected value 0" 1>&2 + errors=`expr $errors + 1` +else + cmp b2-k.O $srcdir/b2-k.X + case $? in + 0) if test "$VERBOSE" ; then $echo "passed b2-k(<)"; fi ;; + 1) $echo "Test b2-k(<) failed: files b2-k.O and $srcdir/b2-k.X differ" 1>&2; + errors=`expr $errors + 1` ;; + 2) $echo "Test b2-k(<) may have failed." 1>&2; + $echo The command "cmp b2-k.O $srcdir/b2-k.X" failed. 1>&2 ; + errors=`expr $errors + 1` ;; + esac +fi +test -s b2-k.E || rm -f b2-k.E if test $errors = 0 ; then - $echo Passed all 18 tests. 1>&2 + $echo Passed all 57 tests. 1>&2 else $echo Failed $errors tests. 1>&2 fi -- cgit v1.2.3-70-g09d2