Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests fail on Mac #544

Open
hwjeremy opened this issue Oct 14, 2024 · 1 comment
Open

tests fail on Mac #544

hwjeremy opened this issue Oct 14, 2024 · 1 comment

Comments

@hwjeremy
Copy link

hwjeremy commented Oct 14, 2024

Hi everyone, the the following test failure occurs in the following environment:

Commit: 9b88159ce763d680e4a13b6e8f3171ae923a535d
OpenSSL: 3.3.0
macOS: 14.6.1
SoC: M2 Max

make check output (snipped to just before the failure):

    # Subtest: many-handshakes-async
    ok 1 - /path/to/picotls/t/openssl.c 415
    # run 10000 handshakes in 5.637044 seconds
    ok 2 - /path/to/picotls/t/openssl.c 511
    1..2
ok 16 - many-handshakes-async
# qatengine not found
1..16
ok
t/e2e.t .............................................................. Can't locate Net/EmptyPort.pm in @INC (you may need to install the Net::EmptyPort module) (@INC contains: /Library/Perl/5.34/darwin-thread-multi-2level /Library/Perl/5.34 /Network/Library/Perl/5.34/darwin-thread-multi-2level /Network/Library/Perl/5.34 /Library/Perl/Updates/5.34.1 /System/Library/Perl/5.34/darwin-thread-multi-2level /System/Library/Perl/5.34 /System/Library/Perl/Extras/5.34/darwin-thread-multi-2level /System/Library/Perl/Extras/5.34) at t/e2e.t line 7.
BEGIN failed--compilation aborted at t/e2e.t line 7.
Dubious, test returned 2 (wstat 512, 0x200)
No subtests run 
t/ech-live.t ......................................................... 
1..0 # SKIP skipping live tests (setenv LIVE_TESTS=1 to run them)
skipped: skipping live tests (setenv LIVE_TESTS=1 to run them)

Test Summary Report
-------------------
t/e2e.t                                                            (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=4, Tests=21, 15 wallclock secs ( 0.41 usr  0.05 sys + 15.34 cusr  0.09 csys = 15.89 CPU)
Result: FAIL
make[3]: *** [CMakeFiles/check] Error 1
make[2]: *** [CMakeFiles/check.dir/all] Error 2
make[1]: *** [CMakeFiles/check.dir/rule] Error 2
make: *** [check] Error 2
@kazuho
Copy link
Member

kazuho commented Oct 14, 2024

You need to install a perl module Test::TCP. The most straightforward way is:

  1. install cpanm via homebrew
  2. run cpanm Test::TCP
  3. export PERL5LIB=$HOME/perl5/lib/perl5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants