vpn:~# rm -R .cpan vpn:~# perl -MCPAN -e shell cpan shell -- CPAN exploration and modules installation (v1.7602) ReadLine support enabled cpan> test File::Scan::ClamAV CPAN: Storable loaded ok CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz Going to read /root/.cpan/sources/authors/01mailrc.txt.gz CPAN: Compress::Zlib loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz Going to read /root/.cpan/sources/modules/02packages.details.txt.gz Database was generated on Fri, 01 Feb 2008 19:30:52 GMT There's a new CPAN.pm version (v1.9205) available! [Current version is v1.7602] You might want to try install Bundle::CPAN reload cpan without quitting the current session. It should be a seamless upgrade while we are running... Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz Going to read /root/.cpan/sources/modules/03modlist.data.gz Going to write /root/.cpan/Metadata Running test for module File::Scan::ClamAV Running make for C/CF/CFABER/File-Scan-ClamAV-1.8.tar.gz Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/id/C/CF/CFABER/File-Scan-ClamAV-1.8.tar.gz CPAN: Digest::MD5 loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/id/C/CF/CFABER/CHECKSUMS Checksum for /root/.cpan/sources/authors/id/C/CF/CFABER/File-Scan-ClamAV-1.8.tar.gz ok Scanning cache /root/.cpan/build for sizes File-Scan-ClamAV-1.8/ File-Scan-ClamAV-1.8/t/ File-Scan-ClamAV-1.8/t/05rawscan.t File-Scan-ClamAV-1.8/t/03quit.t File-Scan-ClamAV-1.8/t/06streamscan.t File-Scan-ClamAV-1.8/t/04scan.t File-Scan-ClamAV-1.8/t/mkconf.pl File-Scan-ClamAV-1.8/t/01ping.t File-Scan-ClamAV-1.8/t/00basic.t File-Scan-ClamAV-1.8/t/02reload.t File-Scan-ClamAV-1.8/Changes File-Scan-ClamAV-1.8/testfiles/ File-Scan-ClamAV-1.8/testfiles/innocent File-Scan-ClamAV-1.8/testfiles/clamavtest File-Scan-ClamAV-1.8/testfiles/clamavtest.gz File-Scan-ClamAV-1.8/testfiles/clamavtest.zip File-Scan-ClamAV-1.8/MANIFEST File-Scan-ClamAV-1.8/MANIFEST.SKIP File-Scan-ClamAV-1.8/META.yml File-Scan-ClamAV-1.8/lib/ File-Scan-ClamAV-1.8/lib/File/ File-Scan-ClamAV-1.8/lib/File/Scan/ File-Scan-ClamAV-1.8/lib/File/Scan/ClamAV.pm File-Scan-ClamAV-1.8/README File-Scan-ClamAV-1.8/Makefile.PL CPAN.pm: Going to build C/CF/CFABER/File-Scan-ClamAV-1.8.tar.gz Checking if your kit is complete... Looks good Writing Makefile for File::Scan::ClamAV -- NOT OK Running make test Can't test without successful make cpan> look File::Scan::ClamAV Running look for module File::Scan::ClamAV Trying to open a subshell in the build directory... Working directory is /root/.cpan/build/File-Scan-ClamAV-1.8 vpn:~/.cpan/build/File-Scan-ClamAV-1.8# ls Changes Makefile MANIFEST META.yml t lib Makefile.PL MANIFEST.SKIP README testfiles vpn:~/.cpan/build/File-Scan-ClamAV-1.8# ls -Al total 60 -rw-r--r-- 1 1001 root 271 2004-09-17 15:12 Changes drwxr-xr-x 3 1001 root 4096 2004-09-17 15:12 lib -rw-r--r-- 1 root root 21508 2008-02-01 17:09 Makefile -rw-r--r-- 1 1001 root 866 2004-06-21 17:06 Makefile.PL -rw-r--r-- 1 1001 root 343 2004-06-21 16:59 MANIFEST -rw-r--r-- 1 1001 root 153 2002-11-03 03:43 MANIFEST.SKIP -rw-r--r-- 1 1001 root 315 2004-09-17 15:12 META.yml -rw-r--r-- 1 1001 root 279 2004-06-21 17:00 README drwxr-xr-x 2 1001 root 4096 2004-09-17 15:12 t drwxr-xr-x 2 1001 root 4096 2004-09-17 15:12 testfiles vpn:~/.cpan/build/File-Scan-ClamAV-1.8# cd t vpn:~/.cpan/build/File-Scan-ClamAV-1.8/t# ls 00basic.t 02reload.t 04scan.t 06streamscan.t 01ping.t 03quit.t 05rawscan.t mkconf.pl vpn:~/.cpan/build/File-Scan-ClamAV-1.8/t# cd .. vpn:~/.cpan/build/File-Scan-ClamAV-1.8# cd lib/ vpn:~/.cpan/build/File-Scan-ClamAV-1.8/lib# ls File vpn:~/.cpan/build/File-Scan-ClamAV-1.8/lib# cd .. vpn:~/.cpan/build/File-Scan-ClamAV-1.8# find . | grep -i clamav ./testfiles/clamavtest.gz ./testfiles/clamavtest ./testfiles/clamavtest.zip ./lib/File/Scan/ClamAV.pm vpn:~/.cpan/build/File-Scan-ClamAV-1.8# ls Changes Makefile MANIFEST META.yml t lib Makefile.PL MANIFEST.SKIP README testfiles vpn:~/.cpan/build/File-Scan-ClamAV-1.8# perl Makefile.PL Writing Makefile for File::Scan::ClamAV vpn:~/.cpan/build/File-Scan-ClamAV-1.8# ls Changes Makefile MANIFEST META.yml t lib Makefile.PL MANIFEST.SKIP README testfiles vpn:~/.cpan/build/File-Scan-ClamAV-1.8# make cp lib/File/Scan/ClamAV.pm blib/lib/File/Scan/ClamAV.pm Manifying blib/man3/File::Scan::ClamAV.3pm vpn:~/.cpan/build/File-Scan-ClamAV-1.8# ls blib lib Makefile.PL MANIFEST.SKIP pm_to_blib t Changes Makefile MANIFEST META.yml README testfiles vpn:~/.cpan/build/File-Scan-ClamAV-1.8# make test PERL_DL_NONLAZY=1 CLAMD_PATH=/usr/sbin /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00basic.........ok t/01ping..........ERROR: Parse error at line 2: Option Foreground requires boolean argument. ERROR: Can't open/parse the config file clamav.conf t/01ping..........ok 1/3# Failed test 2 in t/01ping.t at line 26 # t/01ping.t line 26 is: ok($av->ping); t/01ping..........FAILED test 2 Failed 1/3 tests, 66.67% okay t/02reload........ERROR: Parse error at line 2: Option Foreground requires boolean argument. ERROR: Can't open/parse the config file clamav.conf t/02reload........ok 1/3# Failed test 2 in t/02reload.t at line 25 # t/02reload.t line 25 is: ok($av->reload); t/02reload........FAILED test 2 Failed 1/3 tests, 66.67% okay t/03quit..........ERROR: Parse error at line 2: Option Foreground requires boolean argument. ERROR: Can't open/parse the config file clamav.conf t/03quit..........ok 1/4# Failed test 2 in t/03quit.t at line 31 # t/03quit.t line 31 is: ok($av->quit); t/03quit..........FAILED test 2 Failed 1/4 tests, 75.00% okay t/04scan..........ERROR: Parse error at line 2: Option Foreground requires boolean argument. ERROR: Can't open/parse the config file clamav.conf t/04scan..........ok 1/8# Test 4 got: "" (t/04scan.t at line 36) t/04scan..........NOK 4# Expected: "1" (Didn't detect /root/.cpan/build/File-Scan-ClamAV-1.8/testfiles/clamavtest) # t/04scan.t line 36 is: ok(exists($results{"$testdir/clamavtest"}), 1, "Didn't detect $testdir/clamavtest"); # Test 5 got: "" (t/04scan.t at line 37) # Expected: "1" (Didn't detect /root/.cpan/build/File-Scan-ClamAV-1.8/testfiles/clamavtest.zip) # t/04scan.t line 37 is: ok(exists($results{"$testdir/clamavtest.zip"}), 1, "Didn't detect $testdir/clamavtest.zip"); # Test 6 got: "" (t/04scan.t at line 38) # Expected: "1" (Didn't detect /root/.cpan/build/File-Scan-ClamAV-1.8/testfiles/clamavtest.gz) # t/04scan.t line 38 is: ok(exists($results{"$testdir/clamavtest.gz"}), 1, "Didn't detect $testdir/clamavtest.gz"); t/04scan..........FAILED tests 4-6 Failed 3/8 tests, 62.50% okay t/05rawscan.......ERROR: Parse error at line 2: Option Foreground requires boolean argument. ERROR: Can't open/parse the config file clamav.conf