h2o / picotls

TLS 1.3 implementation in C (master supports RFC8446 as well as draft-26, -27, -28)
539 stars 143 forks source link

tests fail on Mac #544

Open hwjeremy opened 1 week ago

hwjeremy commented 1 week ago

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 commented 1 week ago

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