]> diplodocus.org Git - nmh/commitdiff
Added some specific tests to test-eom-align.
authorDavid Levine <levinedl@acm.org>
Sun, 23 Jul 2017 15:39:24 +0000 (11:39 -0400)
committerDavid Levine <levinedl@acm.org>
Sun, 23 Jul 2017 15:39:24 +0000 (11:39 -0400)
These were found by scanning a much larger range of buffer sizes,
over nmh versions from cvs, 1.4, 1.5, 1.6, and current HEAD.

test/inc/test-eom-align

index 8539b5d91acfebc899f04bb06023f4be3f5f7f88..5cb0e8cd265c7fd8c6f92a31ba5a96afe67af64c 100755 (executable)
@@ -128,10 +128,25 @@ arith_eval $STDIO_BUFSZ - 16; START=$arith_val
 arith_eval $STDIO_BUFSZ + $HDRSZ + $FROMLINESZ + 32; FINISH=$arith_val
 [ -t 1 ]  &&  echo \
 "Testing inc of files with various alignments of eom marker with buffer size..."
 arith_eval $STDIO_BUFSZ + $HDRSZ + $FROMLINESZ + 32; FINISH=$arith_val
 [ -t 1 ]  &&  echo \
 "Testing inc of files with various alignments of eom marker with buffer size..."
+
+#### Trouble spots for the particular input, with BUFSZ of 8192:
+for sz in 3146 3147 7241 7242 7243 11338 11339 15433 15434 15435; do
+  printf '%5s A\r' $sz
+  do_one_test_A $sz
+done
+
+# Also 155, 174, 175, but they're too small for makembox_B to handle.
+for sz in 684 4074 4097 4148 4610 4611 5121 5122 6654 6655 8170 \
+          8193 8244 8364 12266 12289 12340 16362 16385 16436; do
+  printf '%5s B\r' $sz
+  do_one_test_B $sz
+done
+
 i="$START"
 while test $i -le $FINISH; do
 i="$START"
 while test $i -le $FINISH; do
-  printf '  %s' $i
+  printf '%5s A\r' $i
   do_one_test_A $i
   do_one_test_A $i
+  printf '%5s B\r' $i
   do_one_test_B $i
   i=`expr $i + 1`
 done
   do_one_test_B $i
   i=`expr $i + 1`
 done