test_requiresinternet

Easily test network connectivity

bacaro: haikuports also on HaikuPorts
Also on HaikuPorts. test_requiresinternet

Description

This module is intended to easily test network connectivity before functional tests begin to non-local Internet resources. It does not require any modules beyond those supplied in core Perl. If you do not specify a host/port pair, then the module defaults to using www.google.com on port 80. You may optionally specify the port by its name, as in http or ldap. If you do this, the test module will attempt to look up the port number using getservbyname. If you do specify a host and port, they must be specified in pairs. It is a fatal error to omit one or the other. If the environment variable NO_NETWORK_TESTING is set, then the tests will be skipped without attempting any socket connections. If the sockets cannot connect to the specified hosts and ports, the exception is caught, reported and the tests skipped.

Install

Channel stable v0.05-2

This app is curated in HaikuPorts. Install it from there, it is already available in HaikuDepot.

pkgman install test_requiresinternet

Download version 0.05-2 (any) hpkg

Careful: the file comes from HaikuPorts' own server, but installing it by hand is not the way in. It is pkgman that resolves the dependencies an .hpkg does not carry with it, and a package installed on its own may simply not run. Use the pkgman command above, unless you know exactly why you want the file.

Reviews