4 if test $srcdir = . ; then
7 if test $srcdir = .. ; then
11 if test $objdir = . ; then
14 testdir=$objdir/fastcheck.lrzsz
19 echo checking with srcdir = $1 and objdir = $2
22 for i in $srcdir/src/l?z.c ; do
23 z_test_files="$z_test_files $i"
25 for i in $objdir/src/l?z ; do
26 z_test_files="$z_test_files $i"
30 if test "x$TMPDIR" = x ; then
31 if test "x$TMP" = x ; then
42 exec 5>$testdir/error.log
43 (mkfifo $testdir/pipe || mknod $testdir/pipe p) 2>&5
47 $objdir/beos-runpiped "$SZ -q $z_test_files" "cd $testdir/zmodem ; exec $RZ $QUIET"
48 for i in $z_test_files ; do
50 cmp $i $testdir/zmodem/$bn
51 if test $? -eq 0 ; then
52 rm -f $testdir/zmodem/$bn
59 if test "x$failed" = x0 ; then
62 echo "the test failed." >&2
63 echo "use 'make check' or 'make vcheck' for a more detailed test" >&2
64 touch $objdir/fastcheck.failed
69 touch $objdir/fastcheck.ok