Fix 'make dist' and 'make syntax-check'.

* tests/Makefile.am (EXTRA_DIST): Unconditionally distribute crash file.
* tests/crash-tftp-msg2021-12_18.bin: Renamed.
* cfg.mk (exclude_file_name_regexp--sc_trailing_blank)
(exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF): Add crash file.
* tests/tools.sh (srcdir): Set fallback srcdir.
* tests/tftp-regressions.sh: Use new filename in srcdir.
This commit is contained in:
Simon Josefsson
2022-09-25 10:23:54 +02:00
parent 858ac0bfe9
commit e1a7487908
4 changed files with 6 additions and 4 deletions

5
cfg.mk
View File

@@ -64,7 +64,10 @@ exclude_file_name_regexp--sc_obsolete_symbols = \
^tests/identify.c$$
exclude_file_name_regexp--sc_trailing_blank = \
^gl/top/README-release.diff$$
^(tests/crash-tftp-msg2021-12_18.bin|gl/top/README-release.diff)$$
exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = \
^tests/crash-tftp-msg2021-12_18.bin$$
sc_unsigned_char:
@prohibit=u''_char \

View File

@@ -20,7 +20,7 @@ AM_CPPFLAGS = $(iu_INCLUDES)
LDADD = $(iu_LIBRARIES)
EXTRA_DIST = tools.sh.in ifconfig_modes.sh
EXTRA_DIST = tools.sh.in ifconfig_modes.sh crash-tftp-msg2021-12_18.bin
noinst_PROGRAMS = identify
identify_LDADD = $(top_builddir)/lib/libgnu.a $(LIBUTIL) $(PTY_LIB)
@@ -46,7 +46,6 @@ if ENABLE_traceroute
dist_check_SCRIPTS += traceroute-localhost.sh
endif
if ENABLE_tftpd
EXTRA_DIST += crash-tftp-msg2021-12_18
dist_check_SCRIPTS += tftp-regressions.sh
endif
if ENABLE_inetd

View File

@@ -52,7 +52,7 @@ RESULT=0
# https://lists.gnu.org/archive/html/bug-inetutils/2021-12/msg00018.html
EFFORTS=`expr $EFFORTS + 1`
$silence echo 'Checking crash bug from message 2021-12/18...' >&2
"$TFTP" < crash-tftp-msg2021-12_18 >/dev/null 2>&1
"$TFTP" < $srcdir/crash-tftp-msg2021-12_18.bin >/dev/null 2>&1
if test $? -ne 0; then
$silence echo 'Regression of tftp crash bug from message 2021-12/18.' >&2
RESULT=1