On 2016-05-20 07:05:11 [+0200], Mathieu Parent wrote: > Hi, Hi, > There is no offline way to test clamav. I need this to ensure c-icap is > working properly using autopkgtest. > > I propose that you include bytecode.cvd in clamav-testfiles.
bytecode.cvd? You mean that you need a sig database for malware testing? Becase if you need something to test against the samples provided by clamav-testfiles then you can use A `hdb' file that contains aa15bcf478d165efd2065190eb473bcb:544:ClamAV-Test-File For example: |$ echo "aa15bcf478d165efd2065190eb473bcb:544:ClamAV-Test-File" > clamav.hdb |$ $ clamscan -d clamav.hdb /usr/share/clamav-testfiles/clam.exe |/usr/share/clamav-testfiles/clam.exe: ClamAV-Test-File.UNOFFICIAL FOUND | |----------- SCAN SUMMARY ----------- |Known viruses: 1 |Engine version: 0.99.2 |Scanned directories: 0 |Scanned files: 1 |Infected files: 1 |Data scanned: 0.00 MB |Data read: 0.00 MB (ratio 0.00:1) |Time: 0.007 sec (0 m 0 s) Is this what you are looking for? > Thanks Sebastian