Darshit Shah
f973f4857a
* Update copyright year to 2024
2024-02-19 18:33:43 +05:30
Tim Rühsen
04ab356669
Fix crash when printing download rate
...
If the download rate is TB/s, a read buffer overflow happended
that either caused a crash or printed whatever string was pointed to.
* src/retr.c (retr_rate): Add missing array entrie for TB/s and Tb/s,
(test_retr_rate): New test function.
* tests/unit-tests.c (all_tests): Run test 'test_retr_rate'.
* tests/unit-tests.h: Add prototype for test_retr_rate.
Reported-by: Wiebe Cazemier <wiebe@halfgaar.net>
2023-08-03 11:19:41 +02:00
Christian Weisgerber
4d99bb1ff1
* tests/Makefile.am: Remove './' from for portability (OpenBSD)
...
Copyright-paperwork-exempt: Yes
2023-08-03 10:39:56 +02:00
Tim Rühsen
834d090bf6
Add new unit test test_uri_merge()
...
* src/url.c: New test function test_uri_merge().
* tests/unit-tests.c (tests/unit-tests.c): Call test_uri_merge().
* tests/unit-tests.h (tests/unit-tests.h): Declare test_uri_merge().
2023-07-01 18:14:00 +02:00
Tim Rühsen
2339d79b05
* tests/valgrind-suppressions: Add rule for 'strcmp-sse2.S in libdl.so'
2023-02-18 17:25:56 +01:00
Tim Rühsen
4223996930
Update copyright years
2023-02-17 13:46:58 +01:00
Darshit Shah
be936bda56
* Update Copyright years
2022-02-26 15:49:52 +01:00
Tim Rühsen
74a9d9e7c4
* src/netrc.c (test_parse_netrc): New unit test function
2022-02-13 17:28:02 +01:00
Tim Rühsen
d2af84fbb3
* tests/valgrind-suppressions: Fix libidn rule
2021-12-22 14:32:50 +01:00
Tim Rühsen
8c5a620f0f
* tests/valgrind-suppressions: Extend libidn rule
2021-12-22 14:01:47 +01:00
Tim Rühsen
3a1ac38f00
* tests/WgetTests.pm: Add --show-leak-kinds=all valgrind argument
2021-04-11 19:40:56 +02:00
Darshit Shah
f7835691b4
Fix double free in FTP Code
...
* src/ftp.c(getftp): Don't free `target`. If it is not pointing to
targetbuf, then it still pointing to its original location of u->dir.
This location will be free'd later. Doing so now causes a double free
and hence crashes Wget
* tests/Test-ftp-dir.px: New test to show double free error
* tests/Makefile.am: Add new test
2021-03-02 12:03:14 +01:00
Darshit Shah
5a7f2f7e87
Run make update-copyright
2021-01-01 12:31:01 +01:00
Darshit Shah
2e4504c553
* tests/valgrind-suppressions: Make suppression for libidn false positive more generic
2020-12-28 22:44:33 +01:00
Darshit Shah
73c474edf6
tests/valgrind-suppressions: Add suppressions for false positives
2020-12-28 02:34:02 +01:00
Tim Rühsen
04b7369490
* tests/unit-tests.c: Fix 'multiple definition of...' with gcc 10
2020-02-22 13:41:04 +01:00
Tim Rühsen
aba6e67eb7
Add valgrind suppressions
...
* testenv/valgrind-suppression-ssl: Add gnutls suppressions
* tests/valgrind-suppressions: Likewise
* tests/valgrind-suppressions-ssl: Likewise
2020-02-21 22:43:01 +01:00
Tim Rühsen
e1c4a2705f
Add --gen-suppressions=all to valgrind options
...
* testenv/test/base_test.py: Add --gen-suppressions=all to valgrind options
* tests/Test-proxied-https-auth.px: Likewise
* tests/WgetTests.pm: Likewise
2020-02-21 22:42:22 +01:00
Tim Rühsen
08aa947c9d
Add valgrind suppressions for HTTPS tests (GnuTLS false positive)
...
* testenv/valgrind-suppression-ssl: Add new rule
* tests/valgrind-suppressions: Likewise
* tests/valgrind-suppressions-ssl: Likewise
2020-02-21 13:20:45 +01:00
Darshit Shah
221f1ba3ef
Update copyright year to 2020
2020-01-10 12:56:08 +01:00
Tim Rühsen
0751d053f5
* tests/WgetTests.pm: Support to set the wget executable for testing
2019-11-21 11:24:48 +01:00
Tim Rühsen
b3f86f90cc
Revert "Add . to perl path for all perl tests"
...
This reverts commit 79be99aff4
.
/usr/bin/env 8.28 and below doesn't know -S.
2019-05-30 12:06:01 +02:00
Tim Rühsen
64f6f6847e
Add sanitizer flags for ./configure
...
* bootstrap.conf: Add 'warning' gnulib module
* configure.ac: Add --enable-fsanitize-* flags
* tests/Makefile.am: Add compiler flags for unit testing
2019-05-03 11:27:30 +02:00
Darshit Shah
8b975e83d3
Update copyright statements
2019-02-10 11:50:17 +01:00
Tim Rühsen
fdb7fe613c
Fix typos detected by codespell (via contrib/spell-checker)
2018-12-28 18:58:15 +01:00
Tim Rühsen
ed23e682da
Fix HTTPS Perl tests
...
* tests/SSLTest.pm: Rename server cert and key file
* tests/Test-https*.px: Fix and remove OpenSSL hard-coding
* tests/certs/create-certs.sh: Script to generate test files
* tests/certs/*-template.txt: GnuTLS template files for certs and crl
* tests/certs/*.pem: Keys, certs, crls
* tests/certs/README: Removed commands, link to create-certs.sh
2018-11-09 15:47:53 +01:00
Tim Rühsen
79be99aff4
Add . to perl path for all perl tests
...
* tests/*.px: Add -I . to the shebang
This allows perl test to be run from tests/ directory, e.g. via
./Test--post-file.px
2018-09-07 10:48:14 +02:00
Tim Rühsen
f51936745a
* tests/Test-https-weboftrust.px: Skip test, needs cert regen
2018-05-06 18:19:50 +02:00
Tim Rühsen
a6452061f8
Fix HTTPS tests
...
* tests/Test-https-badcerts.px: Fix test return value
* tests/Test-https-crl.px: Likewise
* README: How to create certs with GnuTLS's certtool
* tests/certs/revokedcrl.pem: Recreated revocation
* tests/certs/server.crt: Recreated server cert with no expiry
* tests/certs/test-ca-cert.pem: Recreated CA cert with no expiry
2018-05-06 17:30:42 +02:00
Tim Rühsen
ceb5d2d794
* tests/Makefile.am: Add -I/src to AM_CPPFLAGS
2018-04-26 16:17:10 +02:00
Tim Rühsen
de54c970b2
Move unit-test code to tests/
...
* src/Makefile.am: Remove test.c and test.h
* src/test.c: Rename to tests/unit-tests.c
* src/test.h: Rename to tests/unit-tests.h
* tests/Makefile.am: Add unit-tests.c and unit-tests.h
* src/hsts.c: Amend #include
* src/http.c: Likewise
* src/init.c: Likewise
* src/metalink.c: Likewise
* src/res.c: Likewise
* src/url.c: Likewise
* src/utils.c: Likewise
2018-04-05 15:06:47 +02:00
Tim Rühsen
98ec26cc6d
Fix warning to not print binary IP address
...
* tests/Test-https-badcerts.px: Likewise
* tests/Test-https-clientcert.px: Likewise
* tests/Test-https-crl.px: Likewise
* tests/Test-https-pfs.px: Likewise
* tests/Test-https-selfsigned.px: Likewise
* tests/Test-https-tlsv1.px: Likewise
* tests/Test-https-tlsv1x.px: Likewise
* tests/Test-https-weboftrust.px: Likewise
2018-02-09 10:33:07 +01:00
Darshit Shah
183fccdaad
Update Copyright years
2018-01-14 11:24:43 +01:00
Tim Rühsen
a30a5a9059
* tests/Test-https-weboftrust.px: Fix/add sslport
2017-11-16 12:12:16 +01:00
Tim Rühsen
7ac72e063c
Fix uninitialized value messages in tests
...
* tests/Test-https-*.px: Use correct variable in error message
Reported-by: Jeffrey Walton
2017-10-30 21:29:14 +01:00
Tim Rühsen
40c0d30f5c
Fix Test-https-badcerts.px
...
* util/createcerts.sh: Set date of invalid cert to +20 years
* tests/certs/invalid.crt: Re-generated
* tests/certs/invalid.key: Re-generated
2017-05-15 15:46:11 +02:00
Tim Rühsen
269fb6201d
Fix Test-https-badcerts.px to work with GnuTLS
...
* tests/Test-https-badcerts.px: Remove OpenSSL requirement
* tests/certs/expired.crt: Re-created with valid dates
* tests/certs/expired.key: Likewise
* tests/certs/invalid.crt: Likewise
* tests/certs/invalid.key: Likewise
2017-05-14 11:10:15 +02:00
Tim Rühsen
da50a1ecc3
Add certs/wotca.pem to avoid temp. file creation
...
* tests/certs/wotca.pem: New file
* tests/Test-https-weboftrust.px: Remove creation of wotca.pem
This change let Test-https-weboftrust.px survive VPATH builds.
2017-05-10 10:34:42 +02:00
Tim Rühsen
0d9f8280e0
* tests/Test-https-selfsigned.px: Add newline at EOF (syntax-check)
2017-05-10 10:04:30 +02:00
Vijo Cherian
17f0e16ecc
Removed all uses of temp files.
...
Added needed files to GIT
2017-05-09 16:45:13 -07:00
Vijo Cherian
cc74f8b7e2
Made CRL related files in the repo, instead of trying to generate them
2017-05-09 15:37:28 -07:00
Tim Rühsen
2894a37189
Cleanup on exit in Test-https-*.px
...
* tests/Test-https-*.px: Cleanup on exit
2017-05-09 16:58:33 +02:00
Tim Rühsen
4669ba5e0c
Auto-generate interca.conf and rootca.conf
...
* configure.ac: Add interca.conf.in and rootca.conf.in to AC_CONFIG_FILES
* tests/certs/interca.conf: Removed
* tests/certs/rootca.conf: Removed
* tests/certs/interca.conf.in: New file
* tests/certs/rootca.conf.in: New file
2017-05-09 16:04:48 +02:00
Tim Rühsen
b5c2d083ea
Fix path and VPATH issues of new https/TLS tests
...
* tests/SSLTest.pm: Use $srcdir in read-only files,
(_setup_server): Remove unneeded path fixation code
* tests/Test-https-*.px: Use $srcdir for read-only files,
use $cdir for writable files
* tests/certs/interca.conf: Adjust paths
* tests/certs/rootca.conf: Adjust paths
2017-05-09 15:21:23 +02:00
Tim Rühsen
466afc62b0
Check for test server name resolution in tests
...
* tests/Test-https-*.px: Skip if test server name resolution fails
2017-05-09 11:16:30 +02:00
Tim Rühsen
f68d001626
* tests/Makefile.am: Enable Test-https-badcerts again
2017-05-09 11:16:30 +02:00
Tim Rühsen
ffe75d0867
Fix WgetFeature.pm to allow multiple required features
...
* tests/WgetFeature.cfg: Remove file
* tests/WgetFeature.pm: Extend to multiple features, cleanup
2017-05-09 11:16:30 +02:00
Tim Rühsen
5337b94ce5
* tests/SSLServer.pm: Check for IO::Socket::SSL
2017-05-09 11:08:32 +02:00
Tim Rühsen
a26e6f3527
* tests/Test-https-*: Change server port to <= 32767
2017-05-09 11:08:32 +02:00
Tim Rühsen
b9fb74ddfa
Move https test server ports from >32767 to <= 32767
...
* Test-https-badcerts.px: Change port
* Test-https-crl.px: Likewise
* Test-https-weboftrust.px: Likewise
2017-05-09 11:08:32 +02:00