File-FindSimilars v2.07 Perl 5 v5.22.2 x86_64-linux

Status
Pass
From
Andreas J. König (ANDK)
Dist
File-FindSimilars v2.07
Platform
Perl 5 v5.22.2 x86_64-linux
Date
2017-06-01T18:27:46
ID
02a42b06-46f8-11e7-adf8-bc1463c19fb9
This distribution has been tested as part of the CPAN Testers
project, supporting the Perl programming language.  See
http://wiki.cpantesters.org/ for more information or email
questions to cpan-testers-discuss@perl.org


--
Dear Tong Sun,

This is a computer-generated report for File-FindSimilars-2.07
on perl 5.22.2, created by CPAN-Reporter-1.2018.

Thank you for uploading your work to CPAN.  Congratulations!
All tests were successful.

Sections of this report:

    * Tester comments
    * Program output
    * Prerequisites
    * Environment and other context

------------------------------
TESTER COMMENTS
------------------------------

Additional comments from tester:

this report is from an automated smoke testing program
and was not reviewed by a human for accuracy

------------------------------
PROGRAM OUTPUT
------------------------------

Output from '/usr/bin/make test':

PERL_DL_NONLAZY=1 "/home/sand/src/perl/repoperls/installed-perls/host/k93msid/v5.22.2/89ad/bin/perl" "-Iblib/lib" "-Iblib/arch" test.pl
1..5 todo 2;
# Running under perl version 5.022002 for linux
# Current time local: Thu Jun  1 18:27:29 2017
# Current time GMT:   Thu Jun  1 18:27:29 2017
# Using Test.pm version 1.26
# Testing File::FindSimilars version 2.07

== Testing 1, test.tgz file content:

test/
test/Audio Book - The Grey Coloured Bunnie.mp3
test/GNU - Python Standard Library (2001).rar
test/PopupTest.java
test/(eBook) GNU - Python Standard Library 2001.pdf
test/Python Standard Library.zip
test/GNU - 2001 - Python Standard Library.pdf
test/LayoutTest.java
test/ColoredGrayBunny.ogg
ok 1
Can't locate Text/Soundex.pm in @INC (you may need to install the Text::Soundex module) (@INC contains: blib/lib blib/arch /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at blib/lib/File/FindSimilars.pm line 184.
BEGIN failed--compilation aborted at blib/lib/File/FindSimilars.pm line 184.
Compilation failed in require at bin/findsimilars line 39.
BEGIN failed--compilation aborted at bin/findsimilars line 39.

== Testing 2, files under test/ subdir:

  9 test/(eBook) GNU - Python Standard Library 2001.pdf
  3 test/Audio Book - The Grey Coloured Bunnie.mp3
  5 test/ColoredGrayBunny.ogg
  5 test/GNU - 2001 - Python Standard Library.pdf
  4 test/GNU - Python Standard Library (2001).rar
  9 test/LayoutTest.java
  3 test/PopupTest.java
  2 test/Python Standard Library.zip
ok 2 # (test.pl at line 83 TODO?!)

Note:

- The findsimilars script will pick out similar files from them in next test.
- Let's assume that the number represent the file size in KB.

== Testing 3 result should be:

## =========
           3 'Audio Book - The Grey Coloured Bunnie.mp3' 'test/'
           5 'ColoredGrayBunny.ogg'                      'test/'

## =========
           4 'GNU - Python Standard Library (2001).rar' 'test/'
           5 'GNU - 2001 - Python Standard Library.pdf' 'test/'
not ok 3
# Test 3 got: "" (test.pl at line 105)
#   Expected: "\n## =========\n           3 'Audio Book - The Grey Coloured Bunnie.mp3' 'test/'\n           5 'ColoredGrayBunny.ogg'                      'test/'\n\n## =========\n           4 'GNU - Python Standard Library (2001).rar' 'test/'\n           5 'GNU - 2001 - Python Standard Library.pdf' 'test/'\n"
#   Lines 1-1 are missing:
#    - "\n"
#    - "## =========\n"
#    - "           3 'Audio Book - The Grey Coloured Bunnie.mp3' 'test/'\n"
#    - "           5 'ColoredGrayBunny.ogg'                      'test/'\n"
#    - "\n"
#    - "## =========\n"
#    - "           4 'GNU - Python Standard Library (2001).rar' 'test/'\n"
#    - "           5 'GNU - 2001 - Python Standard Library.pdf' 'test/'\n"
#  test.pl line 105 is: ok($result1,$result0) || print $result1;

Note:

- There are 2 groups of similar files picked out by the script.
- The similar files are picked because their file names look similar.
  Note that the first group looks different and spells differently too,
  which means that the script is versatile enough to handle file names that
  don't have space in it, and robust enough to deal with spelling mistakes.
- Apart from the file name, the file size plays an important role as well.
- There are 2 files in the second similar files group, the book files group.
- The file 'Python Standard Library.zip' is not considered to be similar to
  the group because its size is not similar to the group.

== Testing 4, if Python.zip is bigger, result should be:

## =========
           3 'Audio Book - The Grey Coloured Bunnie.mp3' 'test/'
           5 'ColoredGrayBunny.ogg'                      'test/'

