# running Build.PL /home/cpanrun/parisc2.0-lp64/build/5.8.2/bin/perl Build.PL Checking whether your kit is complete... Looks good Checking prerequisites... Looks good Creating new 'Build' script for 'Test-Unix-User' version '0.02' /home/cpanrun/parisc2.0-lp64/build/5.8.2/bin/perl Build --makefile_env_macros 1 Copying lib/Test/Unix/User.pm -> blib/lib/Test/Unix/User.pm Manifying blib/lib/Test/Unix/User.pm -> blib/libdoc/Test::Unix::User.3 HTMLifying blib/lib/Test/Unix/User.pm -> blib/libhtml/site/lib/Test/Unix/User.html /home/cpanrun/parisc2.0-lp64/build/5.8.2/bin/perl Build --makefile_env_macros 1 test t/00-load..........1..1 ok 1 - use Test::Unix::User; # Testing Test::Unix::User 0.02, Perl 5.008007, /local/0/usr/local/bin/perl ok t/01-user_ok.......ok 1 - use Test::Unix::User; ok 2 - Test 'Test for user existence' completed ok 3 - Test 'Test for user existence' no premature diagnostication ok 4 - Test 'Test for user existence' result count ok 5 - subtest ''test' exists' of 'Test for user existence' compare ok ok 6 - subtest ''test' exists' of 'Test for user existence' compare name ok 7 - checking depth ok 8 - Test 'Test for user existence (1 arg form)' completed ok 9 - Test 'Test for user existence (1 arg form)' no premature diagnostication ok 10 - Test 'Test for user existence (1 arg form)' result count ok 11 - subtest 'Checking user 'test' (name)' of 'Test for user existence (1 arg form)' compare ok ok 12 - subtest 'Checking user 'test' (name)' of 'Test for user existence (1 arg form)' compare name ok 13 - checking depth ok 14 - Test 'Check for multiple items (and pass all)' completed ok 15 - Test 'Check for multiple items (and pass all)' no premature diagnostication ok 16 - Test 'Check for multiple items (and pass all)' result count ok 17 - subtest 'Checking user 'test' (dir, name, shell, uid)' of 'Check for multiple items (and pass all)' compare ok ok 18 - subtest 'Checking user 'test' (dir, name, shell, uid)' of 'Check for multiple items (and pass all)' compare name ok 19 - checking depth ok 20 - Test 'user_ok() with no arguments' completed ok 21 - Test 'user_ok() with no arguments' no premature diagnostication ok 22 - Test 'user_ok() with no arguments' result count ok 23 - subtest 'user_ok()' of 'user_ok() with no arguments' compare ok ok 24 - subtest 'user_ok()' of 'user_ok() with no arguments' compare name not ok 25 - checking depth # Failed test (t/01-user_ok.t at line 51) # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 26 - subtest 'user_ok()' of 'user_ok() with no arguments' compare diag ok 27 - Test 'user_ok(SCALAR, SCALAR)' completed ok 28 - Test 'user_ok(SCALAR, SCALAR)' no premature diagnostication ok 29 - Test 'user_ok(SCALAR, SCALAR)' result count ok 30 - subtest 'test' of 'user_ok(SCALAR, SCALAR)' compare ok ok 31 - subtest 'test' of 'user_ok(SCALAR, SCALAR)' compare name # Failed test (t/01-user_ok.t at line 55) not ok 32 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 33 - subtest 'test' of 'user_ok(SCALAR, SCALAR)' compare diag ok 34 - Test 'user_ok(SCALAR)' completed ok 35 - Test 'user_ok(SCALAR)' no premature diagnostication ok 36 - Test 'user_ok(SCALAR)' result count ok 37 - subtest 'user_ok(...)' of 'user_ok(SCALAR)' compare ok ok 38 - subtest 'user_ok(...)' of 'user_ok(SCALAR)' compare name # Failed test (t/01-user_ok.t at line 60) not ok 39 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 40 - subtest 'user_ok(...)' of 'user_ok(SCALAR)' compare diag ok 41 - Test 'user_ok(HASHREF, SCALAR) with no 'name' key' completed ok 42 - Test 'user_ok(HASHREF, SCALAR) with no 'name' key' no premature diagnostication ok 43 - Test 'user_ok(HASHREF, SCALAR) with no 'name' key' result count ok 44 - subtest 'Check uid 1000' of 'user_ok(HASHREF, SCALAR) with no 'name' key' compare ok ok 45 - subtest 'Check uid 1000' of 'user_ok(HASHREF, SCALAR) with no 'name' key' compare name # Failed test (t/01-user_ok.t at line 65) not ok 46 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 47 - subtest 'Check uid 1000' of 'user_ok(HASHREF, SCALAR) with no 'name' key' compare diag ok 48 - Test 'user_ok(HASHREF) with no 'name' key' completed ok 49 - Test 'user_ok(HASHREF) with no 'name' key' no premature diagnostication ok 50 - Test 'user_ok(HASHREF) with no 'name' key' result count ok 51 - subtest 'user_ok(...)' of 'user_ok(HASHREF) with no 'name' key' compare ok ok 52 - subtest 'user_ok(...)' of 'user_ok(HASHREF) with no 'name' key' compare name # Failed test (t/01-user_ok.t at line 70) not ok 53 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 54 - subtest 'user_ok(...)' of 'user_ok(HASHREF) with no 'name' key' compare diag ok 55 - Test 'user_ok(HASHREF) with 'name' key where value is undef' completed ok 56 - Test 'user_ok(HASHREF) with 'name' key where value is undef' no premature diagnostication ok 57 - Test 'user_ok(HASHREF) with 'name' key where value is undef' result count ok 58 - subtest 'user_ok(...)' of 'user_ok(HASHREF) with 'name' key where value is undef' compare ok ok 59 - subtest 'user_ok(...)' of 'user_ok(HASHREF) with 'name' key where value is undef' compare name # Failed test (t/01-user_ok.t at line 75) not ok 60 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 61 - subtest 'user_ok(...)' of 'user_ok(HASHREF) with 'name' key where value is undef' compare diag ok 62 - Test 'user_ok(HASHREF) with 'name' key where value is empty' completed ok 63 - Test 'user_ok(HASHREF) with 'name' key where value is empty' no premature diagnostication ok 64 - Test 'user_ok(HASHREF) with 'name' key where value is empty' result count ok 65 - subtest 'user_ok(...)' of 'user_ok(HASHREF) with 'name' key where value is empty' compare ok ok 66 - subtest 'user_ok(...)' of 'user_ok(HASHREF) with 'name' key where value is empty' compare name # Failed test (t/01-user_ok.t at line 80) not ok 67 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 68 - subtest 'user_ok(...)' of 'user_ok(HASHREF) with 'name' key where value is empty' compare diag ok 69 - Test 'Check for multiple items (and fail one)' completed ok 70 - Test 'Check for multiple items (and fail one)' no premature diagnostication ok 71 - Test 'Check for multiple items (and fail one)' result count ok 72 - subtest 'Checking user 'test' (dir, name, shell, uid)' of 'Check for multiple items (and fail one)' compare ok ok 73 - subtest 'Checking user 'test' (dir, name, shell, uid)' of 'Check for multiple items (and fail one)' compare name ok 74 - checking depth ok 75 - subtest 'Checking user 'test' (dir, name, shell, uid)' of 'Check for multiple items (and fail one)' compare diag ok 76 - Test 'user_ok(HASHREF) where 'name' key is not a valid user' completed ok 77 - Test 'user_ok(HASHREF) where 'name' key is not a valid user' no premature diagnostication ok 78 - Test 'user_ok(HASHREF) where 'name' key is not a valid user' result count ok 79 - subtest 'Checking user 'foo' (name)' of 'user_ok(HASHREF) where 'name' key is not a valid user' compare ok ok 80 - subtest 'Checking user 'foo' (name)' of 'user_ok(HASHREF) where 'name' key is not a valid user' compare name ok 81 - checking depth ok 82 - subtest 'Checking user 'foo' (name)' of 'user_ok(HASHREF) where 'name' key is not a valid user' compare diag ok 83 - Test 'user_ok(HASHREF) valid user, nonsensical other key' completed ok 84 - Test 'user_ok(HASHREF) valid user, nonsensical other key' no premature diagnostication ok 85 - Test 'user_ok(HASHREF) valid user, nonsensical other key' result count ok 86 - subtest 'Checking user 'test' (bar, name)' of 'user_ok(HASHREF) valid user, nonsensical other key' compare ok ok 87 - subtest 'Checking user 'test' (bar, name)' of 'user_ok(HASHREF) valid user, nonsensical other key' compare name ok 88 - checking depth ok 89 - subtest 'Checking user 'test' (bar, name)' of 'user_ok(HASHREF) valid user, nonsensical other key' compare diag ok 90 - Test 'user_ok(HASHREF) valid user, undef uid' completed ok 91 - Test 'user_ok(HASHREF) valid user, undef uid' no premature diagnostication ok 92 - Test 'user_ok(HASHREF) valid user, undef uid' result count ok 93 - subtest 'Checking user 'test' (name, uid)' of 'user_ok(HASHREF) valid user, undef uid' compare ok ok 94 - subtest 'Checking user 'test' (name, uid)' of 'user_ok(HASHREF) valid user, undef uid' compare name ok 95 - checking depth ok 96 - subtest 'Checking user 'test' (name, uid)' of 'user_ok(HASHREF) valid user, undef uid' compare diag ok 97 - Test 'user_ok(HASHREF) valid user, empty uid' completed ok 98 - Test 'user_ok(HASHREF) valid user, empty uid' no premature diagnostication ok 99 - Test 'user_ok(HASHREF) valid user, empty uid' result count ok 100 - subtest 'Checking user 'test' (name, uid)' of 'user_ok(HASHREF) valid user, empty uid' compare ok ok 101 - subtest 'Checking user 'test' (name, uid)' of 'user_ok(HASHREF) valid user, empty uid' compare name ok 102 - checking depth ok 103 - subtest 'Checking user 'test' (name, uid)' of 'user_ok(HASHREF) valid user, empty uid' compare diag 1..103 # Looks like you failed 7 tests of 103. dubious Test returned status 7 (wstat 1792, 0x700) DIED. FAILED tests 25, 32, 39, 46, 53, 60, 67 Failed 7/103 tests, 93.20% okay t/02-homedir_ok....ok 1 - use Test::Unix::User; ok 2 - Test 'Test for home dir existence' completed ok 3 - Test 'Test for home dir existence' no premature diagnostication ok 4 - Test 'Test for home dir existence' result count ok 5 - subtest ''test' home directory' of 'Test for home dir existence' compare ok ok 6 - subtest ''test' home directory' of 'Test for home dir existence' compare name ok 7 - checking depth ok 8 - Test 'Test for home dir existence (1 arg form)' completed ok 9 - Test 'Test for home dir existence (1 arg form)' no premature diagnostication ok 10 - Test 'Test for home dir existence (1 arg form)' result count ok 11 - subtest 'Home directory for user 'test' (name)' of 'Test for home dir existence (1 arg form)' compare ok ok 12 - subtest 'Home directory for user 'test' (name)' of 'Test for home dir existence (1 arg form)' compare name ok 13 - checking depth ok 14 - Test 'Test for home dir existence with all attributes' completed ok 15 - Test 'Test for home dir existence with all attributes' no premature diagnostication ok 16 - Test 'Test for home dir existence with all attributes' result count ok 17 - subtest 'Home directory for user 'test' (gid, name, perm, uid)' of 'Test for home dir existence with all attributes' compare ok ok 18 - subtest 'Home directory for user 'test' (gid, name, perm, uid)' of 'Test for home dir existence with all attributes' compare name ok 19 - checking depth ok 20 - Test 'Test for home dir existence with owner' completed ok 21 - Test 'Test for home dir existence with owner' no premature diagnostication ok 22 - Test 'Test for home dir existence with owner' result count ok 23 - subtest 'Home directory for user 'test' (name, owner)' of 'Test for home dir existence with owner' compare ok ok 24 - subtest 'Home directory for user 'test' (name, owner)' of 'Test for home dir existence with owner' compare name ok 25 - checking depth ok 26 - subtest 'Home directory for user 'test' (name, owner)' of 'Test for home dir existence with owner' compare diag ok 27 - Test 'Test for home dir existence with group' completed ok 28 - Test 'Test for home dir existence with group' no premature diagnostication ok 29 - Test 'Test for home dir existence with group' result count ok 30 - subtest 'Home directory for user 'test' (group, name)' of 'Test for home dir existence with group' compare ok ok 31 - subtest 'Home directory for user 'test' (group, name)' of 'Test for home dir existence with group' compare name ok 32 - checking depth ok 33 - Test 'Test for home dir existence with wrong owner' completed ok 34 - Test 'Test for home dir existence with wrong owner' no premature diagnostication ok 35 - Test 'Test for home dir existence with wrong owner' result count ok 36 - subtest 'Home directory for user 'test' (name, owner)' of 'Test for home dir existence with wrong owner' compare ok ok 37 - subtest 'Home directory for user 'test' (name, owner)' of 'Test for home dir existence with wrong owner' compare name ok 38 - checking depth ok 39 - subtest 'Home directory for user 'test' (name, owner)' of 'Test for home dir existence with wrong owner' compare diag ok 40 - Test 'Test for home dir existence with wrong group' completed ok 41 - Test 'Test for home dir existence with wrong group' no premature diagnostication ok 42 - Test 'Test for home dir existence with wrong group' result count ok 43 - subtest 'Home directory for user 'test' (group, name)' of 'Test for home dir existence with wrong group' compare ok ok 44 - subtest 'Home directory for user 'test' (group, name)' of 'Test for home dir existence with wrong group' compare name ok 45 - checking depth ok 46 - subtest 'Home directory for user 'test' (group, name)' of 'Test for home dir existence with wrong group' compare diag ok 47 - Test 'homedir_ok(), no arguments' completed ok 48 - Test 'homedir_ok(), no arguments' no premature diagnostication ok 49 - Test 'homedir_ok(), no arguments' result count ok 50 - subtest 'homedir_ok()' of 'homedir_ok(), no arguments' compare ok ok 51 - subtest 'homedir_ok()' of 'homedir_ok(), no arguments' compare name # Failed test (t/02-homedir_ok.t at line 96) not ok 52 - checking depth # got: '2' # expected: '1' # You need to change $Test::Builder::Level ok 53 - subtest 'homedir_ok()' of 'homedir_ok(), no arguments' compare diag ok 54 - Test 'Test for bogus field in specification' completed ok 55 - Test 'Test for bogus field in specification' no premature diagnostication ok 56 - Test 'Test for bogus field in specification' result count ok 57 - subtest 'Home directory for user 'test' (foo, name)' of 'Test for bogus field in specification' compare ok ok 58 - subtest 'Home directory for user 'test' (foo, name)' of 'Test for bogus field in specification' compare name ok 59 - checking depth ok 60 - subtest 'Home directory for user 'test' (foo, name)' of 'Test for bogus field in specification' compare diag ok 61 - Test 'Test for undefined field in specification' completed ok 62 - Test 'Test for undefined field in specification' no premature diagnostication ok 63 - Test 'Test for undefined field in specification' result count ok 64 - subtest 'Home directory for user 'test' (name, uid)' of 'Test for undefined field in specification' compare ok ok 65 - subtest 'Home directory for user 'test' (name, uid)' of 'Test for undefined field in specification' compare name ok 66 - checking depth ok 67 - subtest 'Home directory for user 'test' (name, uid)' of 'Test for undefined field in specification' compare diag ok 68 - Test 'Test for empty field in specification' completed ok 69 - Test 'Test for empty field in specification' no premature diagnostication ok 70 - Test 'Test for empty field in specification' result count ok 71 - subtest 'Home directory for user 'test' (name, uid)' of 'Test for empty field in specification' compare ok ok 72 - subtest 'Home directory for user 'test' (name, uid)' of 'Test for empty field in specification' compare name ok 73 - checking depth ok 74 - subtest 'Home directory for user 'test' (name, uid)' of 'Test for empty field in specification' compare diag ok 75 - Test 'Test that it fails correctly for non-existent users' completed ok 76 - Test 'Test that it fails correctly for non-existent users' no premature diagnostication ok 77 - Test 'Test that it fails correctly for non-existent users' result count ok 78 - subtest 'Home directory for user 'nik' (name)' of 'Test that it fails correctly for non-existent users' compare ok ok 79 - subtest 'Home directory for user 'nik' (name)' of 'Test that it fails correctly for non-existent users' compare name ok 80 - checking depth ok 81 - subtest 'Home directory for user 'nik' (name)' of 'Test that it fails correctly for non-existent users' compare diag ok 82 - Test 'Test that it fails correctly for non-existent home directories' completed ok 83 - Test 'Test that it fails correctly for non-existent home directories' no premature diagnostication ok 84 - Test 'Test that it fails correctly for non-existent home directories' result count ok 85 - subtest 'Home directory for user 'test' (name)' of 'Test that it fails correctly for non-existent home directories' compare ok ok 86 - subtest 'Home directory for user 'test' (name)' of 'Test that it fails correctly for non-existent home directories' compare name ok 87 - checking depth ok 88 - subtest 'Home directory for user 'test' (name)' of 'Test that it fails correctly for non-existent home directories' compare diag ok 89 - Test 'Test that incorrect permissions generate an error' completed ok 90 - Test 'Test that incorrect permissions generate an error' no premature diagnostication ok 91 - Test 'Test that incorrect permissions generate an error' result count ok 92 - subtest 'Home directory for user 'test' (gid, name, perm, uid)' of 'Test that incorrect permissions generate an error' compare ok ok 93 - subtest 'Home directory for user 'test' (gid, name, perm, uid)' of 'Test that incorrect permissions generate an error' compare name ok 94 - checking depth ok 95 - subtest 'Home directory for user 'test' (gid, name, perm, uid)' of 'Test that incorrect permissions generate an error' compare diag ok 96 - Test 'Test that incorrect uid generates an error' completed ok 97 - Test 'Test that incorrect uid generates an error' no premature diagnostication ok 98 - Test 'Test that incorrect uid generates an error' result count ok 99 - subtest 'Home directory for user 'test' (gid, name, perm, uid)' of 'Test that incorrect uid generates an error' compare ok ok 100 - subtest 'Home directory for user 'test' (gid, name, perm, uid)' of 'Test that incorrect uid generates an error' compare name ok 101 - checking depth ok 102 - subtest 'Home directory for user 'test' (gid, name, perm, uid)' of 'Test that incorrect uid generates an error' compare diag 1..102 # Looks like you failed 1 tests of 102. dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 52 Failed 1/102 tests, 99.02% 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..1 ok 1 - blib/lib/Test/Unix/User.pm ok Failed 2/5 test scripts, 60.00% okay. 8/207 subtests failed, 96.14% okay. Failed Test Stat Wstat Total Fail Failed List of Failed ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- t/01-user_ok.t 7 1792 103 7 6.80% 25 32 39 46 53 60 67 t/02-homedir_ok.t 1 256 102 1 0.98% 52 1 test skipped. make: *** [test] Error 25