X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6106441685a38400d9aa94ccb7218218102f941c..4eaf25e2a1d634b6f7bfa01a96e6e86768837e9b:/test/inc/test-eom-align diff --git a/test/inc/test-eom-align b/test/inc/test-eom-align index c0cae7c8..0be49691 100755 --- a/test/inc/test-eom-align +++ b/test/inc/test-eom-align @@ -4,11 +4,16 @@ set -e -. ${MH_TEST_COMMON} +if test -z "${MH_OBJ_DIR}"; then + srcdir=`dirname $0`/../.. + MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR +fi + +. "$MH_OBJ_DIR/test/common.sh" setup_test -THISDIR="${srcdir}/test/inc" +THISDIR="`dirname $0`" if [ ! -z "$VALGRIND_ME" ]; then require_prog valgrind @@ -119,9 +124,9 @@ FINISH=$(($STDIO_BUFSZ + $HDRSZ + $FROMLINESZ + 32)) echo "Testing inc of files with various alignments of eom marker with buffer size..." i="$START" while test $i -le $FINISH; do - progress_update $sz $START $FINISH - do_one_test_A $sz - do_one_test_B $sz + progress_update $i $START $FINISH + do_one_test_A $i + do_one_test_B $i i=$(expr $i + 1) done progress_done