## =========
           4 'Python Standard Library.zip' 'test/'
           4 'GNU - Python Standard Library (2001).rar' 'test/'
           5 'GNU - 2001 - Python Standard Library.pdf' 'test/'
Can't locate Text/Soundex.pm in @INC (you may need to install the Text::Soundex module) (@INC contains: blib/lib blib/arch /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at blib/lib/File/FindSimilars.pm line 184.
BEGIN failed--compilation aborted at blib/lib/File/FindSimilars.pm line 184.
Compilation failed in require at bin/findsimilars line 39.
BEGIN failed--compilation aborted at bin/findsimilars line 39.
not ok 4
# Test 4 got: "" (test.pl at line 136)
#   Expected: "\n## =========\n           3 'Audio Book - The Grey Coloured Bunnie.mp3' 'test/'\n           5 'ColoredGrayBunny.ogg'                      'test/'\n\n## =========\n           4 'Python Standard Library.zip' 'test/'\n           4 'GNU - Python Standard Library (2001).rar' 'test/'\n           5 'GNU - 2001 - Python Standard Library.pdf' 'test/'\n"
#   Lines 1-1 are missing:
#    - "\n"
#    - "## =========\n"
#    - "           3 'Audio Book - The Grey Coloured Bunnie.mp3' 'test/'\n"
#    - "           5 'ColoredGrayBunny.ogg'                      'test/'\n"
#    - "\n"
#    - "## =========\n"
#    - "           4 'Python Standard Library.zip' 'test/'\n"
#    - "           4 'GNU - Python Standard Library (2001).rar' 'test/'\n"
#    - "           5 'GNU - 2001 - Python Standard Library.pdf' 'test/'\n"
#  test.pl line 136 is: ok($result1,$result0) || print $result1;

Note:

- There are now 3 files in the book files group.
- The file 'Python Standard Library.zip' is included in the
  group because its size is now similar to the group.

== Testing 5, if Python.zip is even bigger, result should be:

## =========
           3 'Audio Book - The Grey Coloured Bunnie.mp3' 'test/'
           5 'ColoredGrayBunny.ogg'                      'test/'

## =========
           4 'GNU - Python Standard Library (2001).rar' 'test/'
           5 'GNU - 2001 - Python Standard Library.pdf' 'test/'
           6 'Python Standard Library.zip' 'test/'
           9 '(eBook) GNU - Python Standard Library 2001.pdf' 'test/'
Can't locate Text/Soundex.pm in @INC (you may need to install the Text::Soundex module) (@INC contains: blib/lib blib/arch /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at blib/lib/File/FindSimilars.pm line 184.
BEGIN failed--compilation aborted at blib/lib/File/FindSimilars.pm line 184.
Compilation failed in require at bin/findsimilars line 39.
BEGIN failed--compilation aborted at bin/findsimilars line 39.
not ok 5
# Test 5 got: "" (test.pl at line 162)
#   Expected: "\n## =========\n           3 'Audio Book - The Grey Coloured Bunnie.mp3' 'test/'\n           5 'ColoredGrayBunny.ogg'                      'test/'\n\n## =========\n           4 'GNU - Python Standard Library (2001).rar' 'test/'\n           5 'GNU - 2001 - Python Standard Library.pdf' 'test/'\n           6 'Python Standard Library.zip' 'test/'\n           9 '(eBook) GNU - Python Standard Library 2001.pdf' 'test/'\n"
#   Lines 1-1 are missing:
#    - "\n"
#    - "## =========\n"
#    - "           3 'Audio Book - The Grey Coloured Bunnie.mp3' 'test/'\n"
#    - "           5 'ColoredGrayBunny.ogg'                      'test/'\n"
#    - "\n"
#    - "## =========\n"
#    - "           4 'GNU - Python Standard Library (2001).rar' 'test/'\n"
#    - "           5 'GNU - 2001 - Python Standard Library.pdf' 'test/'\n"
#    - "           6 'Python Standard Library.zip' 'test/'\n"
#    - "           9 '(eBook) GNU - Python Standard Library 2001.pdf' 'test/'\n"
#  test.pl line 162 is: ok($result1,$result0) || print $result1;

Note:

- There are 4 files in the book files group now.
- The file 'Python Standard Library.zip' is still in the group.
- But this time, because it is also considered to be similar to the .pdf
  file (since their size are now similar, 6 vs 9), a 4th file the .pdf one
  is now included in the book group.
- If the size of file 'Python Standard Library.zip' is 12(KB), then the
  book files group will be split into two. Do you know why and
  which files each group will contain?
PERL_DL_NONLAZY=1 "/home/sand/src/perl/repoperls/installed-perls/host/k93msid/v5.22.2/89ad/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# Testing File::FindSimilars 2.07, Perl 5.022002, /home/sand/src/perl/repoperls/installed-perls/host/k93msid/v5.22.2/89ad/bin/perl
t/00-load.t .. ok
t/pod.t ...... ok
All tests successful.
Files=2, Tests=7,  0 wallclock secs ( 0.03 usr  0.00 sys +  0.18 cusr  0.02 csys =  0.23 CPU)
Result: PASS

