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 # Failed test 'subtest 'Check host:port from user' of 'Basic call with all arguments succeeds' compare ok' # at t\01-connect_ok.t line 20. # got: '0' # expected: '1' # Failed test 'subtest 'Check host:port from user' of 'Basic call with all arguments succeeds' compare diag' # at t\01-connect_ok.t line 20. # Got diag (59 bytes): # ' Connection to tcp://127.0.0.1:22 failed: Unknown error' # Expected diag (0 bytes): # not 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 not 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 # Failed test 'subtest 'Check host:port from user' of 'Basic call with default proto arguments succeeds' compare ok' # at t\01-connect_ok.t line 28. # got: '0' # expected: '1' # Failed test 'subtest 'Check host:port from user' of 'Basic call with default proto arguments succeeds' compare diag' # at t\01-connect_ok.t line 28. # Got diag (59 bytes): # ' Connection to tcp://127.0.0.1:22 failed: Unknown error' # Expected diag (0 bytes): # not 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 not 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 # Failed test 'subtest 'Check host:port from user' of 'Basic call with default proto and host:port form succeeds' compare ok' # at t\01-connect_ok.t line 38. # got: '0' # expected: '1' not 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 # Failed test 'subtest 'Connecting to tcp://localhost:22' of 'Basic call with no test name succeeds' compare ok' # at t\01-connect_ok.t line 44. # got: '0' # expected: '1' 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 not 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 # Failed test 'subtest 'Check host:port from user' of 'Basic call with IP address succeeds' compare ok' # at t\01-connect_ok.t line 52. # got: '0' # expected: '1' not 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 ok 38 - subtest 'Check badhost:badport from user' of 'Basic call succeeds' compare ok ok 39 - subtest 'Check badhost:badport from user' of 'Basic call succeeds' compare name ok 40 - checking depth ok 41 - subtest 'Check badhost:badport from user' of 'Basic call succeeds' compare diag 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 ok 45 - subtest 'Connecting to tcp://localhost:23' of 'Basic call with no test name succeeds' compare ok ok 46 - subtest 'Connecting to tcp://localhost:23' of 'Basic call with no test name succeeds' compare name ok 47 - checking depth ok 48 - subtest 'Connecting to tcp://localhost:23' of 'Basic call with no test name succeeds' compare diag ok 49 - Test 'connect_ok()' completed ok 50 - Test 'connect_ok()' no premature diagnostication # Failed test 'checking depth' ok 51 - Test 'connect_ok()' result count # at t\01-connect_ok.t line 77. # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 52 - subtest 'connect_ok()' of 'connect_ok()' compare ok ok 53 - subtest 'connect_ok()' of 'connect_ok()' compare name not ok 54 - checking depth ok 55 - subtest 'connect_ok()' of 'connect_ok()' compare diag ok 56 - Test 'connect_ok(SCALAR)' completed # Failed test 'checking depth' # at t\01-connect_ok.t line 82. ok 57 - Test 'connect_ok(SCALAR)' no premature diagnostication # got: '2' # expected: '1' # You need to change $Test::Builder::Level 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 not ok 61 - checking depth ok 62 - subtest 'connect_ok()' of 'connect_ok(SCALAR)' compare diag # Failed test 'checking depth' # at t\01-connect_ok.t line 87. # got: '2' # expected: '1' # You need to change $Test::Builder::Level 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 not ok 68 - checking depth 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 # Failed test 'checking depth' # at t\01-connect_ok.t line 92. # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 74 - subtest 'connect_ok()' of 'connect_ok() with no host name' compare name not ok 75 - checking depth 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 'checking depth' # at t\01-connect_ok.t line 97. # got: '2' # expected: '1' # You need to change $Test::Builder::Level not ok 82 - checking depth 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 'checking depth' # at t\01-connect_ok.t line 102. # got: '2' # expected: '1' # You need to change $Test::Builder::Level not ok 89 - checking depth 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 not ok 96 - checking depth # Failed test 'checking depth' # at t\01-connect_ok.t line 107. # 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 not ok 103 - checking depth # Failed test 'checking depth' # at t\01-connect_ok.t line 77. # 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 'checking depth' # at t\01-connect_ok.t 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 # Failed test 'checking depth' # at t\01-connect_ok.t line 87. # got: '2' # expected: '1' # You need to change $Test::Builder::Level 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 not ok 117 - checking depth 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 # Failed test 'checking depth' # at t\01-connect_ok.t line 92. # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 122 - subtest 'connect_not_ok()' of 'connect_not_ok() with no host name' compare ok # Failed test 'checking depth' # at t\01-connect_ok.t line 97. # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 123 - subtest 'connect_not_ok()' of 'connect_not_ok() with no host name' compare name not ok 124 - checking depth 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 not ok 131 - checking depth 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 # Failed test 'checking depth' # at t\01-connect_ok.t line 102. # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 137 - subtest 'connect_not_ok()' of 'connect_not_ok() with undef host name' compare name not ok 138 - checking depth 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 'checking depth' # at t\01-connect_ok.t line 107. # got: '2' # expected: '1' # You need to change $Test::Builder::Level not ok 145 - checking depth ok 146 - subtest 'test name' of 'connect_not_ok() with undef host name' compare diag ok 147 - Test 'connect_ok() with no port' completed # Failed test 'checking depth' # at t\01-connect_ok.t line 117. # got: '2' # expected: '1' # You need to change $Test::Builder::Level 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 not ok 152 - checking depth 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 'checking depth' # at t\01-connect_ok.t line 124. # got: '2' # expected: '1' # You need to change $Test::Builder::Level not ok 159 - checking depth 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 # Failed test 'checking depth' # at t\01-connect_ok.t line 129. # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 165 - subtest 'test name' of 'connect_ok() with no port' compare name not ok 166 - checking depth 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 'checking depth' # at t\01-connect_ok.t line 134. # got: '2' # expected: '1' # You need to change $Test::Builder::Level not ok 173 - checking depth 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 ok 178 - subtest 'Connect with a bad host' of 'Connecting to a bad host' compare ok ok 179 - subtest 'Connect with a bad host' of 'Connecting to a bad host' compare name ok 180 - checking depth # Failed test 'checking depth' # at t\01-connect_ok.t line 153. # got: '2' # expected: '1' # You need to change $Test::Builder::Level 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 not ok 186 - checking depth ok 187 - subtest 'Connect with a bad host' of 'Connecting to a non-existent host' compare diag # Failed test 'checking depth' # at t\01-connect_ok.t line 162. # got: '2' # expected: '1' # You need to change $Test::Builder::Level 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 not ok 193 - checking depth ok 194 - subtest 'Connect with a bad host' of 'Connecting to a non-existent host' compare diag # Failed test 'subtest 'Check host:port from user' of 'Connecting to a good host:port fails' compare ok' # at t\01-connect_ok.t line 171. # got: '1' # expected: '0' ok 195 - Test 'Connecting to a good host:port fails' completed ok 196 - Test 'Connecting to a good host:port fails' no premature diagnostication # Failed test 'subtest 'Check host:port from user' of 'Connecting to a good host:port fails' compare diag' # at t\01-connect_ok.t line 171. ok 197 - Test 'Connecting to a good host:port fails' result count # Got diag (0 bytes): # # Expected diag (47 bytes): # ' Connection to tcp://127.0.0.1:22 succeeded' not 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 # Looks like you failed 29 tests of 201. ok 200 - checking depth not ok 201 - subtest 'Check host:port from user' of 'Connecting to a good host:port fails' compare diag 1..201 dubious Test returned status 29 (wstat 7424, 0x1d00) DIED. FAILED tests 6, 9, 13, 16, 20, 26, 32, 54, 61, 68, 75, 82, 89, 96, 103, 110, 117, 124, 131, 138, 145, 152, 159, 166, 173, 186, 193, 198, 201 Failed 29/201 tests, 85.57% 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 Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t\01-connect_ok.t 29 7424 201 29 6 9 13 16 20 26 32 54 61 68 75 82 89 96 103 110 117 124 131 138 145 152 159 166 173 186 193 198 201 1 test skipped. Failed 1/4 test scripts. 29/204 subtests failed. Files=4, Tests=204, 16 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU) Failed 1/4 test programs. 29/204 subtests failed.