tests: allow differents checksums for one test

This should please debian-based maintainers
terminology-1.9
Boris Faure 2 years ago
parent ba9d951b28
commit 0daf2a80c6
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
  1. 21
      tests/run_tests.sh
  2. 6
      tests/tests.results

@ -161,23 +161,30 @@ Using:
EOF
fi
while read -r TEST EXPECTED_CHECKSUM; do
while read -r TEST EXPECTED_CHECKSUMS; do
NB_TESTS=$((NB_TESTS + 1))
if [ $VERBOSE -ne 0 ]; then
printf "%s... " "$TEST"
fi
TEST_CHECKSUM=$("$TESTDIR"/"$TEST" | "$TYTEST")
if [ $DEBUG -ne 0 ]; then
printf "(got %s, expected %s) " "$TEST_CHECKSUM" "$EXPECTED_CHECKSUM"
printf "(got %s, expected %s) " "$TEST_CHECKSUM" "$EXPECTED_CHECKSUMS"
fi
if [ $GENRESULTS -ne 0 ]; then
printf "%s %s\n" "$TEST" "$TEST_CHECKSUM"
else
if [ "$TEST_CHECKSUM" = "$EXPECTED_CHECKSUM" ]; then
ok "$TEST"
else
failed "$TEST"
fi
OK=0
for CHECKSUM in $EXPECTED_CHECKSUMS; do
if [ "$TEST_CHECKSUM" = "$CHECKSUM" ]; then
OK=1
break
fi
done
if [ "$OK" -eq 1 ]; then
ok "$TEST"
else
failed "$TEST"
fi
fi
done < "$RESULTS"
summary

@ -78,7 +78,7 @@ da.sh d513dc05ebc6d73d1e584f4282e5769b
uts.sh 367ad447dedfa3ca4dcbe9c5ffede69b
vpa.sh 4614f3c337e9d47fed3a4233df719617
decswbv.sh f90ffe93b1bd99c6b7385ca71c6793de
c2.sh 9f264ee84b6d89f1f9fa7b76abd442c0
c2.sh 9f264ee84b6d89f1f9fa7b76abd442c0 c1d8061531d89476be61e948007ca239
cell_is_empty.sh 507bc5dca92d6f0d4c081a5146c13ed6
selection_simple.sh 1b3a915bf40ba8e869021055d368edf2
selection_box_simple.sh 1b3a915bf40ba8e869021055d368edf2
@ -118,7 +118,7 @@ mouse_reporting_mode_x10_ext_urxvt.sh bf1a407f13151bb2d90d7efce49d6ba6
mouse_reporting_mode_normal_ext_urxvt.sh bf68099047410f102e71d2e451875c69
mouse_reporting_mode_mouse_move_pressed_ext_urxvt.sh 59f3e59b60b3a43260de6a80135489eb
mouse_reporting_mode_all_ext_urxvt.sh a11bbc8ebea42d06cc3ad823b52c09b3
shift_in_out.sh 3896bcc6887998bbc41b43840a6b2e33
shift_in_out.sh 3896bcc6887998bbc41b43840a6b2e33 c3bb903237d9ef40d39ec07f328d922a
osc-11-query.sh 369e4e03be35dcb360e45d13fcd7da61
link_detection.sh bbe87a849586e8b922f26ad5d88146dc
selection_with_tabs.sh 23557497a8f28ca246048bb2443b3dab
@ -127,7 +127,7 @@ osc-invalid.sh 0acecbe16bb3b257745787c40affdb90
title_icon_stack_simple.sh 9231de4459dbb52d0ffab6f33fc386a0
title_icon_stack_unset.sh d2ebe2295eb036d9612209490f8aa7f9
title_icon_stack_default.sh d2ebe2295eb036d9612209490f8aa7f9
zero-width-spaces.sh 4bbf6bbaef5f651d27b7593d82650de9
zero-width-spaces.sh 4bbf6bbaef5f651d27b7593d82650de9 6d4fbe186917230bbf81d7c9272171c1
link_detection_email_surrounded.sh cb14f5c5601c045507220db6b503b1f2
link_detection_email_surrounded_more.sh ea1d93214a35ee2812964345bba303fc
selection_scrolls_up.sh c0fc70e8d865236d66edc7ad13af4dbe

Loading…
Cancel
Save