------------------------------
PREREQUISITES
------------------------------

Prerequisite modules loaded:

requires:

    Module                Need Have    
    --------------------- ---- --------
    Class::Accessor::Fast 0    0.34    
    Getopt::Long          0    2.5     
    Pod::Usage            0    1.69    
    Test::More            0    1.302085
    Text::Soundex         0    3.05    

build_requires:

    Module                Need Have    
    --------------------- ---- --------
    ExtUtils::MakeMaker   0    7.27_02 

configure_requires:

    Module                Need Have    
    --------------------- ---- --------
    ExtUtils::MakeMaker   0    7.27_02 


------------------------------
ENVIRONMENT AND OTHER CONTEXT
------------------------------

Environment variables:

    AUTOMATED_TESTING = 1
    LANG = en_US.UTF-8
    PATH = /home/sand/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/local/perl/bin:/usr/X11/bin:/sbin:/usr/sbin
    PERL5LIB = 
    PERL5OPT = 
    PERL5_CPANPLUS_IS_RUNNING = 12889
    PERL5_CPAN_IS_RUNNING = 12889
    PERL_CANARY_STABILITY_NOPROMPT = 1
    PERL_MM_USE_DEFAULT = 1
    PERL_USE_UNSAFE_INC = 1
    SHELL = /usr/bin/zsh
    TERM = screen

Perl special variables (and OS-specific diagnostics, for MSWin32):

    $^X = /home/sand/src/perl/repoperls/installed-perls/host/k93msid/v5.22.2/89ad/bin/perl
    $UID/$EUID = 1005 / 1005
    $GID = 1005 1005
    $EGID = 1005 1005

Perl module toolchain versions installed:

    Module              Have    
    ------------------- --------
    CPAN                2.18    
    CPAN::Meta          2.150010
    Cwd                 3.62    
    ExtUtils::CBuilder  0.280224
    ExtUtils::Command   7.27_02 
    ExtUtils::Install   2.12    
    ExtUtils::MakeMaker 7.27_02 
    ExtUtils::Manifest  1.70    
    ExtUtils::ParseXS   3.30    
    File::Spec          3.62    
    JSON                2.93    
    JSON::PP            2.27300 
    Module::Build       0.4224  
    Module::Signature   0.81    
    Parse::CPAN::Meta   2.150010
    Test::Harness       3.39    
    Test::More          1.302085
    YAML                1.23    
    YAML::Syck          1.30    
    version             0.9918  


--

Summary of my perl5 (revision 5 version 22 subversion 2) configuration:
  Derived from: 9cbffb38735712e3a34e6f537892b6ef06fb815f
  Platform:
    osname=linux, osvers=4.9.0-2-amd64, archname=x86_64-linux
    uname='linux k93msid 4.9.0-2-amd64 #1 smp debian 4.9.18-1 (2017-03-30) x86_64 gnulinux '
    config_args='-Dprefix=/home/sand/src/perl/repoperls/installed-perls/host/k93msid/v5.22.2/89ad -Dmyhostname=k93msid -Dinstallusrbinperl=n -Uversiononly -Dusedevel -des -Ui_db -Dlibswanted=cl pthread socket inet nsl gdbm dbm malloc dl ld sun m crypt sec util c cposix posix ucb BSD gdbm_compat -Uuseithreads -Uuselongdouble -DDEBUGGING=-g'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -g',
    cppflags='-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
    ccversion='', gccversion='6.3.0 20170406', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678, doublekind=3
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16, longdblkind=3
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/local/lib /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib
    libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.24.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.24'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib -fstack-protector-strong'


Characteristics of this binary (from libperl): 
  Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
                        PERL_HASH_FUNC_ONE_AT_A_TIME_HARD PERL_MALLOC_WRAP
                        PERL_NEW_COPY_ON_WRITE PERL_PRESERVE_IVUV
                        PERL_USE_DEVEL USE_64_BIT_ALL USE_64_BIT_INT
                        USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE
                        USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME
                        USE_PERLIO USE_PERL_ATOF
  Locally applied patches:
	uncommitted-changes
  Built under linux
  Compiled at Apr 17 2017 01:54:39
  %ENV:
    PERL5LIB=""
    PERL5OPT=""
    PERL5_CPANPLUS_IS_RUNNING="12889"
    PERL5_CPAN_IS_RUNNING="12889"
    PERL_CANARY_STABILITY_NOPROMPT="1"
    PERL_MM_USE_DEFAULT="1"
    PERL_USE_UNSAFE_INC="1"
  @INC:
    /home/sand/src/perl/repoperls/installed-perls/host/k93msid/v5.22.2/89ad/lib/site_perl/5.22.2/x86_64-linux
    /home/sand/src/perl/repoperls/installed-perls/host/k93msid/v5.22.2/89ad/lib/site_perl/5.22.2
    /home/sand/src/perl/repoperls/installed-perls/host/k93msid/v5.22.2/89ad/lib/5.22.2/x86_64-linux
    /home/sand/src/perl/repoperls/installed-perls/host/k93msid/v5.22.2/89ad/lib/5.22.2
    .