about summary refs log tree commit
path: root/t
DateCommit message (Collapse)
2019-07-03Net::NNTP: support COMPRESS DEFLATE (RFC8054) nntp-compress
NNTP compression reduces bandwidth use significantly and is supported in current versions of INN. It is specified in https://tools.ietf.org/html/rfc8054 Tested on news.gmane.org (running INN) with and without STARTTLS.
2016-07-28Remove the default Net::Cmd::timeout()
This accidentally overrode the timeout() in Net::FTP's $IOCLASS. Instead, we now document that timeout() needs to be provided by the Net::Cmd sub-class (normally by inheriting from IO::Socket::INET or similar (which in turn inherit from IO::Socket, which provides timeout()), which most users seem to do anyway). Similarly, document that close() most also be provided (normally by inheriting from IO::Handle, which IO::Socket::INET or similar also do, via IO::Socket). This fixes CPAN RT#116345. Thanks to ppisar@redhat.com for the analysis.
2016-07-07Provide (and document) a default Net::Cmd::timeout()
Previuosly, subclasses were required to provide a timeout() function, but this was not documented anywhere! Fixes CPAN RT#110978.
2016-06-22Adapt tests to Test2 revision of Test::More::note().
In each of the three t/*_ipv6.t test files, a helper subroutine was defined whose last statement was an invocation of Test::More::note(). Under the old Test::Builder framework, note() would always have returned a defined value of 0. However, in the Test2 framework -- which is in Perl 5 blead as of 5.25.2 -- note() calls the release() method from lib/Test2/API/Context.pm -- and release() has a bare return, which is treated as 'undef' in scalar context. Perl's exit function wants to return a non-negative integer value. Hence, we should guarantee that these helper subroutines -- which are invoked by exit() calls in each of the three files -- explicitly return 0 upon success.
2015-07-16Fix Net::Cmd::datasend() for octets stored in an upgraded string
The data passed to datasend() should already be encoded, but it can sometimes happen that the string holding the octets gets accidentally upgraded and it was wrong for datasend() to treat it differently in that case. Fixes CPAN RT#104433. Many thanks to Ricardo and Aristotle for their help on the ticket.
2015-04-01Remove accidental vi "insert" detritus from a test script
2015-03-24Add licence files; clarify licence statements
2015-03-10Convert tabs to spaces
2015-01-12libnet: less test noise on STDERR
Change the tests so that information about the port a server has started on etc, goes to to STDOUT rather than STDERR - which should be reserved for when things have gone wrong.
2014-12-20No need for the "1" at the end of "eval { require XXX; 1 }"
The module should return a true value anyway; require will die if that isn't the case.
2014-11-13No need to repeat checks for IO::Socket::SSL in t/*_ssl.t
We have already skipped all tests if !can_ssl() so there is no need to repeat what it checks. Nor is there any need to test if IO::Socket::SSL::Utils can be loaded and contains a required function: We can safely assume this is true if we've already checked that a suitable version of IO::Socket::SSL is available. All we need to do is to actually load IO::Socket::SSL::Utils since IO::Socket::SSL doesn't load it itself.
2014-10-28Add optional Changes testing (skipped unless AUTHOR_TESTING)
2014-10-09use version 1.999 of IO::Socket::SSL, because it protects against bad ↵
versions of IO::Socket::IP (0.30)
2014-10-09Skip Perl Critic, Pod and Pod Coverage tests unless AUTHOR_TESTING
Even after telling Perl::Critic to use its default policy configuration we may still see unexpected failures from CPAN Testers resulting from different versions of Perl::Critic having different policies. Pod tests may likewise have unexpected failures caused by users having different versions of the testing modules to the author. None of these tests are relevant to users anyway, so disable them by checking for $ENV{AUTHOR_TESTING}, as per the Lancaster Consensus. Resolves CPAN RT#99399.
2014-10-09Specify the default Perl::Critic configuration
Without this, Perl::Critic will search for a .perlcriticrc file in the user's home directory or via the PERLCRITIC environment variable (in the absence of our own one in the current directory), which may cause test failures (as seen on CPAN Testers) if a non-default policy configuration is set.
2014-10-09Better skipping of more tests requiring fork()
See also 6cda6a94c3.
2014-10-03Better skipping of tests requiring fork()
Windows doesn't have a real fork() and only has a fork() emulation when built with ithreads and -D PERL_IMPLICIT_SYS. ($Config{d_pseudofork} can be used to identify such builds on recent perls, but was only added in Perl 5.8.9/5.10.0.)
2014-06-26IPv6 and SSL support for Net::NNTP
2014-06-26Merge pull request #5 from noxxi/ipv6_ssl_ftp
added IPv6 and SSL support for Net::FTP
2014-06-24added IPv6 and SSL support for Net::FTP too
2014-06-21Test all files, not just files in blib/, with Perl::Critic
2014-06-11Add optional POD coverage testing
2014-06-05Add optional Perl::Critic testing
2014-06-05Add optional POD testing
2014-06-04Make code Perl::Critic clean
2014-06-04Note in more places that Perl 5.8.1 is now required
2014-06-04Use 5.008001, strict and warnings throughout
2014-06-02Avoid "Use of uninitialized value $parent in numeric eq (==)" warning when ↵
all tests skipped
2014-06-02Avoid "Name "IO::Socket::SSL::SSL_ERROR" used only once: possible typo" warnings
2014-06-02Rename new test scripts from *.pl to *.t as per MANIFEST
2014-06-02Merge branch 'ipv6_ssl' of https://github.com/noxxi/perl-libnet into ↵
noxxi-ipv6_ssl
2014-05-30Convert tabs to spaces
2014-05-16added external test for pop3 ssl
2014-05-16SSL and IPv6 support for POP3 incl. tests
2014-05-16added tests for Net::SMTP SSL and IPv6, save arguments in Net::SMTP to apply ↵
them on starttls
2014-05-09SSL and IPv6 support for Net::SMTP
2013-08-06Sync test suite with bleadperl
Apply patch from CPAN RT #87469.
2012-07-16Use correct TAP syntax to show reason for skipping (ftp) tests.
Separate ftp_testhost and test_hosts checks.
2010-05-31fix netrc tests
2009-02-24Update to handle PERL_CORE
2009-02-24Doc update for Net::Domain and additional test from Steve Peters
2009-02-24test return values of datasend and dataend
2009-02-24Make test output more readable
2009-02-24Avoid undef warnings
2003-10-20Net::Cmd
- Fix bug in CRLF translation in datasend/dataend
2002-02-25t/*
- Skip tests if no Socket module
2002-02-25t/netrc.t
- Fix RE context
2001-12-10More test updates from the core
2001-11-27Skip tests if we are on an EBCDIC machine, but Convert::EBCDIC is not installed
Make tests run with 5.004
2001-11-26netrc.t
- fix RE for libnet_t.pl