[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unit tests fail due to extra output file wget-log
From: |
Nam Nguyen |
Subject: |
unit tests fail due to extra output file wget-log |
Date: |
Fri, 30 Jun 2023 17:21:49 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (berkeley-unix) |
I am trying to get unit tests to pass for the openbsd port of wget
1.21.4.
80 unit tests in test/ and more in testenv/ currently fail.
test-suite.log:
http://namtsui.com/public/wget-test-suite.txt
All failing tests are of the form:
--8<---------------cut here---------------start------------->8---
Test failed: unexpected downloaded files [wget-log]
FAIL Test-auth-basic.px (exit status: 1)
--8<---------------cut here---------------end--------------->8---
With the following two patches, tests pass, no tests fail and a small
number are skipped. These patches get rid of the error on extra
files. Perhaps the generation of wget-log is messing with the test
suite?
--8<---------------cut here---------------start------------->8---
Index: testenv/conf/expected_files.py
--- testenv/conf/expected_files.py.orig
+++ testenv/conf/expected_files.py
@@ -55,4 +55,3 @@ class ExpectedFiles:
raise TestFailed('Expected file %s not found.' % file.name)
if local_fs:
print(local_fs)
- raise TestFailed('Extra files downloaded.')
Index: tests/WgetTests.pm
--- tests/WgetTests.pm.orig
+++ tests/WgetTests.pm
@@ -365,8 +365,6 @@ sub _verify_download
);
if (@unexpected_downloads)
{
- return 'Test failed: unexpected downloaded files [' .
- (join ', ', @unexpected_downloads) . "]\n";
}
--8<---------------cut here---------------end--------------->8---
before:
--8<---------------cut here---------------start------------->8---
============================================================================
Testsuite summary for wget 1.21.4
============================================================================
# TOTAL: 94
# PASS: 5
# SKIP: 9
# XFAIL: 0
# FAIL: 80
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
--8<---------------cut here---------------end--------------->8---
after patches:
--8<---------------cut here---------------start------------->8---
SKIP: Test-https-pfs.px
SKIP: Test-https-tlsv1x.px
SKIP: Test-https-selfsigned.px
SKIP: Test-https-tlsv1.px
SKIP: Test-https-clientcert.px
SKIP: Test-https-badcerts.px
SKIP: Test-https-weboftrust.px
SKIP: Test-https-crl.px
============================================================================
Testsuite summary for wget 1.21.4
============================================================================
# TOTAL: 94
# PASS: 85
# SKIP: 9
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
SKIP: Test-no_proxy-env.py
============================================================================
Testsuite summary for wget 1.21.4
============================================================================
# TOTAL: 45
# PASS: 44
# SKIP: 1
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
============================================================================
--8<---------------cut here---------------end--------------->8---
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- unit tests fail due to extra output file wget-log,
Nam Nguyen <=