clamav/clamav-test.patch

19 lines
749 B
Diff

--- unit_tests/check_clamd.sh
+++ unit_tests/check_clamd.sh
@@ -24,6 +24,7 @@
shift
rm -f clamdscan.log
../clamd/clamd -c $conf_file || { echo "Failed to start clamd!" >&2; die 1;}
+ sleep 2
../clamdscan/clamdscan --version --config-file $conf_file 2>&1|grep "^ClamAV" >/dev/null || { echo "clamdscan can't get version of clamd!" >&2; die 2;}
../clamdscan/clamdscan --quiet --config-file $conf_file $* --log=clamdscan.log
if test $? = 2; then
@@ -38,6 +39,7 @@
shift
rm -f clamdscan.log
../clamd/clamd -c $conf_file || { echo "Failed to start clamd!" >&2; die 1;}
+ sleep 2
../clamdscan/clamdscan --quiet --fdpass --config-file $conf_file - <$1 --log=clamdscan.log
if test $? = 2; then
echo "Failed to run clamdscan!" >&2;