PATH=/opt/SUNWspro/bin:/usr/local/bin:/opt/csw/bin:/usr/ccs/bin:/usr/bin:/usr/sbin
Start 2014-12-05T18:38:25
ActivePerl-1205 CPAN-2.00
Reading '/export/home/fly1232/var/cpan/Metadata'
Database was generated on Sat, 06 Dec 2014 01:17:02 GMT
Running make for P/PE/PERLANCAR/File-Write-Rotate-0.25.tar.gz
Fetching with LWP:
http://cpan.nas1.activestate.com/authors/id/P/PE/PERLANCAR/File-Write-Rotate-0.25.tar.gz
Checksum for /export/home/fly1232/var/cpan/sources/authors/id/P/PE/PERLANCAR/File-Write-Rotate-0.25.tar.gz ok
File-Write-Rotate-0.25/
File-Write-Rotate-0.25/README
File-Write-Rotate-0.25/lib/
File-Write-Rotate-0.25/lib/File/
File-Write-Rotate-0.25/lib/File/Write/
File-Write-Rotate-0.25/lib/File/Write/Rotate.pm
File-Write-Rotate-0.25/Makefile.PL
File-Write-Rotate-0.25/Changes
File-Write-Rotate-0.25/dist.ini
File-Write-Rotate-0.25/LICENSE
File-Write-Rotate-0.25/t/
File-Write-Rotate-0.25/t/00-compile.t
File-Write-Rotate-0.25/t/rotate.t
File-Write-Rotate-0.25/t/todo.t
File-Write-Rotate-0.25/t/write.t
File-Write-Rotate-0.25/t/release-pod-coverage.t
File-Write-Rotate-0.25/t/release-pod-syntax.t
File-Write-Rotate-0.25/t/release-rinci.t
File-Write-Rotate-0.25/weaver.ini
File-Write-Rotate-0.25/MANIFEST
File-Write-Rotate-0.25/META.json
File-Write-Rotate-0.25/META.yml
CPAN.pm: Building P/PE/PERLANCAR/File-Write-Rotate-0.25.tar.gz
>>> /export/home/fly1232/bin/perl Makefile.PL
Warning: prerequisite File::Flock::Retry 0 not found.
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for File::Write::Rotate
Writing MYMETA.yml and MYMETA.json
---- Unsatisfied dependencies detected during ----
---- PERLANCAR/File-Write-Rotate-0.25.tar.gz ----
File::Flock::Retry [requires]
Running make test
Delayed until after prerequisites
Running test for module 'File::Flock::Retry'
Running make for P/PE/PERLANCAR/File-Flock-Retry-0.59.tar.gz
Fetching with LWP:
http://cpan.nas1.activestate.com/authors/id/P/PE/PERLANCAR/File-Flock-Retry-0.59.tar.gz
Checksum for /export/home/fly1232/var/cpan/sources/authors/id/P/PE/PERLANCAR/File-Flock-Retry-0.59.tar.gz ok
File-Flock-Retry-0.59/
File-Flock-Retry-0.59/README
File-Flock-Retry-0.59/lib/
File-Flock-Retry-0.59/lib/File/
File-Flock-Retry-0.59/lib/File/Flock/
File-Flock-Retry-0.59/lib/File/Flock/Retry.pm
File-Flock-Retry-0.59/Makefile.PL
File-Flock-Retry-0.59/Changes
File-Flock-Retry-0.59/dist.ini
File-Flock-Retry-0.59/LICENSE
File-Flock-Retry-0.59/t/
File-Flock-Retry-0.59/t/00-compile.t
File-Flock-Retry-0.59/t/01-basics.t
File-Flock-Retry-0.59/t/release-pod-coverage.t
File-Flock-Retry-0.59/t/release-pod-syntax.t
File-Flock-Retry-0.59/t/release-rinci.t
File-Flock-Retry-0.59/weaver.ini
File-Flock-Retry-0.59/MANIFEST
File-Flock-Retry-0.59/META.json
File-Flock-Retry-0.59/META.yml
CPAN.pm: Building P/PE/PERLANCAR/File-Flock-Retry-0.59.tar.gz
>>> /export/home/fly1232/bin/perl Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for File::Flock::Retry
Writing MYMETA.yml and MYMETA.json
>>> make
cp lib/File/Flock/Retry.pm blib/lib/File/Flock/Retry.pm
Manifying 1 pod document
PERLANCAR/File-Flock-Retry-0.59.tar.gz
make -- OK
Running make test
>>> make test TEST_VERBOSE=1
PERL_DL_NONLAZY=1 "/export/home/fly1232/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
t/00-compile.t ............
1..1
ok 1 - File/Flock/Retry.pm loaded ok
ok
# all tests successful, deleting test data dir
t/01-basics.t .............
# Subtest: create (unlocked)
ok 1 - f1 doesn't exist before lock
ok 2 - f1 exists after lock
ok 3 - f1 doesn't exist after unlock
1..3
ok 1 - create (unlocked)
# Subtest: create (destroyed)
ok 1 - f1 doesn't exist before lock
ok 2 - f1 exists after lock
ok 3 - f1 doesn't exist after DESTROY
1..3
ok 2 - create (destroyed)
# Subtest: already exists
ok 1 - f1 exists before lock
ok 2 - f1 exists after lock
ok 3 - f1 still exists after DESTROY
1..3
ok 3 - already exists
# Subtest: was created, but not empty
ok 1 - f1 doesn't exist before lock
ok 2 - f1 exists after lock
ok 3 - f1 still exists after DESTROY
1..3
ok 4 - was created, but not empty
1..4
ok
t/release-pod-coverage.t .. skipped: these tests are for release candidate testing
t/release-pod-syntax.t .... skipped: these tests are for release candidate testing
t/release-rinci.t ......... skipped: these tests are for release candidate testing
All tests successful.
Files=5, Tests=5, 1 wallclock secs ( 0.10 usr 0.06 sys + 0.69 cusr 0.10 csys = 0.95 CPU)
Result: PASS
PERLANCAR/File-Flock-Retry-0.59.tar.gz
make test TEST_VERBOSE=1 -- OK
perlancar <perlancar@gmail.com>
Yet another flock module
>>> (cd /export/home/fly1232/var/cpan/build/File-Flock-Retry-0.59-oM7r7h && tar cvf - File-Flock-Retry-0.59.ppd blib) | gzip -c >/export/home/fly1232/var/REPO/P/PE/PERLANCAR/File-Flock-Retry-0.59.tar.gz
File-Flock-Retry-0.59.ppd
blib/
blib/lib/
blib/lib/File/
blib/lib/File/Flock/
blib/lib/File/Flock/Retry.pm
blib/man3/
blib/man3/File::Flock::Retry.3
>>> mv /export/home/fly1232/var/cpan/build/File-Flock-Retry-0.59-oM7r7h/File-Flock-Retry-0.59.ppd /export/home/fly1232/var/REPO/P/PE/PERLANCAR
Running make for P/PE/PERLANCAR/File-Write-Rotate-0.25.tar.gz
Prepending /export/home/fly1232/var/cpan/build/File-Flock-Retry-0.59-oM7r7h/blib/arch /export/home/fly1232/var/cpan/build/File-Flock-Retry-0.59-oM7r7h/blib/lib to PERL5LIB for 'get'
Has already been unwrapped into directory /export/home/fly1232/var/cpan/build/File-Write-Rotate-0.25-X6RjzL
Prepending /export/home/fly1232/var/cpan/build/File-Flock-Retry-0.59-oM7r7h/blib/arch /export/home/fly1232/var/cpan/build/File-Flock-Retry-0.59-oM7r7h/blib/lib to PERL5LIB for 'make'
CPAN.pm: Building P/PE/PERLANCAR/File-Write-Rotate-0.25.tar.gz
>>> make
cp lib/File/Write/Rotate.pm blib/lib/File/Write/Rotate.pm
Manifying 1 pod document
PERLANCAR/File-Write-Rotate-0.25.tar.gz
make -- OK
Prepending /export/home/fly1232/var/cpan/build/File-Flock-Retry-0.59-oM7r7h/blib/arch /export/home/fly1232/var/cpan/build/File-Flock-Retry-0.59-oM7r7h/blib/lib to PERL5LIB for 'test'
Running make test
>>> make test TEST_VERBOSE=1
PERL_DL_NONLAZY=1 "/export/home/fly1232/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
t/00-compile.t ............
1..1
ok 1 - File/Write/Rotate.pm loaded ok
ok
t/release-pod-coverage.t .. skipped: these tests are for release candidate testing
t/release-pod-syntax.t .... skipped: these tests are for release candidate testing
t/release-rinci.t ......... skipped: these tests are for release candidate testing
t/rotate.t ................
# Subtest: basic rotate
ok 1 - files_after
ok 2 - a -> a.1
ok 3 - a.2 -> a.2.gz
ok 4 - a.2.gz -> a.3.gz
ok 5 - b.1 untouched
1..5
ok 1 - basic rotate
# Subtest: period, suffix
ok 1 - files_after
1..1
ok 2 - period, suffix
# Subtest: period, suffix (complex, no delete)
ok 1 - files_after
1..1
ok 3 - period, suffix (complex, no delete)
# Subtest: period, suffix (complex, rotate and delete)
ok 1 - files_after
1..1
ok 4 - period, suffix (complex, rotate and delete)
# Subtest: period, suffix (complex, delete_only)
ok 1 - files_after
1..1
ok 5 - period, suffix (complex, delete_only)
# Subtest: hook_before_rotate, hook_after_rotate
ok 1
ok 2 - renamed argument
ok 3 - deleted argument
ok 4 - files_after
ok 5 - hook_before_rotate executed
ok 6 - hook_after_rotate executed
1..6
ok 6 - hook_before_rotate, hook_after_rotate
# Subtest: under tainting
ok 1 - files_after
1..1
ok 7 - under tainting
1..7
ok
t/todo.t ..................
1..1
ok 1
ok
t/write.t .................
# Subtest: Filehandle cached: basic
ok 1 - should be unlocked
ok 2
ok 3 - should be unlocked
ok 4
1..4
ok 1 - Filehandle cached: basic
# Subtest: Filehandle not cached: basic
ok 1 - should be unlocked
ok 2
ok 3 - should be unlocked
ok 4
1..4
ok 2 - Filehandle not cached: basic
# Subtest: Filehandle cached: binmode ':utf8'
ok 1 - should be unlocked
ok 2 - no 'Wide character in ...' warning
ok 3 - file contents
1..3
ok 3 - Filehandle cached: binmode ':utf8'
# Subtest: Filehandle not cached: binmode ':utf8'
ok 1 - should be unlocked
ok 2 - no 'Wide character in ...' warning
ok 3 - file contents
1..3
ok 4 - Filehandle not cached: binmode ':utf8'
# Subtest: Filehandle cached: rotate by size
ok 1 - period
ok 2 - should be unlocked
ok 3
ok 4 - should be unlocked
ok 5
ok 6
1..6
ok 5 - Filehandle cached: rotate by size
# Subtest: Filehandle not cached: rotate by size
ok 1 - period
ok 2 - should be unlocked
ok 3
ok 4 - should be unlocked
ok 5
ok 6
1..6
ok 6 - Filehandle not cached: rotate by size
# Subtest: Filehandle cached: rotate by size = 20Kb
ok 1 - should be unlocked
ok 2 - should be unlocked
ok 3 - should be unlocked
ok 4 - should be unlocked
ok 5 - should be unlocked
ok 6 - should be unlocked
ok 7 - should be unlocked
ok 8 - should be unlocked
ok 9 - should be unlocked
ok 10 - should be unlocked
ok 11 - should be unlocked
ok 12 - should be unlocked
ok 13 - should be unlocked
ok 14 - should be unlocked
ok 15 - should be unlocked
ok 16 - should be unlocked
ok 17 - should be unlocked
ok 18 - should be unlocked
ok 19 - should be unlocked
ok 20 - should be unlocked
ok 21 - should be unlocked
ok 22 - should be unlocked
ok 23 - should be unlocked
ok 24 - should be unlocked
ok 25 - should be unlocked
ok 26 - should be unlocked
ok 27 - should be unlocked
ok 28 - should be unlocked
ok 29 - should be unlocked
ok 30 - should be unlocked
ok 31 - should be unlocked
ok 32 - should be unlocked
ok 33 - should be unlocked
ok 34 - should be unlocked
ok 35 - should be unlocked
ok 36 - should be unlocked
ok 37 - should be unlocked
ok 38 - should be unlocked
ok 39 - should be unlocked
ok 40 - should be unlocked
ok 41 - should be unlocked
ok 42 - should be unlocked
ok 43 - should be unlocked
ok 44 - should be unlocked
ok 45 - should be unlocked
ok 46 - should be unlocked
ok 47 - should be unlocked
ok 48 - should be unlocked
ok 49 - should be unlocked
ok 50 - should be unlocked
ok 51 - should be unlocked
ok 52 - should be unlocked
ok 53 - should be unlocked
ok 54 - should be unlocked
ok 55 - should be unlocked
ok 56 - should be unlocked
ok 57 - should be unlocked
ok 58 - should be unlocked
ok 59 - should be unlocked
ok 60 - should be unlocked
ok 61 - should be unlocked
ok 62 - should be unlocked
ok 63 - should be unlocked
ok 64 - should be unlocked
ok 65 - should be unlocked
ok 66 - should be unlocked
ok 67 - should be unlocked
ok 68 - should be unlocked
ok 69 - should be unlocked
ok 70 - should be unlocked
ok 71 - should be unlocked
ok 72 - should be unlocked
ok 73 - should be unlocked
ok 74 - should be unlocked
ok 75 - should be unlocked
ok 76 - should be unlocked
ok 77 - should be unlocked
ok 78 - should be unlocked
ok 79 - should be unlocked
ok 80 - should be unlocked
ok 81 - should be unlocked
ok 82 - should be unlocked
ok 83 - should be unlocked
ok 84 - should be unlocked
ok 85 - should be unlocked
ok 86 - should be unlocked
ok 87 - should be unlocked
ok 88 - should be unlocked
ok 89 - should be unlocked
ok 90 - should be unlocked
ok 91 - should be unlocked
ok 92 - should be unlocked
ok 93 - should be unlocked
ok 94 - should be unlocked
ok 95 - should be unlocked
ok 96 - should be unlocked
ok 97 - should be unlocked
ok 98 - should be unlocked
ok 99 - should be unlocked
ok 100 - should be unlocked
ok 101 - should be unlocked
ok 102 - should be unlocked
ok 103 - should be unlocked
ok 104 - should be unlocked
ok 105 - should be unlocked
ok 106 - should be unlocked
ok 107 - should be unlocked
ok 108 - should be unlocked
ok 109 - should be unlocked
ok 110 - should be unlocked
ok 111 - should be unlocked
ok 112 - should be unlocked
ok 113 - should be unlocked
ok 114 - should be unlocked
ok 115 - should be unlocked
ok 116 - should be unlocked
ok 117 - should be unlocked
ok 118 - should be unlocked
ok 119 - should be unlocked
ok 120 - should be unlocked
ok 121 - should be unlocked
ok 122 - should be unlocked
ok 123 - should be unlocked
ok 124 - should be unlocked
ok 125 - should be unlocked
ok 126 - should be unlocked
ok 127 - should be unlocked
ok 128 - should be unlocked
ok 129 - should be unlocked
ok 130 - should be unlocked
ok 131 - should be unlocked
ok 132 - should be unlocked
ok 133 - should be unlocked
ok 134 - should be unlocked
ok 135 - should be unlocked
ok 136 - should be unlocked
ok 137 - should be unlocked
ok 138 - should be unlocked
ok 139 - should be unlocked
ok 140 - should be unlocked
ok 141 - should be unlocked
ok 142 - should be unlocked
ok 143 - should be unlocked
ok 144 - should be unlocked
ok 145 - should be unlocked
ok 146 - should be unlocked
ok 147 - should be unlocked
ok 148 - should be unlocked
ok 149 - should be unlocked
ok 150 - should be unlocked
ok 151 - should be unlocked
ok 152 - should be unlocked
ok 153 - should be unlocked
ok 154 - should be unlocked
ok 155 - should be unlocked
ok 156 - should be unlocked
ok 157 - should be unlocked
ok 158 - should be unlocked
ok 159 - should be unlocked
ok 160 - should be unlocked
ok 161 - should be unlocked
ok 162 - should be unlocked
ok 163 - should be unlocked
ok 164 - should be unlocked
ok 165 - should be unlocked
ok 166 - should be unlocked
ok 167 - should be unlocked
ok 168 - should be unlocked
ok 169 - should be unlocked
ok 170 - should be unlocked
ok 171 - should be unlocked
ok 172 - should be unlocked
ok 173 - should be unlocked
ok 174 - should be unlocked
ok 175 - should be unlocked
ok 176 - should be unlocked
ok 177 - should be unlocked
ok 178 - should be unlocked
ok 179 - should be unlocked
ok 180 - should be unlocked
ok 181 - should be unlocked
ok 182 - should be unlocked
ok 183 - should be unlocked
ok 184 - should be unlocked
ok 185 - should be unlocked
ok 186 - should be unlocked
ok 187 - should be unlocked
ok 188 - should be unlocked
ok 189 - should be unlocked
ok 190 - should be unlocked
ok 191 - should be unlocked
ok 192 - should be unlocked
ok 193 - should be unlocked
ok 194 - should be unlocked
ok 195 - should be unlocked
ok 196 - should be unlocked
ok 197 - should be unlocked
ok 198 - should be unlocked
ok 199 - should be unlocked
ok 200 - should be unlocked
ok 201 - first file exists and has 20Kb so far
ok 202 - rotate files does not exists yet
# printing one more message to force rotation bondaries
ok 203 - should be unlocked
ok 204 - new file exists and has 100 bytes
ok 205 - rotate file exists and has 20Kb
ok 206 - compress method returns true
ok 207 - rotated file a.1 was compressed to a.1.gz
ok 208 - original a.1 is deleted
ok 209 - compressed file size is smaller than before compression
1..209
ok 7 - Filehandle cached: rotate by size = 20Kb
# Subtest: Filehandle not cached: rotate by size = 20Kb
ok 1 - should be unlocked
ok 2 - should be unlocked
ok 3 - should be unlocked
ok 4 - should be unlocked
ok 5 - should be unlocked
ok 6 - should be unlocked
ok 7 - should be unlocked
ok 8 - should be unlocked
ok 9 - should be unlocked
ok 10 - should be unlocked
ok 11 - should be unlocked
ok 12 - should be unlocked
ok 13 - should be unlocked
ok 14 - should be unlocked
ok 15 - should be unlocked
ok 16 - should be unlocked
ok 17 - should be unlocked
ok 18 - should be unlocked
ok 19 - should be unlocked
ok 20 - should be unlocked
ok 21 - should be unlocked
ok 22 - should be unlocked
ok 23 - should be unlocked
ok 24 - should be unlocked
ok 25 - should be unlocked
ok 26 - should be unlocked
ok 27 - should be unlocked
ok 28 - should be unlocked
ok 29 - should be unlocked
ok 30 - should be unlocked
ok 31 - should be unlocked
ok 32 - should be unlocked
ok 33 - should be unlocked
ok 34 - should be unlocked
ok 35 - should be unlocked
ok 36 - should be unlocked
ok 37 - should be unlocked
ok 38 - should be unlocked
ok 39 - should be unlocked
ok 40 - should be unlocked
ok 41 - should be unlocked
ok 42 - should be unlocked
ok 43 - should be unlocked
ok 44 - should be unlocked
ok 45 - should be unlocked
ok 46 - should be unlocked
ok 47 - should be unlocked
ok 48 - should be unlocked
ok 49 - should be unlocked
ok 50 - should be unlocked
ok 51 - should be unlocked
ok 52 - should be unlocked
ok 53 - should be unlocked
ok 54 - should be unlocked
ok 55 - should be unlocked
ok 56 - should be unlocked
ok 57 - should be unlocked
ok 58 - should be unlocked
ok 59 - should be unlocked
ok 60 - should be unlocked
ok 61 - should be unlocked
ok 62 - should be unlocked
ok 63 - should be unlocked
ok 64 - should be unlocked
ok 65 - should be unlocked
ok 66 - should be unlocked
ok 67 - should be unlocked
ok 68 - should be unlocked
ok 69 - should be unlocked
ok 70 - should be unlocked
ok 71 - should be unlocked
ok 72 - should be unlocked
ok 73 - should be unlocked
ok 74 - should be unlocked
ok 75 - should be unlocked
ok 76 - should be unlocked
ok 77 - should be unlocked
ok 78 - should be unlocked
ok 79 - should be unlocked
ok 80 - should be unlocked
ok 81 - should be unlocked
ok 82 - should be unlocked
ok 83 - should be unlocked
ok 84 - should be unlocked
ok 85 - should be unlocked
ok 86 - should be unlocked
ok 87 - should be unlocked
ok 88 - should be unlocked
ok 89 - should be unlocked
ok 90 - should be unlocked
ok 91 - should be unlocked
ok 92 - should be unlocked
ok 93 - should be unlocked
ok 94 - should be unlocked
ok 95 - should be unlocked
ok 96 - should be unlocked
ok 97 - should be unlocked
ok 98 - should be unlocked
ok 99 - should be unlocked
ok 100 - should be unlocked
ok 101 - should be unlocked
ok 102 - should be unlocked
ok 103 - should be unlocked
ok 104 - should be unlocked
ok 105 - should be unlocked
ok 106 - should be unlocked
ok 107 - should be unlocked
ok 108 - should be unlocked
ok 109 - should be unlocked
ok 110 - should be unlocked
ok 111 - should be unlocked
ok 112 - should be unlocked
ok 113 - should be unlocked
ok 114 - should be unlocked
ok 115 - should be unlocked
ok 116 - should be unlocked
ok 117 - should be unlocked
ok 118 - should be unlocked
ok 119 - should be unlocked
ok 120 - should be unlocked
ok 121 - should be unlocked
ok 122 - should be unlocked
ok 123 - should be unlocked
ok 124 - should be unlocked
ok 125 - should be unlocked
ok 126 - should be unlocked
ok 127 - should be unlocked
ok 128 - should be unlocked
ok 129 - should be unlocked
ok 130 - should be unlocked
ok 131 - should be unlocked
ok 132 - should be unlocked
ok 133 - should be unlocked
ok 134 - should be unlocked
ok 135 - should be unlocked
ok 136 - should be unlocked
ok 137 - should be unlocked
ok 138 - should be unlocked
ok 139 - should be unlocked
ok 140 - should be unlocked
ok 141 - should be unlocked
ok 142 - should be unlocked
ok 143 - should be unlocked
ok 144 - should be unlocked
ok 145 - should be unlocked
ok 146 - should be unlocked
ok 147 - should be unlocked
ok 148 - should be unlocked
ok 149 - should be unlocked
ok 150 - should be unlocked
ok 151 - should be unlocked
ok 152 - should be unlocked
ok 153 - should be unlocked
ok 154 - should be unlocked
ok 155 - should be unlocked
ok 156 - should be unlocked
ok 157 - should be unlocked
ok 158 - should be unlocked
ok 159 - should be unlocked
ok 160 - should be unlocked
ok 161 - should be unlocked
ok 162 - should be unlocked
ok 163 - should be unlocked
ok 164 - should be unlocked
ok 165 - should be unlocked
ok 166 - should be unlocked
ok 167 - should be unlocked
ok 168 - should be unlocked
ok 169 - should be unlocked
ok 170 - should be unlocked
ok 171 - should be unlocked
ok 172 - should be unlocked
ok 173 - should be unlocked
ok 174 - should be unlocked
ok 175 - should be unlocked
ok 176 - should be unlocked
ok 177 - should be unlocked
ok 178 - should be unlocked
ok 179 - should be unlocked
ok 180 - should be unlocked
ok 181 - should be unlocked
ok 182 - should be unlocked
ok 183 - should be unlocked
ok 184 - should be unlocked
ok 185 - should be unlocked
ok 186 - should be unlocked
ok 187 - should be unlocked
ok 188 - should be unlocked
ok 189 - should be unlocked
ok 190 - should be unlocked
ok 191 - should be unlocked
ok 192 - should be unlocked
ok 193 - should be unlocked
ok 194 - should be unlocked
ok 195 - should be unlocked
ok 196 - should be unlocked
ok 197 - should be unlocked
ok 198 - should be unlocked
ok 199 - should be unlocked
ok 200 - should be unlocked
ok 201 - first file exists and has 20Kb so far
ok 202 - rotate files does not exists yet
# printing one more message to force rotation bondaries
ok 203 - should be unlocked
ok 204 - new file exists and has 100 bytes
ok 205 - rotate file exists and has 20Kb
ok 206 - compress method returns true
ok 207 - rotated file a.1 was compressed to a.1.gz
ok 208 - original a.1 is deleted
ok 209 - compressed file size is smaller than before compression
1..209
ok 8 - Filehandle not cached: rotate by size = 20Kb
# Subtest: Filehandle cached: rotate by period, daily
ok 1 - period
ok 2 - should be unlocked
ok 3 - got expected content in the file (1)
ok 4 - should be unlocked
ok 5 - got expected content in the file (2)
ok 6 - should be unlocked
ok 7 - got expected content in the file (3)
ok 8 - compress method returns true
ok 9 - rotated file a.2012-12-21 was compressed to a.2012-12-21.gz
ok 10 - original a.2012-12-21 is deleted
1..10
ok 9 - Filehandle cached: rotate by period, daily
# Subtest: Filehandle not cached: rotate by period, daily
ok 1 - period
ok 2 - should be unlocked
ok 3 - got expected content in the file (1)
ok 4 - should be unlocked
ok 5 - got expected content in the file (2)
ok 6 - should be unlocked
ok 7 - got expected content in the file (3)
ok 8 - compress method returns true
ok 9 - rotated file a.2012-12-21 was compressed to a.2012-12-21.gz
ok 10 - original a.2012-12-21 is deleted
1..10
ok 10 - Filehandle not cached: rotate by period, daily
# Subtest: Filehandle cached: rotate by period, monthly
ok 1 - period
ok 2 - should be unlocked
ok 3
ok 4 - should be unlocked
ok 5
ok 6 - should be unlocked
ok 7
ok 8 - compress method returns true
ok 9 - rotated file a.2012-12 was compressed to a.2012-12.gz
ok 10 - original a.2012-12 is deleted
1..10
ok 11 - Filehandle cached: rotate by period, monthly
# Subtest: Filehandle not cached: rotate by period, monthly
ok 1 - period
ok 2 - should be unlocked
ok 3
ok 4 - should be unlocked
ok 5
ok 6 - should be unlocked
ok 7
ok 8 - compress method returns true
ok 9 - rotated file a.2012-12 was compressed to a.2012-12.gz
ok 10 - original a.2012-12 is deleted
1..10
ok 12 - Filehandle not cached: rotate by period, monthly
# Subtest: Filehandle cached: rotate by period, yearly
ok 1 - period
ok 2 - should be unlocked
ok 3
ok 4 - should be unlocked
ok 5
ok 6 - should be unlocked
ok 7
ok 8 - compress method returns true
ok 9 - rotated file a.2012 was compressed to a.2012.gz
ok 10 - original a.2012 is deleted
1..10
ok 13 - Filehandle cached: rotate by period, yearly
# Subtest: Filehandle not cached: rotate by period, yearly
ok 1 - period
ok 2 - should be unlocked
ok 3
ok 4 - should be unlocked
ok 5
ok 6 - should be unlocked
ok 7
ok 8 - compress method returns true
ok 9 - rotated file a.2012 was compressed to a.2012.gz
ok 10 - original a.2012 is deleted
1..10
ok 14 - Filehandle not cached: rotate by period, yearly
# Subtest: Filehandle cached: rotate by period + size, suffix
ok 1 - period
ok 2 - should be unlocked
ok 3
ok 4 - should be unlocked
ok 5
ok 6
ok 7 - should be unlocked
ok 8
ok 9
ok 10
ok 11 - should be unlocked
ok 12
ok 13 - compress method returns true
ok 14 - rotated file a.2012-12-21.log was compressed to a.2012-12-21.log.gz
ok 15 - original a.2012-12-21.log is deleted
ok 16 - rotated file a.2012-12-21.log.1 was compressed to a.2012-12-21.log.1.gz
ok 17 - original a.2012-12-21.log.1 is deleted
ok 18 - rotated file a.2012-12-21.log.2 was compressed to a.2012-12-21.log.2.gz
ok 19 - original a.2012-12-21.log.2 is deleted
1..19
ok 15 - Filehandle cached: rotate by period + size, suffix
# Subtest: Filehandle not cached: rotate by period + size, suffix
ok 1 - period
ok 2 - should be unlocked
ok 3
ok 4 - should be unlocked
ok 5
ok 6
ok 7 - should be unlocked
ok 8
ok 9
ok 10
ok 11 - should be unlocked
ok 12
ok 13 - compress method returns true
ok 14 - rotated file a.2012-12-21.log was compressed to a.2012-12-21.log.gz
ok 15 - original a.2012-12-21.log is deleted
ok 16 - rotated file a.2012-12-21.log.1 was compressed to a.2012-12-21.log.1.gz
ok 17 - original a.2012-12-21.log.1 is deleted
ok 18 - rotated file a.2012-12-21.log.2 was compressed to a.2012-12-21.log.2.gz
ok 19 - original a.2012-12-21.log.2 is deleted
1..19
ok 16 - Filehandle not cached: rotate by period + size, suffix
# Subtest: Filehandle cached: two writers, one rotates
ok 1 - should be unlocked
ok 2
ok 3
ok 4
ok 5 - should be unlocked
ok 6
ok 7
ok 8 - compress method returns true
ok 9 - rotated file a.1 was compressed to a.1.gz
ok 10 - original a.1 is deleted
1..10
ok 17 - Filehandle cached: two writers, one rotates
# Subtest: Filehandle not cached: two writers, one rotates
ok 1 - should be unlocked
ok 2
ok 3
ok 4
ok 5 - should be unlocked
ok 6
ok 7
ok 8 - compress method returns true
ok 9 - rotated file a.1 was compressed to a.1.gz
ok 10 - original a.1 is deleted
1..10
ok 18 - Filehandle not cached: two writers, one rotates
# Subtest: rotate on first write()
ok 1
ok 2
ok 3 - compress method returns true
ok 4 - rotated file a.1 was compressed to a.1.gz
ok 5 - original a.1 is deleted
1..5
ok 19 - rotate on first write()
# Subtest: Filehandle cached: hook_before_write basic
ok 1 - lock file exists
ok 2 - should be unlocked
ok 3 - hook messages OK
ok 4 - content OK
1..4
ok 20 - Filehandle cached: hook_before_write basic
# Subtest: Filehandle not cached: hook_before_write basic
ok 1 - lock file exists
ok 2 - should be unlocked
ok 3 - hook messages OK
ok 4 - content OK
1..4
ok 21 - Filehandle not cached: hook_before_write basic
# Subtest: buffer (success), hook_before_write
ok 1 - first message to buffer
ok 2 - second message to buffer
ok 3 - should be unlocked
ok 4 - buffered messages gets logged
ok 5 - buffered is emptied
ok 6 - should be unlocked
1..6
ok 22 - buffer (success), hook_before_write
# Subtest: buffer (failed, full), buffer_size attribute
ok 1 - buffer_size()
ok 2 - first message to buffer
ok 3 - should be unlocked
ok 4 - second message to buffer
ok 5 - should be unlocked
ok 6 - buffer is full
ok 7 - should be unlocked
1..7
ok 23 - buffer (failed, full), buffer_size attribute
# Subtest: hook_after_create
ok 1
1..1
ok 24 - hook_after_create
# Subtest: Filehandle cached: rotate by period, daily + histories
ok 1 - should be unlocked
ok 2 - current file only
ok 3 - should be unlocked
ok 4 - 1 history
ok 5 - should be unlocked
ok 6 - 2 histories
ok 7 - should be unlocked
ok 8 - 2 histories (deleted)
1..8
ok 25 - Filehandle cached: rotate by period, daily + histories
# Subtest: Filehandle not cached: rotate by period, daily + histories
ok 1 - should be unlocked
ok 2 - current file only
ok 3 - should be unlocked
ok 4 - 1 history
ok 5 - should be unlocked
ok 6 - 2 histories
ok 7 - should be unlocked
ok 8 - 2 histories (deleted)
1..8
ok 26 - Filehandle not cached: rotate by period, daily + histories
# Subtest: Filehandle cached: rotate by size + histories
ok 1 - should be unlocked
ok 2 - current file only
ok 3 - should be unlocked
ok 4 - 1 history (rotated)
ok 5 - should be unlocked
ok 6 - 2 histories (rotated)
ok 7 - should be unlocked
ok 8 - 2 histories (rotated and deleted)
1..8
ok 27 - Filehandle cached: rotate by size + histories
# Subtest: Filehandle not cached: rotate by size + histories
ok 1 - should be unlocked
ok 2 - current file only
ok 3 - should be unlocked
ok 4 - 1 history (rotated)
ok 5 - should be unlocked
ok 6 - 2 histories (rotated)
ok 7 - should be unlocked
ok 8 - 2 histories (rotated and deleted)
1..8
ok 28 - Filehandle not cached: rotate by size + histories
# Subtest: Filehandle cached: rotate by size + period + histories
ok 1 - should be unlocked
ok 2
ok 3 - should be unlocked
ok 4
ok 5 - should be unlocked
ok 6
ok 7 - should be unlocked
ok 8 - rotate 2012-12-22 but NOT 2012-12-21
ok 9 - should be unlocked
ok 10 - delete [1] as a result of rotating at 2012-12-22
ok 11 - should be unlocked
ok 12 - delete [2] as a result of entering the new period
ok 13 - should be unlocked
ok 14
ok 15 - should be unlocked
ok 16 - not rotating because it's within the size limite
1..16
ok 29 - Filehandle cached: rotate by size + period + histories
# Subtest: Filehandle not cached: rotate by size + period + histories
ok 1 - should be unlocked
ok 2
ok 3 - should be unlocked
ok 4
ok 5 - should be unlocked
ok 6
ok 7 - should be unlocked
ok 8 - rotate 2012-12-22 but NOT 2012-12-21
ok 9 - should be unlocked
ok 10 - delete [1] as a result of rotating at 2012-12-22
ok 11 - should be unlocked
ok 12 - delete [2] as a result of entering the new period
ok 13 - should be unlocked
ok 14
ok 15 - should be unlocked
ok 16 - not rotating because it's within the size limite
1..16
ok 30 - Filehandle not cached: rotate by size + period + histories
1..30
ok
All tests successful.
Files=7, Tests=39, 2 wallclock secs ( 0.33 usr 0.04 sys + 2.11 cusr 0.31 csys = 2.79 CPU)
Result: PASS
PERLANCAR/File-Write-Rotate-0.25.tar.gz
make test TEST_VERBOSE=1 -- OK
perlancar <perlancar@gmail.com>
Write to files that archive/rotate themselves
>>> (cd /export/home/fly1232/var/cpan/build/File-Write-Rotate-0.25-X6RjzL && tar cvf - File-Write-Rotate-0.25.ppd blib) | gzip -c >/export/home/fly1232/var/REPO/P/PE/PERLANCAR/File-Write-Rotate-0.25.tar.gz
File-Write-Rotate-0.25.ppd
blib/
blib/lib/
blib/lib/File/
blib/lib/File/Write/
blib/lib/File/Write/Rotate.pm
blib/man3/
blib/man3/File::Write::Rotate.3
>>> mv /export/home/fly1232/var/cpan/build/File-Write-Rotate-0.25-X6RjzL/File-Write-Rotate-0.25.ppd /export/home/fly1232/var/REPO/P/PE/PERLANCAR
Finished 2014-12-05T18:38:48