diff options
Diffstat (limited to 'tests/wc/wc-tests')
-rwxr-xr-x | tests/wc/wc-tests | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/tests/wc/wc-tests b/tests/wc/wc-tests index c94bf73fb..4ca8e0f29 100755 --- a/tests/wc/wc-tests +++ b/tests/wc/wc-tests @@ -21,7 +21,7 @@ export LANG cat $srcdir/a0.I | $xx -c > a0.O 2> a0.E code=$? if test $code != 0; then - $echo "Test a0(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a0(|) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a0.O $srcdir/a0.X > /dev/null 2>&1 @@ -39,7 +39,7 @@ test -s a0.E || rm -f a0.E $xx -c < $srcdir/a0.I > a0.O 2> a0.E code=$? if test $code != 0; then - $echo "Test a0(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a0(<) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a0.O $srcdir/a0.X > /dev/null 2>&1 @@ -57,7 +57,7 @@ test -s a0.E || rm -f a0.E cat $srcdir/a1.I | $xx -l > a1.O 2> a1.E code=$? if test $code != 0; then - $echo "Test a1(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a1(|) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a1.O $srcdir/a1.X > /dev/null 2>&1 @@ -75,7 +75,7 @@ test -s a1.E || rm -f a1.E $xx -l < $srcdir/a1.I > a1.O 2> a1.E code=$? if test $code != 0; then - $echo "Test a1(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a1(<) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a1.O $srcdir/a1.X > /dev/null 2>&1 @@ -93,7 +93,7 @@ test -s a1.E || rm -f a1.E cat $srcdir/a2.I | $xx -w > a2.O 2> a2.E code=$? if test $code != 0; then - $echo "Test a2(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a2(|) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a2.O $srcdir/a2.X > /dev/null 2>&1 @@ -111,7 +111,7 @@ test -s a2.E || rm -f a2.E $xx -w < $srcdir/a2.I > a2.O 2> a2.E code=$? if test $code != 0; then - $echo "Test a2(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a2(<) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a2.O $srcdir/a2.X > /dev/null 2>&1 @@ -129,7 +129,7 @@ test -s a2.E || rm -f a2.E cat $srcdir/a3.I | $xx -c > a3.O 2> a3.E code=$? if test $code != 0; then - $echo "Test a3(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a3(|) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a3.O $srcdir/a3.X > /dev/null 2>&1 @@ -147,7 +147,7 @@ test -s a3.E || rm -f a3.E $xx -c < $srcdir/a3.I > a3.O 2> a3.E code=$? if test $code != 0; then - $echo "Test a3(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a3(<) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a3.O $srcdir/a3.X > /dev/null 2>&1 @@ -165,7 +165,7 @@ test -s a3.E || rm -f a3.E cat $srcdir/a4.I | $xx -w > a4.O 2> a4.E code=$? if test $code != 0; then - $echo "Test a4(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a4(|) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a4.O $srcdir/a4.X > /dev/null 2>&1 @@ -183,7 +183,7 @@ test -s a4.E || rm -f a4.E $xx -w < $srcdir/a4.I > a4.O 2> a4.E code=$? if test $code != 0; then - $echo "Test a4(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a4(<) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a4.O $srcdir/a4.X > /dev/null 2>&1 @@ -201,7 +201,7 @@ test -s a4.E || rm -f a4.E cat $srcdir/a5.I | $xx -w > a5.O 2> a5.E code=$? if test $code != 0; then - $echo "Test a5(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a5(|) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a5.O $srcdir/a5.X > /dev/null 2>&1 @@ -219,7 +219,7 @@ test -s a5.E || rm -f a5.E $xx -w < $srcdir/a5.I > a5.O 2> a5.E code=$? if test $code != 0; then - $echo "Test a5(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a5(<) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a5.O $srcdir/a5.X > /dev/null 2>&1 @@ -237,7 +237,7 @@ test -s a5.E || rm -f a5.E cat $srcdir/a6.I | $xx -w > a6.O 2> a6.E code=$? if test $code != 0; then - $echo "Test a6(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a6(|) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a6.O $srcdir/a6.X > /dev/null 2>&1 @@ -255,7 +255,7 @@ test -s a6.E || rm -f a6.E $xx -w < $srcdir/a6.I > a6.O 2> a6.E code=$? if test $code != 0; then - $echo "Test a6(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a6(<) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a6.O $srcdir/a6.X > /dev/null 2>&1 @@ -273,7 +273,7 @@ test -s a6.E || rm -f a6.E cat $srcdir/a7.I | $xx -l > a7.O 2> a7.E code=$? if test $code != 0; then - $echo "Test a7(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a7(|) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a7.O $srcdir/a7.X > /dev/null 2>&1 @@ -291,7 +291,7 @@ test -s a7.E || rm -f a7.E $xx -l < $srcdir/a7.I > a7.O 2> a7.E code=$? if test $code != 0; then - $echo "Test a7(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a7(<) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a7.O $srcdir/a7.X > /dev/null 2>&1 @@ -309,7 +309,7 @@ test -s a7.E || rm -f a7.E cat $srcdir/a8.I | $xx -l > a8.O 2> a8.E code=$? if test $code != 0; then - $echo "Test a8(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a8(|) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a8.O $srcdir/a8.X > /dev/null 2>&1 @@ -327,7 +327,7 @@ test -s a8.E || rm -f a8.E $xx -l < $srcdir/a8.I > a8.O 2> a8.E code=$? if test $code != 0; then - $echo "Test a8(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a8(<) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a8.O $srcdir/a8.X > /dev/null 2>&1 @@ -345,7 +345,7 @@ test -s a8.E || rm -f a8.E cat $srcdir/a9.I | $xx -l > a9.O 2> a9.E code=$? if test $code != 0; then - $echo "Test a9(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a9(|) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a9.O $srcdir/a9.X > /dev/null 2>&1 @@ -363,7 +363,7 @@ test -s a9.E || rm -f a9.E $xx -l < $srcdir/a9.I > a9.O 2> a9.E code=$? if test $code != 0; then - $echo "Test a9(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test a9(<) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp a9.O $srcdir/a9.X > /dev/null 2>&1 @@ -381,7 +381,7 @@ test -s a9.E || rm -f a9.E $xx < $srcdir/b0.I > b0.O 2> b0.E code=$? if test $code != 0; then - $echo "Test b0 failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test b0 failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp b0.O $srcdir/b0.X > /dev/null 2>&1 @@ -399,7 +399,7 @@ test -s b0.E || rm -f b0.E $xx < $srcdir/b1.I > b1.O 2> b1.E code=$? if test $code != 0; then - $echo "Test b1 failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test b1 failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp b1.O $srcdir/b1.X > /dev/null 2>&1 @@ -417,7 +417,7 @@ test -s b1.E || rm -f b1.E cat $srcdir/c0.I | $xx -L > c0.O 2> c0.E code=$? if test $code != 0; then - $echo "Test c0(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test c0(|) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp c0.O $srcdir/c0.X > /dev/null 2>&1 @@ -435,7 +435,7 @@ test -s c0.E || rm -f c0.E $xx -L < $srcdir/c0.I > c0.O 2> c0.E code=$? if test $code != 0; then - $echo "Test c0(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test c0(<) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp c0.O $srcdir/c0.X > /dev/null 2>&1 @@ -453,7 +453,7 @@ test -s c0.E || rm -f c0.E cat $srcdir/c1.I | $xx -L > c1.O 2> c1.E code=$? if test $code != 0; then - $echo "Test c1(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test c1(|) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp c1.O $srcdir/c1.X > /dev/null 2>&1 @@ -471,7 +471,7 @@ test -s c1.E || rm -f c1.E $xx -L < $srcdir/c1.I > c1.O 2> c1.E code=$? if test $code != 0; then - $echo "Test c1(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test c1(<) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp c1.O $srcdir/c1.X > /dev/null 2>&1 @@ -489,7 +489,7 @@ test -s c1.E || rm -f c1.E cat $srcdir/c2.I | $xx -L > c2.O 2> c2.E code=$? if test $code != 0; then - $echo "Test c2(|) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test c2(|) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp c2.O $srcdir/c2.X > /dev/null 2>&1 @@ -507,7 +507,7 @@ test -s c2.E || rm -f c2.E $xx -L < $srcdir/c2.I > c2.O 2> c2.E code=$? if test $code != 0; then - $echo "Test c2(<) failed: ../../src/wc return code $code differs from expected value 0" 1>&2 + $echo "Test c2(<) failed: $xx return code $code differs from expected value 0" 1>&2 errors=`expr $errors + 1` else cmp c2.O $srcdir/c2.X > /dev/null 2>&1 |