Checking whether your kit is complete... Looks good Checking prerequisites... Looks good The automated tests need to be configured with host:port information for a connection that you expect to work, and host:port information for a connection that you expect to fail. First, a host:port that you expect to connect to. The default specifies the SSH port on the localhost. host:port : [localhost:22 ]localhost:22 Now, an IP address:port that you expect to connect to. The default specifies the SSH port on 127.0.0.1 (localhost). ip:port : [127.0.0.1:22 ]127.0.0.1:22 Finally, a host:port that you do not expect to connect to. Note that the host must exist in order for the tests to work, but it should have nothing listening on the specified port. The default specifies the telnet port on the localhost. host:port : [localhost:23 ]localhost:23 Creating new 'Build' script for 'Test-Net-Connect' version '0.03' Copying lib/Test/Net/Connect.pm -> blib/lib/Test/Net/Connect.pm Writing config notes to blib/lib/Test/Net/Connect/ConfigData.pm Manifying blib/lib/Test/Net/Connect/ConfigData.pm -> blib/libdoc/Test::Net::Connect::ConfigData.3 Manifying blib/lib/Test/Net/Connect.pm -> blib/libdoc/Test::Net::Connect.3 HTMLifying blib/lib/Test/Net/Connect/ConfigData.pm -> blib/libhtml/site/lib/Test/Net/Connect/ConfigData.html HTMLifying blib/lib/Test/Net/Connect.pm -> blib/libhtml/site/lib/Test/Net/Connect.html t/00-load..........1..1 ok 1 - use Test::Net::Connect; # Testing Test::Net::Connect 0.03, Perl 5.008007, /local/0/usr/local/bin/perl ok t/01-connect_ok....ok 1 - use Test::Net::Connect; ok 2 - use Test::Net::Connect::ConfigData; ok 3 - Test 'Basic call with all arguments succeeds' completed ok 4 - Test 'Basic call with all arguments succeeds' no premature diagnostication ok 5 - Test 'Basic call with all arguments succeeds' result count ok 6 - subtest 'Check host:port from user' of 'Basic call with all arguments succeeds' compare ok ok 7 - subtest 'Check host:port from user' of 'Basic call with all arguments succeeds' compare name ok 8 - checking depth ok 9 - subtest 'Check host:port from user' of 'Basic call with all arguments succeeds' compare diag ok 10 - Test 'Basic call with default proto arguments succeeds' completed ok 11 - Test 'Basic call with default proto arguments succeeds' no premature diagnostication ok 12 - Test 'Basic call with default proto arguments succeeds' result count ok 13 - subtest 'Check host:port from user' of 'Basic call with default proto arguments succeeds' compare ok ok 14 - subtest 'Check host:port from user' of 'Basic call with default proto arguments succeeds' compare name ok 15 - checking depth ok 16 - subtest 'Check host:port from user' of 'Basic call with default proto arguments succeeds' compare diag ok 17 - Test 'Basic call with default proto and host:port form succeeds' completed ok 18 - Test 'Basic call with default proto and host:port form succeeds' no premature diagnostication ok 19 - Test 'Basic call with default proto and host:port form succeeds' result count ok 20 - subtest 'Check host:port from user' of 'Basic call with default proto and host:port form succeeds' compare ok ok 21 - subtest 'Check host:port from user' of 'Basic call with default proto and host:port form succeeds' compare name ok 22 - checking depth ok 23 - Test 'Basic call with no test name succeeds' completed ok 24 - Test 'Basic call with no test name succeeds' no premature diagnostication ok 25 - Test 'Basic call with no test name succeeds' result count ok 26 - subtest 'Connecting to tcp://localhost:22' of 'Basic call with no test name succeeds' compare ok ok 27 - subtest 'Connecting to tcp://localhost:22' of 'Basic call with no test name succeeds' compare name ok 28 - checking depth ok 29 - Test 'Basic call with IP address succeeds' completed ok 30 - Test 'Basic call with IP address succeeds' no premature diagnostication ok 31 - Test 'Basic call with IP address succeeds' result count ok 32 - subtest 'Check host:port from user' of 'Basic call with IP address succeeds' compare ok ok 33 - subtest 'Check host:port from user' of 'Basic call with IP address succeeds' compare name ok 34 - checking depth ok 35 - Test 'Basic call succeeds' completed ok 36 - Test 'Basic call succeeds' no premature diagnostication ok 37 - Test 'Basic call succeeds' result count not ok 38 - subtest 'Check badhost:badport from user' of 'Basic call succeeds' compare ok # Failed test (t/01-connect_ok.t at line 58) # got: '0' # expected: '1' ok 39 - subtest 'Check badhost:badport from user' of 'Basic call succeeds' compare name ok 40 - checking depth # Failed test (t/01-connect_ok.t at line 58) not ok 41 - subtest 'Check badhost:badport from user' of 'Basic call succeeds' compare diag # Got diag (47 bytes): # ' Connection to tcp://127.0.0.1:23 succeeded' # Expected diag (0 bytes): # ok 42 - Test 'Basic call with no test name succeeds' completed ok 43 - Test 'Basic call with no test name succeeds' no premature diagnostication ok 44 - Test 'Basic call with no test name succeeds' result count # Failed test (t/01-connect_ok.t at line 65) not ok 45 - subtest 'Connecting to tcp://localhost:23' of 'Basic call with no test name succeeds' compare ok # got: '0' # expected: '1' ok 46 - subtest 'Connecting to tcp://localhost:23' of 'Basic call with no test name succeeds' compare name ok 47 - checking depth # Failed test (t/01-connect_ok.t at line 65) not ok 48 - subtest 'Connecting to tcp://localhost:23' of 'Basic call with no test name succeeds' compare diag # Got diag (47 bytes): # ' Connection to tcp://127.0.0.1:23 succeeded' # Expected diag (0 bytes): # ok 49 - Test 'connect_ok()' completed ok 50 - Test 'connect_ok()' no premature diagnostication ok 51 - Test 'connect_ok()' result count ok 52 - subtest 'connect_ok()' of 'connect_ok()' compare ok ok 53 - subtest 'connect_ok()' of 'connect_ok()' compare name # Failed test (t/01-connect_ok.t at line 77) not ok 54 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 55 - subtest 'connect_ok()' of 'connect_ok()' compare diag ok 56 - Test 'connect_ok(SCALAR)' completed ok 57 - Test 'connect_ok(SCALAR)' no premature diagnostication ok 58 - Test 'connect_ok(SCALAR)' result count ok 59 - subtest 'connect_ok()' of 'connect_ok(SCALAR)' compare ok ok 60 - subtest 'connect_ok()' of 'connect_ok(SCALAR)' compare name # Failed test (t/01-connect_ok.t at line 82) not ok 61 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 62 - subtest 'connect_ok()' of 'connect_ok(SCALAR)' compare diag ok 63 - Test 'connect_ok(SCALAR, SCALAR)' completed ok 64 - Test 'connect_ok(SCALAR, SCALAR)' no premature diagnostication ok 65 - Test 'connect_ok(SCALAR, SCALAR)' result count ok 66 - subtest 'test name' of 'connect_ok(SCALAR, SCALAR)' compare ok ok 67 - subtest 'test name' of 'connect_ok(SCALAR, SCALAR)' compare name # Failed test (t/01-connect_ok.t at line 87) not ok 68 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 69 - subtest 'test name' of 'connect_ok(SCALAR, SCALAR)' compare diag ok 70 - Test 'connect_ok() with no host name' completed ok 71 - Test 'connect_ok() with no host name' no premature diagnostication ok 72 - Test 'connect_ok() with no host name' result count ok 73 - subtest 'connect_ok()' of 'connect_ok() with no host name' compare ok ok 74 - subtest 'connect_ok()' of 'connect_ok() with no host name' compare name # Failed test (t/01-connect_ok.t at line 92) not ok 75 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 76 - subtest 'connect_ok()' of 'connect_ok() with no host name' compare diag ok 77 - Test 'connect_ok() with undef host name' completed ok 78 - Test 'connect_ok() with undef host name' no premature diagnostication ok 79 - Test 'connect_ok() with undef host name' result count ok 80 - subtest 'connect_ok()' of 'connect_ok() with undef host name' compare ok ok 81 - subtest 'connect_ok()' of 'connect_ok() with undef host name' compare name # Failed test (t/01-connect_ok.t at line 97) not ok 82 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 83 - subtest 'connect_ok()' of 'connect_ok() with undef host name' compare diag ok 84 - Test 'connect_ok() with undef host name' completed ok 85 - Test 'connect_ok() with undef host name' no premature diagnostication ok 86 - Test 'connect_ok() with undef host name' result count ok 87 - subtest 'connect_ok()' of 'connect_ok() with undef host name' compare ok ok 88 - subtest 'connect_ok()' of 'connect_ok() with undef host name' compare name # Failed test (t/01-connect_ok.t at line 102) not ok 89 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 90 - subtest 'connect_ok()' of 'connect_ok() with undef host name' compare diag ok 91 - Test 'connect_ok() with undef host name' completed ok 92 - Test 'connect_ok() with undef host name' no premature diagnostication ok 93 - Test 'connect_ok() with undef host name' result count ok 94 - subtest 'test name' of 'connect_ok() with undef host name' compare ok ok 95 - subtest 'test name' of 'connect_ok() with undef host name' compare name # Failed test (t/01-connect_ok.t at line 107) not ok 96 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 97 - subtest 'test name' of 'connect_ok() with undef host name' compare diag ok 98 - Test 'connect_not_ok()' completed ok 99 - Test 'connect_not_ok()' no premature diagnostication ok 100 - Test 'connect_not_ok()' result count ok 101 - subtest 'connect_not_ok()' of 'connect_not_ok()' compare ok ok 102 - subtest 'connect_not_ok()' of 'connect_not_ok()' compare name # Failed test (t/01-connect_ok.t at line 77) not ok 103 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 104 - subtest 'connect_not_ok()' of 'connect_not_ok()' compare diag ok 105 - Test 'connect_not_ok(SCALAR)' completed ok 106 - Test 'connect_not_ok(SCALAR)' no premature diagnostication ok 107 - Test 'connect_not_ok(SCALAR)' result count ok 108 - subtest 'connect_not_ok()' of 'connect_not_ok(SCALAR)' compare ok ok 109 - subtest 'connect_not_ok()' of 'connect_not_ok(SCALAR)' compare name # Failed test (t/01-connect_ok.t at line 82) not ok 110 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 111 - subtest 'connect_not_ok()' of 'connect_not_ok(SCALAR)' compare diag ok 112 - Test 'connect_not_ok(SCALAR, SCALAR)' completed ok 113 - Test 'connect_not_ok(SCALAR, SCALAR)' no premature diagnostication ok 114 - Test 'connect_not_ok(SCALAR, SCALAR)' result count ok 115 - subtest 'test name' of 'connect_not_ok(SCALAR, SCALAR)' compare ok ok 116 - subtest 'test name' of 'connect_not_ok(SCALAR, SCALAR)' compare name # Failed test (t/01-connect_ok.t at line 87) not ok 117 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 118 - subtest 'test name' of 'connect_not_ok(SCALAR, SCALAR)' compare diag ok 119 - Test 'connect_not_ok() with no host name' completed ok 120 - Test 'connect_not_ok() with no host name' no premature diagnostication ok 121 - Test 'connect_not_ok() with no host name' result count ok 122 - subtest 'connect_not_ok()' of 'connect_not_ok() with no host name' compare ok ok 123 - subtest 'connect_not_ok()' of 'connect_not_ok() with no host name' compare name # Failed test (t/01-connect_ok.t at line 92) not ok 124 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 125 - subtest 'connect_not_ok()' of 'connect_not_ok() with no host name' compare diag ok 126 - Test 'connect_not_ok() with undef host name' completed ok 127 - Test 'connect_not_ok() with undef host name' no premature diagnostication ok 128 - Test 'connect_not_ok() with undef host name' result count ok 129 - subtest 'connect_not_ok()' of 'connect_not_ok() with undef host name' compare ok ok 130 - subtest 'connect_not_ok()' of 'connect_not_ok() with undef host name' compare name # Failed test (t/01-connect_ok.t at line 97) not ok 131 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 132 - subtest 'connect_not_ok()' of 'connect_not_ok() with undef host name' compare diag ok 133 - Test 'connect_not_ok() with undef host name' completed ok 134 - Test 'connect_not_ok() with undef host name' no premature diagnostication ok 135 - Test 'connect_not_ok() with undef host name' result count ok 136 - subtest 'connect_not_ok()' of 'connect_not_ok() with undef host name' compare ok ok 137 - subtest 'connect_not_ok()' of 'connect_not_ok() with undef host name' compare name # Failed test (t/01-connect_ok.t at line 102) not ok 138 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 139 - subtest 'connect_not_ok()' of 'connect_not_ok() with undef host name' compare diag ok 140 - Test 'connect_not_ok() with undef host name' completed ok 141 - Test 'connect_not_ok() with undef host name' no premature diagnostication ok 142 - Test 'connect_not_ok() with undef host name' result count ok 143 - subtest 'test name' of 'connect_not_ok() with undef host name' compare ok ok 144 - subtest 'test name' of 'connect_not_ok() with undef host name' compare name # Failed test (t/01-connect_ok.t at line 107) not ok 145 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 146 - subtest 'test name' of 'connect_not_ok() with undef host name' compare diag ok 147 - Test 'connect_ok() with no port' completed ok 148 - Test 'connect_ok() with no port' no premature diagnostication ok 149 - Test 'connect_ok() with no port' result count ok 150 - subtest 'connect_ok()' of 'connect_ok() with no port' compare ok ok 151 - subtest 'connect_ok()' of 'connect_ok() with no port' compare name # Failed test (t/01-connect_ok.t at line 117) not ok 152 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 153 - subtest 'connect_ok()' of 'connect_ok() with no port' compare diag ok 154 - Test 'connect_ok() with no port' completed ok 155 - Test 'connect_ok() with no port' no premature diagnostication ok 156 - Test 'connect_ok() with no port' result count ok 157 - subtest 'connect_ok()' of 'connect_ok() with no port' compare ok ok 158 - subtest 'connect_ok()' of 'connect_ok() with no port' compare name # Failed test (t/01-connect_ok.t at line 124) not ok 159 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 160 - subtest 'connect_ok()' of 'connect_ok() with no port' compare diag ok 161 - Test 'connect_ok() with no port' completed ok 162 - Test 'connect_ok() with no port' no premature diagnostication ok 163 - Test 'connect_ok() with no port' result count ok 164 - subtest 'test name' of 'connect_ok() with no port' compare ok ok 165 - subtest 'test name' of 'connect_ok() with no port' compare name # Failed test (t/01-connect_ok.t at line 129) not ok 166 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 167 - subtest 'test name' of 'connect_ok() with no port' compare diag ok 168 - Test 'connect_ok() with key 'foo'' completed ok 169 - Test 'connect_ok() with key 'foo'' no premature diagnostication ok 170 - Test 'connect_ok() with key 'foo'' result count ok 171 - subtest 'Connecting to tcp://localhost:25' of 'connect_ok() with key 'foo'' compare ok ok 172 - subtest 'Connecting to tcp://localhost:25' of 'connect_ok() with key 'foo'' compare name # Failed test (t/01-connect_ok.t at line 134) not ok 173 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 174 - subtest 'Connecting to tcp://localhost:25' of 'connect_ok() with key 'foo'' compare diag ok 175 - Test 'Connecting to a bad host' completed ok 176 - Test 'Connecting to a bad host' no premature diagnostication ok 177 - Test 'Connecting to a bad host' result count # Failed test (t/01-connect_ok.t at line 143) not ok 178 - subtest 'Connect with a bad host' of 'Connecting to a bad host' compare ok # got: '1' # expected: '0' ok 179 - subtest 'Connect with a bad host' of 'Connecting to a bad host' compare name ok 180 - checking depth ok 181 - Test 'Connecting to a non-existent host' completed ok 182 - Test 'Connecting to a non-existent host' no premature diagnostication ok 183 - Test 'Connecting to a non-existent host' result count ok 184 - subtest 'Connect with a bad host' of 'Connecting to a non-existent host' compare ok ok 185 - subtest 'Connect with a bad host' of 'Connecting to a non-existent host' compare name # Failed test (t/01-connect_ok.t at line 153) not ok 186 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 187 - subtest 'Connect with a bad host' of 'Connecting to a non-existent host' compare diag ok 188 - Test 'Connecting to a non-existent host' completed ok 189 - Test 'Connecting to a non-existent host' no premature diagnostication ok 190 - Test 'Connecting to a non-existent host' result count ok 191 - subtest 'Connect with a bad host' of 'Connecting to a non-existent host' compare ok ok 192 - subtest 'Connect with a bad host' of 'Connecting to a non-existent host' compare name # Failed test (t/01-connect_ok.t at line 162) not ok 193 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 194 - subtest 'Connect with a bad host' of 'Connecting to a non-existent host' compare diag ok 195 - Test 'Connecting to a good host:port fails' completed ok 196 - Test 'Connecting to a good host:port fails' no premature diagnostication ok 197 - Test 'Connecting to a good host:port fails' result count ok 198 - subtest 'Check host:port from user' of 'Connecting to a good host:port fails' compare ok ok 199 - subtest 'Check host:port from user' of 'Connecting to a good host:port fails' compare name ok 200 - checking depth ok 201 - subtest 'Check host:port from user' of 'Connecting to a good host:port fails' compare diag 1..201 # Looks like you failed 25 tests of 201. dubious Test returned status 25 (wstat 6400, 0x1900) DIED. FAILED tests 38, 41, 45, 48, 54, 61, 68, 75, 82, 89, 96, 103, 110, 117, 124, 131, 138, 145, 152, 159, 166, 173, 178, 186, 193 Failed 25/201 tests, 87.56% okay t/pod-coverage.....1..0 # Skip Test::Pod::Coverage 1.04 required for testing POD coverage skipped all skipped: Test::Pod::Coverage 1.04 required for testing POD coverage t/pod..............1..2 ok 1 - blib/lib/Test/Net/Connect.pm ok 2 - blib/lib/Test/Net/Connect/ConfigData.pm ok Failed 1/4 test scripts, 75.00% okay. 25/204 subtests failed, 87.75% okay. Failed Test Stat Wstat Total Fail Failed List of Failed ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- t/01-connect_ok.t 25 6400 201 25 12.44% 38 41 45 48 54 61 68 75 82 89 96 103 110 117 124 131 138 145 152 159 166 173 178 186 193 1 test skipped.