Commit Graph

57 Commits

Author SHA1 Message Date
Simon Josefsson
e1a7487908 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.
2022-09-25 10:53:27 +02:00
Erik Auerswald
d3270b73ec tests: read binary fuzzer input from a file
Instead of recreating the binary input found to crash tftp
with printf(1), save the input in a file and use input
redirection in the test.

* tests/Makefile.ami (EXTRA_DIST): Move setting of EXTRA_DIST
before setting dist_check_SCRIPTS.  Add the tftp crash input
file when the tftp client is enabled.
* tests/crash-tftp-msg2021-12_18: New file.  The input formerly
crashing tftp.
* tests/tftp-regressions.sh: Replace use of printf with input
redirection.
2022-09-17 18:36:26 +02:00
Erik Auerswald
a5ef727816 tests: Check for tftp crash bug
* tests/Makefile.am (dist_check_SCRIPTS)
* tests/tftp-regressions.sh: New file.  Currently failing
check for regression of fix for bug reported by AiDai in:
<https://lists.gnu.org/archive/html/bug-inetutils/2021-12/msg00018.html>
2022-09-11 15:03:35 +02:00
Alfred M. Szmidt
6d519229fa Happy GNU 2022 year! 2022-01-01 17:23:02 +01:00
Simon Josefsson
1d5c923528 maint: Use copyright year ranges for readability.
* cfg.mk (update-copyright-env): Add, from coreutils.
(VC_LIST_ALWAYS_EXCLUDE_REGEX): Add, for update-copyright exceptions.
* README: Add info about copyright year ranges.
* *: Update copyright notices.
2021-09-03 18:41:09 +02:00
Simon Josefsson
b6bfaf9630 Fix link failure with absent -lutil on Solaris 10.
* configure.ac (LIBUTIL): Prefer PTY_LIBS in Makefile.am over
adding -lutil for pty-functions.
* src/Makefile.am (LDADD): Add PTY_LIB.
* telnetd/Makefile.am (LDADD): Likewise.
* tests/Makefile.am (identify_LDADD): Likewise.
2021-01-28 09:01:47 +01:00
Alfred M. Szmidt
911413ea57 Happy GNU 2021 year! 2021-01-01 11:35:27 +01:00
Mats Erik Andersson
a1d8a1f87d test-snprintf: New test program.
We want to make testers aware that snprintf() is not behaving identically
on all platforms.  In fact, glibc offers the least robust implementation.
An observation leading to this test was reported by Zhixiong Chi.
2020-02-09 02:17:01 +01:00
Mats Erik Andersson
44e30cc781 Separation of test cases as IPv4 and IPv6.
Existing tests are now made available as separate collections/tasks
for the two address families, selectable at testing time.
2020-01-24 17:21:24 +01:00
Mats Erik Andersson
3c908f3420 Test robustly in absence of IPv6.
A system like Raspbian can be configured without IPv6 at runtime.
Suppress IPv6 addresses in test scripts, whenever IPv6 is auto-inserted
and a check at test execution time fails for `::1'.  Issue was reported
by Bruno Haible.
2020-01-20 16:38:05 +01:00
Mats Erik Andersson
522101f499 Consistent use of grep tools in scripts.
Lack of consistency surfaced as a portability issue for Solaris 11.
Reported by Bruno Haible for release candidate.
2020-01-11 12:01:02 +01:00
Simon Josefsson
d8de4587f2 Update copyright years to use intervals up to 2020. 2020-01-01 13:21:37 +01:00
Mats Erik Andersson
e0b19a9912 Test utility displays some termcaps. 2017-03-03 19:49:55 +01:00
Mats Erik Andersson
3d64a8c728 Update copyright years to 2017. (silent change) 2017-02-21 14:25:23 +01:00
Mats Erik Andersson
84dcf08568 Update copyright years to 2016. (silent change) 2016-01-22 19:09:49 +01:00
Mats Erik Andersson
c590657f6a Fully configure testing without IPv6.
Set non-standard testing addresses at configuration time.
2015-02-28 22:52:40 +01:00
Mats Erik Andersson
02b3e80062 Allow testing without IPv6.
Pass a semaphor to the test scripts to indicate
whether to disable IPv6 tests or not.
2015-02-27 23:39:54 +01:00
Mats Erik Andersson
d3c9b1b8fa Update copyright years with 2015. (silent change) 2015-01-16 14:09:44 +01:00
Mats Erik Andersson
d7139b7ea8 More tests for more code coverage. 2014-08-02 21:37:00 +02:00
Mats Erik Andersson
139c19958e libls: Inconsistent options. 2014-07-25 15:48:45 +02:00
Mats Erik Andersson
93db34ea1d Further tests of ifconfig. 2014-02-14 23:45:28 +01:00
Mats Erik Andersson
ae85332551 Update copyright years with 2014. (silent change) 2014-01-18 12:23:21 +01:00
Mats Erik Andersson
309ba4a541 Portability of Unix macros. 2013-08-30 15:56:19 +02:00
Mats Erik Andersson
7bf459b53e Run inetd test without tty. 2013-08-24 00:38:47 +02:00
Mats Erik Andersson
ae099cde5b One new test script. 2013-08-14 21:28:18 +02:00
Mats Erik Andersson
d1d52cce92 Update copyright years with 2013. (silent change) 2013-05-22 21:03:41 +02:00
Mats Erik Andersson
0dc3545ca8 Move if_nameindex to libinetutils.
Build if_nametoindex() and if_nameindex() in libinetutils.a
if they are missing in the system library.
2012-11-28 19:26:18 +01:00
Mats Erik Andersson
3299ba83d9 Mixed testing issues. 2012-11-14 22:28:21 +01:00
Mats Erik Andersson
78b2623dd4 Test script for read_utmp. 2012-11-01 21:58:14 +01:00
Mats Erik Andersson
78079c5208 Address resolution alternative. 2012-09-13 21:59:15 +02:00
Mats Erik Andersson
910a251821 Configuration impovements. 2012-08-30 02:28:36 +02:00
Mats Erik Andersson
ab1f0a199c Build test binaries early. 2012-05-14 23:39:06 +02:00
Mats Erik Andersson
45fc01f25f tests: Distribute tools.sh.in. 2012-03-21 12:20:18 +01:00
Mats Erik Andersson
6065febe54 Common helper for test scripts. 2012-03-21 02:03:38 +01:00
Simon Josefsson
24587ec0fd Add new tool dnsdomainname. 2012-03-12 12:17:54 +01:00
Mats Erik Andersson
b4a938fe77 Basic telnet test. 2012-02-21 12:31:25 +01:00
Alfred M. Szmidt
99c71142f2 Updated copyright years; happy 2012! (silent change) 2012-01-01 19:27:00 +01:00
Alfred M. Szmidt
bfee55f68b Basic test case for `hostname'. 2011-11-29 17:15:32 +01:00
Simon Josefsson
0aeea0cb61 tests: Added self-tests of ftp and ftpd (using inetd).
* tests/Makefile.am (dist_check_SCRIPTS): Add ftp-localhost.sh.
* tests/ftp-localhost.sh: New file.
2011-11-19 11:40:57 +01:00
Alfred M. Szmidt
8899e044dd New variables (iu_LIBRARIES and iu_INCLUDES ) for specifying core inetutils libraries and header files in Makefile.am. 2011-10-25 17:01:48 +02:00
Mats Erik Andersson
e0ecdab5be syslogd: Dereferencing NULL fault. A test script. 2011-06-15 00:53:32 +02:00
Alfred M. Szmidt
d9788a7d35 Updated copyright years; happy 2011! (silent change) 2011-01-02 15:23:38 +00:00
Mats Erik Andersson
202092b67d addrpeek: New test service for Inetd. 2010-12-21 15:50:50 +01:00
Alfred M. Szmidt
e02ec46ff5 Add tftpd' and tftp' test. 2010-10-19 19:08:21 +02:00
Simon Josefsson
9ad26dc320 tests/Makefile.am (dist_check_SCRIPTS): Make testing ping and traceroute conditioned on ENABLE_ping and ENABLE_traceroute.
Reported by Adam Sampson <ats@offog.org>.
2010-05-18 20:19:13 +02:00
Alfred M. Szmidt
c583418f78 Updated copyright years for 2010.
Happy New Year!
2010-01-02 14:58:43 +01:00
Simon Josefsson
7e0a3fb669 tests/Makefile.am (TESTS): Change $(check_SCRIPTS) to $(dist_check_SCRIPTS). 2009-12-17 08:51:01 +01:00
Simon Josefsson
abe9d45ca6 Fix build error. 2009-12-11 08:44:43 +01:00
Alfred M. Szmidt
ab969f82f0 Make sure that test scripts are part of the distribution tarball. 2009-12-05 18:33:59 +01:00
Giuseppe Scrivano
a537491a63 Use ../lib/libgnu.a instead of -lgnu 2009-12-03 23:01:15 +01:00