# perl -MCPAN -e shell
Are you ready for manual configuration? [yes] no
cpan> test File::Scan::ClamAV
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
cp lib/File/Scan/ClamAV.pm blib/lib/File/Scan/ClamAV.pm
Manifying blib/man3/File::Scan::ClamAV.3pm
/usr/bin/make -- OK
Running 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.
LocalSocket /root/.cpan/build/File-Scan-ClamAV-1.8/clamsock
ERROR: Can't open/parse the config file clamav.conf
# 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
# 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
t/05rawscan.......NOK 4# Test 4 got: "" (t/05rawscan.t at line 34)
# Expected: "1" (Didn't detect /root/.cpan/build/File-Scan-ClamAV-1.8/testfiles/clamavtest)
# t/05rawscan.t line 34 is: ok(exists($results{"$testdir/clamavtest"}), 1, "Didn't detect $testdir/clamavtest");
t/05rawscan.......FAILED test 4
Failed 1/8 tests, 87.50% okay
t/06streamscan....ERROR: Parse error at line 2: Option Foreground requires boolean argument.
ERROR: Can't open/parse the config file clamav.conf
t/06streamscan....ok 1/8# Test 5 got: <UNDEF> (t/06streamscan.t at line 43)
# Expected: "FOUND"
# t/06streamscan.t line 43 is: ok($ans, 'FOUND');
t/06streamscan....NOK 5# Test 6 got: <UNDEF> (t/06streamscan.t at line 44)
t/06streamscan....NOK 6# Expected: "ClamAV-Test-Signature"
# t/06streamscan.t line 44 is: ok($vir, 'ClamAV-Test-Signature');
t/06streamscan....FAILED tests 5-6
Failed 2/8 tests, 75.00% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
* * *
t/01ping.t 3 1 33.33% 2
t/02reload.t 3 1 33.33% 2
t/03quit.t 4 1 25.00% 2
t/04scan.t 8 3 37.50% 4-6
t/05rawscan.t 8 1 12.50% 4
t/06streamscan.t 8 2 25.00% 5-6
Failed 6/7 test scripts, 14.29% okay. 9/35 subtests failed, 74.29% okay.
make: *** [test_dynamic] Error 255
/usr/bin/make test -- NOT OK
**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
**root@auslz02:~/.cpan/build/File-Scan-ClamAV-1.8# vi clamav.conf**
Change following...
LocalSocket /root/.cpan/build/File-Scan-ClamAV-1.8/clamsock
**Foreground**
MaxThreads 1
**ScanArchive**
ArchiveMaxFileSize 1M
ArchiveMaxRecursion 1
ArchiveMaxFiles 2
To following...
LocalSocket /root/.cpan/build/File-Scan-ClamAV-1.8/clamsock
**Foreground true**
MaxThreads 1
**ScanArchive true**
ArchiveMaxFileSize 1M
ArchiveMaxRecursion 1
ArchiveMaxFiles 2
**root@auslz02:~/.cpan/build/File-Scan-ClamAV-1.8# make install**
Installing /usr/local/share/perl/5.8.8/File/Scan/ClamAV.pm
Installing /usr/local/man/man3/File::Scan::ClamAV.3pm
Writing /usr/local/lib/perl/5.8.8/auto/File/Scan/ClamAV/.packlist
Appending installation info to /usr/local/lib/perl/5.8.8/perllocal.pod
**root@auslz02:~/.cpan/build/File-Scan-ClamAV-1.8# exit**
exit
**cpan> exit**
Terminal does not support GetHistory.
Lockfile removed.