Cisco-Talos / clamav

ClamAV - Documentation is here: https://docs.clamav.net
https://www.clamav.net/
GNU General Public License v2.0
4.38k stars 704 forks source link

ClamAV 0.104.2 on macOS 12 (Monterey) fails to make test or make check when no version of ClamAV is already installed #449

Closed ballapete closed 7 months ago

ballapete commented 2 years ago

The proof for my claim is obvious: When I have a version ClamAV installed make test or make check succeed, when I deactivate ClamAV they fail:

time nice gmake -k check
/opt/local/bin/cmake -S/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2 -B/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build --check-build-system CMakeFiles/Makefile.cmake 0
gmake  -f CMakeFiles/Makefile2 check
gmake[1]: Verzeichnis „/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build“ wird betreten
/opt/local/bin/cmake -S/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2 -B/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build --check-build-system CMakeFiles/Makefile.cmake 0
/opt/local/bin/cmake -E cmake_progress_start /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/CMakeFiles 0
gmake  -f CMakeFiles/Makefile2 CMakeFiles/check.dir/all
gmake[2]: Verzeichnis „/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build“ wird betreten
gmake  -f CMakeFiles/check.dir/build.make CMakeFiles/check.dir/depend
gmake[3]: Verzeichnis „/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build“ wird betreten
cd /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build && /opt/local/bin/cmake -E cmake_depends "Unix Makefiles" /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2 /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2 /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/CMakeFiles/check.dir/DependInfo.cmake --color=
gmake[3]: Verzeichnis „/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build“ wird verlassen
gmake  -f CMakeFiles/check.dir/build.make CMakeFiles/check.dir/build
gmake[3]: Verzeichnis „/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build“ wird betreten
/opt/local/bin/ctest
Test project /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
    Start 1: libclamav
1/5 Test #1: libclamav ........................***Failed    9.00 sec
    Start 2: clamscan
2/5 Test #2: clamscan .........................***Failed    3.66 sec
    Start 3: clamd
3/5 Test #3: clamd ............................***Failed   10.06 sec
    Start 4: freshclam
4/5 Test #4: freshclam ........................   Passed   36.50 sec
    Start 5: sigtool
5/5 Test #5: sigtool ..........................   Passed    0.58 sec

40% tests passed, 3 tests failed out of 5

Total Test time (real) =  59.80 sec

The following tests FAILED:
      1 - libclamav (Failed)
      2 - clamscan (Failed)
      3 - clamd (Failed)
Errors while running CTest
Output from these tests are in: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
gmake[3]: *** [CMakeFiles/check.dir/build.make:73: CMakeFiles/check] Fehler 8
gmake[3]: Das Ziel „CMakeFiles/check.dir/build“ wurde wegen Fehlern nicht aktualisiert.
gmake[3]: Verzeichnis „/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build“ wird verlassen
gmake[2]: *** [CMakeFiles/Makefile2:1291: CMakeFiles/check.dir/all] Fehler 2
gmake[2]: Verzeichnis „/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build“ wird verlassen
gmake[1]: *** [CMakeFiles/Makefile2:1298: CMakeFiles/check.dir/rule] Fehler 2
gmake[1]: Das Ziel „check“ wurde wegen Fehlern nicht aktualisiert.
gmake[1]: Verzeichnis „/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build“ wird verlassen
gmake: *** [Makefile:566: check] Fehler 2
12.398u 6.644s 1:00.01 31.7%    0+0k 0+0io 21pf+0w
time nice gmake -k test
Running tests...
/opt/local/bin/ctest --force-new-ctest-process 
Test project /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
    Start 1: libclamav
1/5 Test #1: libclamav ........................***Failed    9.33 sec
    Start 2: clamscan
2/5 Test #2: clamscan .........................***Failed    3.63 sec
    Start 3: clamd
3/5 Test #3: clamd ............................***Failed   10.11 sec
    Start 4: freshclam
4/5 Test #4: freshclam ........................   Passed   36.73 sec
    Start 5: sigtool
5/5 Test #5: sigtool ..........................   Passed    0.57 sec

40% tests passed, 3 tests failed out of 5

Total Test time (real) =  60.40 sec

The following tests FAILED:
      1 - libclamav (Failed)
      2 - clamscan (Failed)
      3 - clamd (Failed)
Errors while running CTest
Output from these tests are in: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
gmake: *** [Makefile:94: test] Fehler 8
12.516u 6.791s 1:00.48 31.9%    0+0k 0+0io 24pf+0w

Am I using the wrong invocation or are make test and make check just unusable?

root 335 /\ env PATH=`port work clamav-legacy`/build/clamd:`port work clamav-legacy`/build/clamconf:`port work clamav-legacy`/build/clamscan:`port work clamav-legacy`/build/freshclam:`port work clamav-legacy`/build/sigtool:$PATH clamconf -n
Checking configuration files in /opt/local/etc

Config file: clamd.conf
-----------------------
DatabaseDirectory = "/usr/local/clamXav/share/clamav"
LocalSocket = "/tmp/clamd.socket"

Config file: freshclam.conf
---------------------------
DatabaseDirectory = "/usr/local/clamXav/share/clamav"
UpdateLogFile = "/usr/local/clamXav/share/clamav/freshclam.log"
DatabaseMirror = "database.clamav.net"
NotifyClamd = "/usr/local/clamXav/etc/clamd.conf"

clamav-milter.conf not found

Software settings
-----------------
Version: 0.104.2
Optional features supported: AUTOIT_EA06 BZIP2 LIBXML2 PCRE2 ICONV JSON 

Database information
--------------------
Database directory: /usr/local/clamXav/share/clamav
[3rd Party] ClamXav.fp: 40 sigs
[3rd Party] ClamXav.ldb: 71 sigs
[3rd Party] ClamXav.hdb: 1802661 sigs
bytecode.cld: version 333, sigs: 92, built on Mon Mar  8 16:21:51 2021
[3rd Party] ClamXav.ign2: 44 sigs
main.cld: version 62, sigs: 6647427, built on Thu Sep 16 14:32:42 2021
[3rd Party] ClamXav.ndb: 14 sigs
daily.cld: version 26441, sigs: 1973383, built on Wed Feb  2 10:43:13 2022
Total number of signatures: 10423732

Platform information
--------------------
uname: Darwin 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:54 PST 2021; root x86_64
OS: Darwin, ARCH: x86_64, CPU: x86_64
zlib version: 1.2.11 (1.2.11), compile flags: a9
platform id: 0x04238e8e0800000000040201

Build information
-----------------
Clang: Apple LLVM 13.0.0 (clang-1300.0.29.30) (4.2.1)
sizeof(void*) = 8
Engine flevel: 142, dconf: 142

--

Pete

micahsnyder commented 2 years ago

I think this may be a bug in 0.104 that happens to be fixed in our main branch. It looks like your build is using the libclamav library installed to your system rather than the one that you recently compiled.

make test/make check/ctest sets the LD_LIBRARY_PATH to the directories containing our libraries (libclamav, libclammspack, etc). On macOS, they named the variable DYLD_LIBRARY_PATH.

0.104: https://github.com/Cisco-Talos/clamav/blob/dev/0.104.3/unit_tests/CMakeLists.txt#L245 main: https://github.com/Cisco-Talos/clamav/blob/main/unit_tests/CMakeLists.txt#L291

But that doesn't explain why your tests are failing when the system-install of clamav is not present.

Can you please share the output of ctest -V? The -V will provide more clues as to why the tests failed.

ballapete commented 2 years ago

I've seen in a log file that DYLD_LIBRARY_PATH gets set, but not PATH.

In which directory should I invoke ctest?

ballapete commented 2 years ago

This is the output from the build directory in which the sub-directories with the built binaries reside:

UpdateCTestConfiguration  from :/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/DartConfiguration.tcl
Parse Config file:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/DartConfiguration.tcl
UpdateCTestConfiguration  from :/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/DartConfiguration.tcl
Parse Config file:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/DartConfiguration.tcl
Test project /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
micahsnyder commented 2 years ago

I've seen in a log file that DYLD_LIBRARY_PATH gets set, but not PATH.

In which directory should I invoke ctest?

make check is basically an alias for ctest, so run ctest -V in the same directory.

ballapete commented 2 years ago

This is what I did – after tests had run. So I presume you want a "pristine" build directory…

DEBUG: test phase started at Thu Feb  3 10:05:31 CET 2022
--->  Testing clamav-legacy
DEBUG: Executing proc-pre-org.macports.test-test-0
DEBUG: Executing org.macports.test (clamav-legacy)
DEBUG: Environment: 
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
DEVELOPER_DIR='/Library/Developer/CommandLineTools'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='12.0'
SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
Executing:  cd "/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build" && ctest -V 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build" && ctest -V 
UpdateCTestConfiguration  from :/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/DartConfiguration.tcl
Parse Config file:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/DartConfiguration.tcl
UpdateCTestConfiguration  from :/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/DartConfiguration.tcl
Parse Config file:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/DartConfiguration.tcl
Test project /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
    Start 1: libclamav

1: Test command: /opt/local/bin/pytest "-v" "libclamav_test.py"
1: Environment variables: 
1:  PYTHONTRACEMALLOC=1
1:  VERSION=0.104.2
1:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
1:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
1:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
1:  CK_FORK=no
1:  CK_DEFAULT_TIMEOUT=60
1:  LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar
1:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
1:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
1:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
1:  CHECK_CLAMAV=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamav
1:  CHECK_CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamd
1:  CHECK_FPU_ENDIAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_fpu_endian
1:  CLAMBC=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clambc/clambc
1:  CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamd/clamd
1:  CLAMDSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdscan/clamdscan
1:  CLAMDTOP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdtop/clamdtop
1:  CLAMSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan
1:  CLAMSUBMIT=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamsubmit/clamsubmit
1:  CLAMCONF=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamconf/clamconf
1:  FRESHCLAM=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/freshclam/freshclam
1:  SIGTOOL=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/sigtool/sigtool
1:  CLAMAV_MILTER=
1:  CLAMONACC=
1: Test timeout computed to be: 1500
1: ======================================================================= test session starts =======================================================================
1: platform darwin -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
1: cachedir: .pytest_cache
1: rootdir: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests
1: collecting ... collected 1 item
1: 
1: libclamav_test.py::TC::test_libclamav_00_unit_test FAILED                                                                                                   [100%]
1: 
1: ============================================================================ FAILURES =============================================================================
1: _________________________________________________________________ TC.test_libclamav_00_unit_test __________________________________________________________________
1: 
1: self = <libclamav_test.TC testMethod=test_libclamav_00_unit_test>
1: 
1:     def test_libclamav_00_unit_test(self):
1:         self.step_name('libclamav unit tests')
1:     
1:         # If no valgrind, valgrind nad valgrind args are empty strings
1:         command = '{valgrind} {valgrind_args} {check_clamav}'.format(
1:             valgrind=TC.valgrind, valgrind_args=TC.valgrind_args, check_clamav=TC.check_clamav
1:         )
1:         output = self.execute_command(command)
1:     
1: >       assert output.ec == 0  # success
1: E       AssertionError: assert 1 == 0
1: E         +1
1: E         -0
1: 
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/libclamav_test.py:47: AssertionError
1: ---------------------------------------------------------------------- Captured stdout call -----------------------------------------------------------------------
1: 
1: [INFO]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1: [INFO]:                           libclamav unit tests                          
1: [INFO]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1: [DEBUG]: Run command: export LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar &&   /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamav 
1: [DEBUG]: Exit code: 1
1: [DEBUG]: stdout: Using default test timeout; alter by setting 'T' env var (in seconds)
1: Running suite(s): cl_suite
1:  cli
1:  jsnorm
1:  str
1:  regex
1:  disasm
1:  unique
1:  matchers
1:  htmlnorm
1:  bytecode
1: 97%: Checks: 1175, Failures: 24, Errors: 0
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:191:F:cl_scan_api:test_cl_scandesc:2: cl_scandesc failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:191:F:cl_scan_api:test_cl_scandesc:3: cl_scandesc failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:218:F:cl_scan_api:test_cl_scandesc_allscan:2: cl_scandesc_allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:218:F:cl_scan_api:test_cl_scandesc_allscan:3: cl_scandesc_allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:246:F:cl_scan_api:test_cl_scanfile:2: cl_scanfile failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:246:F:cl_scan_api:test_cl_scanfile:3: cl_scanfile failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:273:F:cl_scan_api:test_cl_scanfile_allscan:2: cl_scanfile_allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:273:F:cl_scan_api:test_cl_scanfile_allscan:3: cl_scanfile_allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:354:F:cl_scan_api:test_cl_scandesc_callback:2: cl_scanfile failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:354:F:cl_scan_api:test_cl_scandesc_callback:3: cl_scanfile failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:382:F:cl_scan_api:test_cl_scandesc_callback_allscan:2: cl_scanfile_allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:382:F:cl_scan_api:test_cl_scandesc_callback_allscan:3: cl_scanfile_allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:300:F:cl_scan_api:test_cl_scanfile_callback:2: cl_scanfile_cb failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:300:F:cl_scan_api:test_cl_scanfile_callback:3: cl_scanfile_cb failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:328:F:cl_scan_api:test_cl_scanfile_callback_allscan:2: cl_scanfile_cb_allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:328:F:cl_scan_api:test_cl_scanfile_callback_allscan:3: cl_scanfile_cb_allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:568:F:cl_scan_api:test_cl_scanmap_callback_handle:2: cl_scanmap_callback failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:568:F:cl_scan_api:test_cl_scanmap_callback_handle:3: cl_scanmap_callback failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:600:F:cl_scan_api:test_cl_scanmap_callback_handle_allscan:2: cl_scanmap_callback allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:600:F:cl_scan_api:test_cl_scanmap_callback_handle_allscan:3: cl_scanmap_callback allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:637:F:cl_scan_api:test_cl_scanmap_callback_mem:2: cl_scanmap_callback failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:637:F:cl_scan_api:test_cl_scanmap_callback_mem:3: cl_scanmap_callback failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:675:F:cl_scan_api:test_cl_scanmap_callback_mem_allscan:2: cl_scanmap_callback allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:675:F:cl_scan_api:test_cl_scanmap_callback_mem_allscan:3: cl_scanmap_callback allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: NOTICE: Use the 'T' environment variable to adjust testcase timeout
1: 
1: [DEBUG]: stderr: 
1: 
1: -------------------------------------------------------------------- Captured stdout teardown ---------------------------------------------------------------------
1: 
1: [INFO]: Removed tmp directory: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/TC-bdthc3_x
1: ===================================================================== short test summary info =====================================================================
1: FAILED libclamav_test.py::TC::test_libclamav_00_unit_test - AssertionError: assert 1 == 0
1: ======================================================================== 1 failed in 8.71s ========================================================================
1/5 Test #1: libclamav ........................***Failed    9.21 sec
test 2
    Start 2: clamscan

2: Test command: /opt/local/bin/pytest "-v" "clamscan_test.py"
2: Environment variables: 
2:  PYTHONTRACEMALLOC=1
2:  VERSION=0.104.2
2:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
2:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
2:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
2:  CK_FORK=no
2:  CK_DEFAULT_TIMEOUT=60
2:  LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar
2:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
2:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
2:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
2:  CHECK_CLAMAV=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamav
2:  CHECK_CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamd
2:  CHECK_FPU_ENDIAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_fpu_endian
2:  CLAMBC=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clambc/clambc
2:  CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamd/clamd
2:  CLAMDSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdscan/clamdscan
2:  CLAMDTOP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdtop/clamdtop
2:  CLAMSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan
2:  CLAMSUBMIT=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamsubmit/clamsubmit
2:  CLAMCONF=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamconf/clamconf
2:  FRESHCLAM=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/freshclam/freshclam
2:  SIGTOOL=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/sigtool/sigtool
2:  CLAMAV_MILTER=
2:  CLAMONACC=
2: Test timeout computed to be: 1500
2: ======================================================================= test session starts =======================================================================
2: platform darwin -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
2: cachedir: .pytest_cache
2: rootdir: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests
2: collecting ... collected 11 items
2: 
2: clamscan_test.py::TC::test_clamscan_00_version PASSED                                                                                                       [  9%]
2: clamscan_test.py::TC::test_clamscan_01_all_testfiles FAILED                                                                                                 [ 18%]
2: clamscan_test.py::TC::test_clamscan_02_all_testfiles_ign2 FAILED                                                                                            [ 27%]
2: clamscan_test.py::TC::test_clamscan_03_phish_test_not_enabled PASSED                                                                                        [ 36%]
2: clamscan_test.py::TC::test_clamscan_04_phish_test_alert_phishing_ssl_alert_phishing_cloak PASSED                                                            [ 45%]
2: clamscan_test.py::TC::test_clamscan_05_icon PASSED                                                                                                          [ 54%]
2: clamscan_test.py::TC::test_clamscan_06_LDB_VI PASSED                                                                                                        [ 63%]
2: clamscan_test.py::TC::test_clamscan_07_yara_at_offset PASSED                                                                                                [ 72%]
2: clamscan_test.py::TC::test_clamscan_08_yara_in_range PASSED                                                                                                 [ 81%]
2: clamscan_test.py::TC::test_clamscan_09_xls_jpeg_png_extraction PASSED                                                                                       [ 90%]
2: clamscan_test.py::TC::test_clamscan_10_bytecode_pdf_hook PASSED                                                                                             [100%]
2: 
2: ============================================================================ FAILURES =============================================================================
2: ________________________________________________________________ TC.test_clamscan_01_all_testfiles ________________________________________________________________
2: 
2: self = <clamscan_test.TC testMethod=test_clamscan_01_all_testfiles>
2: 
2:     def test_clamscan_01_all_testfiles(self):
2:         self.step_name('Test that clamscan alerts on all test files')
2:     
2:         testfiles = ' '.join([str(testpath) for testpath in TC.testpaths])
2:         command = '{valgrind} {valgrind_args} {clamscan} -d {path_db} {testfiles}'.format(
2:             valgrind=TC.valgrind, valgrind_args=TC.valgrind_args, clamscan=TC.clamscan, path_db=TC.path_db / "clamav.hdb", testfiles=testfiles,
2:         )
2:         output = self.execute_command(command)
2:     
2:         assert output.ec == 1  # virus found
2:     
2:         expected_results = ['{}: ClamAV-Test-File.UNOFFICIAL FOUND'.format(testpath.name) for testpath in TC.testpaths]
2:         expected_results.append('Scanned files: {}'.format(len(TC.testpaths)))
2:         expected_results.append('Infected files: {}'.format(len(TC.testpaths)))
2: >       self.verify_output(output.out, expected=expected_results)
2: 
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/clamscan_test.py:101: 
2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/testcase.py:247: in verify_output
2:     log_checker.verify_expected_output(expected, text, order=order)
2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2: 
2: self = <testcase.LogChecker object at 0x10ad85e50>
2: expected_items = ['clam.impl.zip: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam.sis: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam-v3.rar: Clam...FOUND', 'clam-wwpack.exe: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam-upack.exe: ClamAV-Test-File.UNOFFICIAL FOUND', ...]
2: output = '/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clama... 6.91 MB (ratio 2.03:1)\nTime: 0.377 sec (0 m 0 s)\nStart Date: 2022:02:03 10:05:41\nEnd Date:   2022:02:03 10:05:42\n'
2: order = 1
2: 
2:     def verify_expected_output(self, expected_items, output, order=STRICT_ORDER):
2:         """Check presence of regex patterns in output string.
2:     
2:         :Parameters:
2:             - `expected_items`: a list of regex patterns that should be found
2:                                 in `output`.
2:             - `output`: a string with output to verify.
2:             - `order`: STRICT_ORDER, ANY_ORDER.
2:     
2:         :Exceptions:
2:             - `AssertionError`: is raised if:
2:                 1)`output` is not a string.
2:                 2) one of expected items was not found in `output`.
2:                 3) items were found in wrong order.
2:         """
2:         if output != None and not isinstance(output, str):
2:             output = output.decode("utf-8", "ignore")
2:         assert isinstance(output, str), "`output` must be a string."
2:         expected_items = self._prepare_value(expected_items)
2:     
2:         last_found_position = 0
2:         for item in expected_items:
2:             pattern = re.compile(item)
2:             match = pattern.search(output)
2: >           assert match, "Expected item `%s` not found in output:\n%s" % (
2:                 item,
2:                 self.__crop_output(output),
2:             )
2: E           AssertionError: Expected item `clam-v3.rar: ClamAV-Test-File.UNOFFICIAL FOUND` not found in output:
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.impl.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: OK
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: OK
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.pdf: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.newc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.html: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-leg
2: E           
2: E           ----- CROPPED -----
2: E                   ...
2: E           ----- CROPPED -----
2: E           
2: E           t_tests/input/clamav_hdb_scanfiles/clam.exe.szdd: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.chm: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.cab: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.odc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.7z: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe_and_mail.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.bz2: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           
2: E           ----------- SCAN SUMMARY -----------
2: E           Known viruses: 1
2: E           Engine version: 0.104.2
2: E           Scanned directories: 0
2: E           Scanned files: 49
2: E           Infected files: 47
2: E           Data scanned: 14.05 MB
2: E           Data read: 6.91 MB (ratio 2.03:1)
2: E           Time: 0.377 sec (0 m 0 s)
2: E           Start Date: 2022:02:03 10:05:41
2: E           End Date:   2022:02:03 10:05:42
2: 
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/testcase.py:793: AssertionError
2: ---------------------------------------------------------------------- Captured stdout call -----------------------------------------------------------------------
2: 
2: [INFO]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2: [INFO]:               Test that clamscan alerts on all test files               
2: [INFO]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2: [DEBUG]: Run command: export LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar &&   /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan -d /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/TC-8io4hc2g/database/clamav.hdb /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.impl.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.pdf /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.newc.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.html /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_ext.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tnef /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.uu /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-be.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-aspack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.base64 /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-yc.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.d64.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-nsis.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-petite.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.iso /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea06.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ppt /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.binhex /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea05.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-mew.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.arj /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.mail /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_cache_emax.tgz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.rtf /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bz2.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_ext.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_int.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-le.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ole.doc /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-fsg.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.szdd /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.chm /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.cab /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.odc.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.7z /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe_and_mail.tar.gz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.bz2 
2: [DEBUG]: Exit code: 1
2: [DEBUG]: stdout: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.impl.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: OK
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: OK
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.pdf: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.newc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.html: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tnef: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.uu: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-be.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-aspack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.base64: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-yc.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.d64.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-nsis.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-petite.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.iso: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea06.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ppt: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.binhex: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea05.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-mew.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.arj: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.mail: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_cache_emax.tgz: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.rtf: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bz2.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-le.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ole.doc: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-fsg.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.szdd: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.chm: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.cab: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.odc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.7z: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe_and_mail.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.bz2: ClamAV-Test-File.UNOFFICIAL FOUND
2: 
2: ----------- SCAN SUMMARY -----------
2: Known viruses: 1
2: Engine version: 0.104.2
2: Scanned directories: 0
2: Scanned files: 49
2: Infected files: 47
2: Data scanned: 14.05 MB
2: Data read: 6.91 MB (ratio 2.03:1)
2: Time: 0.377 sec (0 m 0 s)
2: Start Date: 2022:02:03 10:05:41
2: End Date:   2022:02:03 10:05:42
2: 
2: [DEBUG]: stderr: 
2: 
2: _____________________________________________________________ TC.test_clamscan_02_all_testfiles_ign2 ______________________________________________________________
2: 
2: self = <clamscan_test.TC testMethod=test_clamscan_02_all_testfiles_ign2>
2: 
2:     def test_clamscan_02_all_testfiles_ign2(self):
2:         self.step_name('Test that clamscan ignores ClamAV-Test-File alerts')
2:     
2:         testfiles = ' '.join([str(testpath) for testpath in TC.testpaths])
2:         command = '{valgrind} {valgrind_args} {clamscan} -d {path_db} -d {path_ign_db} {testfiles}'.format(
2:             valgrind=TC.valgrind, valgrind_args=TC.valgrind_args, clamscan=TC.clamscan, path_db=TC.path_db / "clamav.hdb", path_ign_db=TC.path_db / "clamav.ign2", testfiles=testfiles,
2:         )
2:         output = self.execute_command(command)
2:     
2:         assert output.ec == 1  # virus found
2:     
2:         expected_results = ['{}: ClamAV-Test-File.UNOFFICIAL FOUND'.format(testpath.name) for testpath in TC.testpaths]
2:         expected_results.append('Scanned files: {}'.format(len(TC.testpaths)))
2:         expected_results.append('Infected files: {}'.format(len(TC.testpaths)))
2: >       self.verify_output(output.out, expected=expected_results)
2: 
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/clamscan_test.py:117: 
2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/testcase.py:247: in verify_output
2:     log_checker.verify_expected_output(expected, text, order=order)
2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
2: 
2: self = <testcase.LogChecker object at 0x10ae40af0>
2: expected_items = ['clam.impl.zip: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam.sis: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam-v3.rar: Clam...FOUND', 'clam-wwpack.exe: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam-upack.exe: ClamAV-Test-File.UNOFFICIAL FOUND', ...]
2: output = '/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clama... 6.91 MB (ratio 2.03:1)\nTime: 0.375 sec (0 m 0 s)\nStart Date: 2022:02:03 10:05:42\nEnd Date:   2022:02:03 10:05:42\n'
2: order = 1
2: 
2:     def verify_expected_output(self, expected_items, output, order=STRICT_ORDER):
2:         """Check presence of regex patterns in output string.
2:     
2:         :Parameters:
2:             - `expected_items`: a list of regex patterns that should be found
2:                                 in `output`.
2:             - `output`: a string with output to verify.
2:             - `order`: STRICT_ORDER, ANY_ORDER.
2:     
2:         :Exceptions:
2:             - `AssertionError`: is raised if:
2:                 1)`output` is not a string.
2:                 2) one of expected items was not found in `output`.
2:                 3) items were found in wrong order.
2:         """
2:         if output != None and not isinstance(output, str):
2:             output = output.decode("utf-8", "ignore")
2:         assert isinstance(output, str), "`output` must be a string."
2:         expected_items = self._prepare_value(expected_items)
2:     
2:         last_found_position = 0
2:         for item in expected_items:
2:             pattern = re.compile(item)
2:             match = pattern.search(output)
2: >           assert match, "Expected item `%s` not found in output:\n%s" % (
2:                 item,
2:                 self.__crop_output(output),
2:             )
2: E           AssertionError: Expected item `clam-v3.rar: ClamAV-Test-File.UNOFFICIAL FOUND` not found in output:
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.impl.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: OK
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: OK
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.pdf: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.newc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.html: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-leg
2: E           
2: E           ----- CROPPED -----
2: E                   ...
2: E           ----- CROPPED -----
2: E           
2: E           t_tests/input/clamav_hdb_scanfiles/clam.exe.szdd: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.chm: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.cab: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.odc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.7z: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe_and_mail.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.bz2: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           
2: E           ----------- SCAN SUMMARY -----------
2: E           Known viruses: 1
2: E           Engine version: 0.104.2
2: E           Scanned directories: 0
2: E           Scanned files: 49
2: E           Infected files: 47
2: E           Data scanned: 14.05 MB
2: E           Data read: 6.91 MB (ratio 2.03:1)
2: E           Time: 0.375 sec (0 m 0 s)
2: E           Start Date: 2022:02:03 10:05:42
2: E           End Date:   2022:02:03 10:05:42
2: 
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/testcase.py:793: AssertionError
2: ---------------------------------------------------------------------- Captured stdout call -----------------------------------------------------------------------
2: 
2: [INFO]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2: [INFO]:            Test that clamscan ignores ClamAV-Test-File alerts           
2: [INFO]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2: [DEBUG]: Run command: export LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar &&   /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan -d /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/TC-8io4hc2g/database/clamav.hdb -d /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/TC-8io4hc2g/database/clamav.ign2 /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.impl.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.pdf /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.newc.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.html /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_ext.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tnef /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.uu /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-be.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-aspack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.base64 /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-yc.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.d64.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-nsis.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-petite.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.iso /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea06.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ppt /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.binhex /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea05.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-mew.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.arj /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.mail /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_cache_emax.tgz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.rtf /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bz2.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_ext.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_int.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-le.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ole.doc /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-fsg.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.szdd /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.chm /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.cab /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.odc.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.7z /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe_and_mail.tar.gz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.bz2 
2: [DEBUG]: Exit code: 1
2: [DEBUG]: stdout: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.impl.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: OK
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: OK
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.pdf: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.newc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.html: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tnef: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.uu: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-be.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-aspack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.base64: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-yc.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.d64.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-nsis.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-petite.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.iso: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea06.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ppt: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.binhex: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea05.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-mew.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.arj: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.mail: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_cache_emax.tgz: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.rtf: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bz2.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-le.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ole.doc: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-fsg.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.szdd: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.chm: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.cab: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.odc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.7z: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe_and_mail.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.bz2: ClamAV-Test-File.UNOFFICIAL FOUND
2: 
2: ----------- SCAN SUMMARY -----------
2: Known viruses: 1
2: Engine version: 0.104.2
2: Scanned directories: 0
2: Scanned files: 49
2: Infected files: 47
2: Data scanned: 14.05 MB
2: Data read: 6.91 MB (ratio 2.03:1)
2: Time: 0.375 sec (0 m 0 s)
2: Start Date: 2022:02:03 10:05:42
2: End Date:   2022:02:03 10:05:42
2: 
2: [DEBUG]: stderr: 
2: 
2: ===================================================================== short test summary info =====================================================================
2: FAILED clamscan_test.py::TC::test_clamscan_01_all_testfiles - AssertionError: Expected item `clam-v3.rar: ClamAV-Test-File.UNOFFICIAL FOUND` not found in output:
2: FAILED clamscan_test.py::TC::test_clamscan_02_all_testfiles_ign2 - AssertionError: Expected item `clam-v3.rar: ClamAV-Test-File.UNOFFICIAL FOUND` not found in o...
2: =================================================================== 2 failed, 9 passed in 3.47s ===================================================================
2/5 Test #2: clamscan .........................***Failed    3.99 sec
test 3
    Start 3: clamd

3: Test command: /opt/local/bin/pytest "-v" "clamd_test.py"
3: Environment variables: 
3:  PYTHONTRACEMALLOC=1
3:  VERSION=0.104.2
3:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
3:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
3:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
3:  CK_FORK=no
3:  CK_DEFAULT_TIMEOUT=60
3:  LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar
3:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
3:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
3:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
3:  CHECK_CLAMAV=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamav
3:  CHECK_CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamd
3:  CHECK_FPU_ENDIAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_fpu_endian
3:  CLAMBC=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clambc/clambc
3:  CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamd/clamd
3:  CLAMDSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdscan/clamdscan
3:  CLAMDTOP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdtop/clamdtop
3:  CLAMSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan
3:  CLAMSUBMIT=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamsubmit/clamsubmit
3:  CLAMCONF=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamconf/clamconf
3:  FRESHCLAM=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/freshclam/freshclam
3:  SIGTOOL=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/sigtool/sigtool
3:  CLAMAV_MILTER=
3:  CLAMONACC=
3: Test timeout computed to be: 1500
3: ======================================================================= test session starts =======================================================================
3: platform darwin -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
3: cachedir: .pytest_cache
3: rootdir: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests
3: collecting ... collected 10 items
3: 
3: clamd_test.py::TC::test_clamd_00_version PASSED                                                                                                             [ 10%]
3: clamd_test.py::TC::test_clamd_01_ping_pong PASSED                                                                                                           [ 20%]
3: clamd_test.py::TC::test_clamd_02_clamdscan_version PASSED                                                                                                   [ 30%]
3: clamd_test.py::TC::test_clamd_03_reload PASSED                                                                                                              [ 40%]
3: clamd_test.py::TC::test_clamd_04_all_testfiles FAILED                                                                                                       [ 50%]
3: clamd_test.py::TC::test_clamd_05_check_clamd PASSED                                                                                                         [ 60%]
3: clamd_test.py::TC::test_clamd_06_HeuristicScanPrecedence_off PASSED                                                                                         [ 70%]
3: clamd_test.py::TC::test_clamd_07_HeuristicScanPrecedence_on PASSED                                                                                          [ 80%]
3: clamd_test.py::TC::test_clamd_08_VirusEvent PASSED                                                                                                          [ 90%]
3: clamd_test.py::TC::test_clamd_09_clamdscan_ExcludePath PASSED                                                                                               [100%]
3: 
3: ============================================================================ FAILURES =============================================================================
3: _________________________________________________________________ TC.test_clamd_04_all_testfiles __________________________________________________________________
3: 
3: self = <clamd_test.TC testMethod=test_clamd_04_all_testfiles>
3: 
3:     def test_clamd_04_all_testfiles(self):
3:         '''
3:         Verify that clamd + clamdscan detect each of our <build>/unit_tests/input/clamav_hdb_scanfiles/clam* test files.
3:         '''
3:         self.step_name('Testing clamd + clamdscan scan of all `test` files')
3:     
3:         self.start_clamd()
3:     
3:         poll = self.proc.poll()
3:         assert poll == None  # subprocess is alive if poll() returns None
3:     
3:         testfiles = ' '.join([str(testpath) for testpath in TC.testpaths])
3:         expected_results = ['{}: ClamAV-Test-File.UNOFFICIAL FOUND'.format(testpath.name) for testpath in TC.testpaths]
3:         expected_results.append('Infected files: {}'.format(len(TC.testpaths)))
3:     
3: >       self.run_clamdscan(testfiles,
3:             expected_ec=1, expected_out=expected_results)
3: 
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/clamd_test.py:363: 
3: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/clamd_test.py:196: in run_clamdscan
3:     self.verify_output(output.out, expected=expected_out, unexpected=unexpected_out)
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/testcase.py:247: in verify_output
3:     log_checker.verify_expected_output(expected, text, order=order)
3: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
3: 
3: self = <testcase.LogChecker object at 0x105d8d040>
3: expected_items = ['clam.impl.zip: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam.sis: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam-v3.rar: Clam...FOUND', 'clam-wwpack.exe: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam-upack.exe: ClamAV-Test-File.UNOFFICIAL FOUND', ...]
3: output = '/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clama...---\nInfected files: 47\nTime: 0.371 sec (0 m 0 s)\nStart Date: 2022:02:03 10:05:48\nEnd Date:   2022:02:03 10:05:48\n'
3: order = 1
3: 
3:     def verify_expected_output(self, expected_items, output, order=STRICT_ORDER):
3:         """Check presence of regex patterns in output string.
3:     
3:         :Parameters:
3:             - `expected_items`: a list of regex patterns that should be found
3:                                 in `output`.
3:             - `output`: a string with output to verify.
3:             - `order`: STRICT_ORDER, ANY_ORDER.
3:     
3:         :Exceptions:
3:             - `AssertionError`: is raised if:
3:                 1)`output` is not a string.
3:                 2) one of expected items was not found in `output`.
3:                 3) items were found in wrong order.
3:         """
3:         if output != None and not isinstance(output, str):
3:             output = output.decode("utf-8", "ignore")
3:         assert isinstance(output, str), "`output` must be a string."
3:         expected_items = self._prepare_value(expected_items)
3:     
3:         last_found_position = 0
3:         for item in expected_items:
3:             pattern = re.compile(item)
3:             match = pattern.search(output)
3: >           assert match, "Expected item `%s` not found in output:\n%s" % (
3:                 item,
3:                 self.__crop_output(output),
3:             )
3: E           AssertionError: Expected item `clam-v3.rar: ClamAV-Test-File.UNOFFICIAL FOUND` not found in output:
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.impl.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: OK
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: OK
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.pdf: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.newc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.html: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-leg
3: E           
3: E           ----- CROPPED -----
3: E                   ...
3: E           ----- CROPPED -----
3: E           
3: E           g.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.szdd: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.chm: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.cab: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.odc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.7z: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe_and_mail.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.bz2: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           
3: E           ----------- SCAN SUMMARY -----------
3: E           Infected files: 47
3: E           Time: 0.371 sec (0 m 0 s)
3: E           Start Date: 2022:02:03 10:05:48
3: E           End Date:   2022:02:03 10:05:48
3: 
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/testcase.py:793: AssertionError
3: ---------------------------------------------------------------------- Captured stdout call -----------------------------------------------------------------------
3: 
3: [INFO]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3: [INFO]:            Testing clamd + clamdscan scan of all `test` files           
3: [INFO]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3: [INFO]: Starting clamd:   /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamd/clamd --config-file=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/TC-jcm3_eux/clamd-test.conf
3: [DEBUG]: Run command: export LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar && /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdscan/clamdscan --ping 5 --wait /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.impl.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.pdf /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.newc.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.html /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_ext.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tnef /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.uu /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-be.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-aspack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.base64 /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-yc.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.d64.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-nsis.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-petite.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.iso /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea06.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ppt /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.binhex /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea05.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-mew.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.arj /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.mail /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_cache_emax.tgz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.rtf /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bz2.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_ext.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_int.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-le.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ole.doc /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-fsg.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.szdd /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.chm /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.cab /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.odc.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.7z /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe_and_mail.tar.gz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.bz2 -c /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/TC-jcm3_eux/clamd-test.conf 
3: Thu Feb  3 10:05:48 2022 -> Limits: Global time limit set to 120000 milliseconds.
3: Thu Feb  3 10:05:48 2022 -> Limits: Global size limit set to 104857600 bytes.
3: Thu Feb  3 10:05:48 2022 -> Limits: File size limit set to 26214400 bytes.
3: Thu Feb  3 10:05:48 2022 -> Limits: Recursion level limit set to 17.
3: Thu Feb  3 10:05:48 2022 -> Limits: Files limit set to 10000.
3: Thu Feb  3 10:05:48 2022 -> *Limits: Core-dump limit is 9223372036854775807.
3: Thu Feb  3 10:05:48 2022 -> Limits: MaxEmbeddedPE limit set to 10485760 bytes.
3: Thu Feb  3 10:05:48 2022 -> Limits: MaxHTMLNormalize limit set to 10485760 bytes.
3: Thu Feb  3 10:05:48 2022 -> Limits: MaxHTMLNoTags limit set to 2097152 bytes.
3: Thu Feb  3 10:05:48 2022 -> Limits: MaxScriptNormalize limit set to 5242880 bytes.
3: Thu Feb  3 10:05:48 2022 -> Limits: MaxZipTypeRcg limit set to 1048576 bytes.
3: Thu Feb  3 10:05:48 2022 -> Limits: MaxPartitions limit set to 50.
3: Thu Feb  3 10:05:48 2022 -> Limits: MaxIconsPE limit set to 100.
3: Thu Feb  3 10:05:48 2022 -> Limits: MaxRecHWP3 limit set to 16.
3: Thu Feb  3 10:05:48 2022 -> Limits: PCREMatchLimit limit set to 100000.
3: Thu Feb  3 10:05:48 2022 -> Limits: PCRERecMatchLimit limit set to 2000.
3: Thu Feb  3 10:05:48 2022 -> Limits: PCREMaxFileSize limit set to 26214400.
3: Thu Feb  3 10:05:48 2022 -> Archive support enabled.
3: Thu Feb  3 10:05:48 2022 -> AlertExceedsMax heuristic detection disabled.
3: Thu Feb  3 10:05:48 2022 -> Heuristic alerts enabled.
3: Thu Feb  3 10:05:48 2022 -> Portable Executable support enabled.
3: Thu Feb  3 10:05:48 2022 -> ELF support enabled.
3: Thu Feb  3 10:05:48 2022 -> Mail files support enabled.
3: Thu Feb  3 10:05:48 2022 -> OLE2 support enabled.
3: Thu Feb  3 10:05:48 2022 -> PDF support enabled.
3: Thu Feb  3 10:05:48 2022 -> SWF support enabled.
3: Thu Feb  3 10:05:48 2022 -> HTML support enabled.
3: Thu Feb  3 10:05:48 2022 -> XMLDOCS support enabled.
3: Thu Feb  3 10:05:48 2022 -> HWP3 support enabled.
3: Thu Feb  3 10:05:48 2022 -> Self checking every 600 seconds.
3: Thu Feb  3 10:05:48 2022 -> *Listening daemon: PID: 38426
3: Thu Feb  3 10:05:48 2022 -> *MaxQueue set to: 800
3: Thu Feb  3 10:05:48 2022 -> Set stacksize to 1048576
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.impl.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: OK
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: OK
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.pdf: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.newc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.html: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tnef: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.uu: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-be.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-aspack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.base64: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-yc.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.d64.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-nsis.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-petite.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.iso: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea06.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ppt: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.binhex: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea05.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-mew.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.arj: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.mail: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_cache_emax.tgz: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.rtf: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bz2.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-le.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ole.doc: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-fsg.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.szdd: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.chm: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.cab: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.odc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.7z: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
3: LibClamAV info: Suspicious link found!
3: LibClamAV info:   Real URL:    http://fake.example.com
3: LibClamAV info:   Display URL: ebay.de
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe_and_mail.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Thu Feb  3 10:05:48 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.bz2: ClamAV-Test-File.UNOFFICIAL FOUND
3: [DEBUG]: Exit code: 1
3: [DEBUG]: stdout: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.impl.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: OK
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: OK
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.pdf: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.newc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.html: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tnef: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.uu: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-be.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-aspack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.base64: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-yc.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.d64.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-nsis.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-petite.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.iso: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea06.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ppt: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.binhex: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea05.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-mew.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.arj: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.mail: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_cache_emax.tgz: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.rtf: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bz2.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-le.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ole.doc: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-fsg.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.szdd: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.chm: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.cab: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.odc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.7z: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe_and_mail.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.bz2: ClamAV-Test-File.UNOFFICIAL FOUND
3: 
3: ----------- SCAN SUMMARY -----------
3: Infected files: 47
3: Time: 0.371 sec (0 m 0 s)
3: Start Date: 2022:02:03 10:05:48
3: End Date:   2022:02:03 10:05:48
3: 
3: [DEBUG]: stderr: 
3: 
3: Thu Feb  3 10:05:48 2022 -> *Waiting for all threads to finish
3: Thu Feb  3 10:05:48 2022 -> *Shutting down the main sockets.
3: Thu Feb  3 10:05:48 2022 -> Pid file removed.
3: Thu Feb  3 10:05:48 2022 -> --- Stopped at Thu Feb  3 10:05:48 2022
3: Thu Feb  3 10:05:48 2022 -> *Closing the main sockets.
3: Thu Feb  3 10:05:48 2022 -> Socket file removed.
3: ===================================================================== short test summary info =====================================================================
3: FAILED clamd_test.py::TC::test_clamd_04_all_testfiles - AssertionError: Expected item `clam-v3.rar: ClamAV-Test-File.UNOFFICIAL FOUND` not found in output:
3: ================================================================== 1 failed, 9 passed in 10.51s ===================================================================
3/5 Test #3: clamd ............................***Failed   11.02 sec
test 4
    Start 4: freshclam

4: Test command: /opt/local/bin/pytest "-v" "freshclam_test.py"
4: Environment variables: 
4:  PYTHONTRACEMALLOC=1
4:  VERSION=0.104.2
4:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
4:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
4:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
4:  CK_FORK=no
4:  CK_DEFAULT_TIMEOUT=60
4:  LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar
4:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
4:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
4:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
4:  CHECK_CLAMAV=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamav
4:  CHECK_CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamd
4:  CHECK_FPU_ENDIAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_fpu_endian
4:  CLAMBC=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clambc/clambc
4:  CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamd/clamd
4:  CLAMDSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdscan/clamdscan
4:  CLAMDTOP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdtop/clamdtop
4:  CLAMSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan
4:  CLAMSUBMIT=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamsubmit/clamsubmit
4:  CLAMCONF=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamconf/clamconf
4:  FRESHCLAM=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/freshclam/freshclam
4:  SIGTOOL=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/sigtool/sigtool
4:  CLAMAV_MILTER=
4:  CLAMONACC=
4: Test timeout computed to be: 1500
4: ======================================================================= test session starts =======================================================================
4: platform darwin -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
4: cachedir: .pytest_cache
4: rootdir: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests
4: collecting ... collected 10 items
4: 
4: freshclam_test.py::TC::test_freshclam_00_version PASSED                                                                                                     [ 10%]
4: freshclam_test.py::TC::test_freshclam_01_file_copy PASSED                                                                                                   [ 20%]
4: freshclam_test.py::TC::test_freshclam_02_http_403 PASSED                                                                                                    [ 30%]
4: freshclam_test.py::TC::test_freshclam_03_http_403_daemonized PASSED                                                                                         [ 40%]
4: freshclam_test.py::TC::test_freshclam_04_http_429 PASSED                                                                                                    [ 50%]
4: freshclam_test.py::TC::test_freshclam_05_cdiff_update PASSED                                                                                                [ 60%]
4: freshclam_test.py::TC::test_freshclam_05_cdiff_update_UNC SKIPPED (This test is specific to Windows.)                                                       [ 70%]
4: freshclam_test.py::TC::test_freshclam_06_cdiff_partial_minus_1 PASSED                                                                                       [ 80%]
4: freshclam_test.py::TC::test_freshclam_07_cdiff_partial_minus_2 PASSED                                                                                       [ 90%]
4: freshclam_test.py::TC::test_freshclam_07_no_cdiff_out_of_date_cvd PASSED                                                                                    [100%]
4: 
4: ================================================================== 9 passed, 1 skipped in 36.44s ==================================================================
4/5 Test #4: freshclam ........................   Passed   36.93 sec
test 5
    Start 5: sigtool

5: Test command: /opt/local/bin/pytest "-v" "sigtool_test.py"
5: Environment variables: 
5:  PYTHONTRACEMALLOC=1
5:  VERSION=0.104.2
5:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
5:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
5:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
5:  CK_FORK=no
5:  CK_DEFAULT_TIMEOUT=60
5:  LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar
5:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
5:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
5:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
5:  CHECK_CLAMAV=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamav
5:  CHECK_CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamd
5:  CHECK_FPU_ENDIAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_fpu_endian
5:  CLAMBC=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clambc/clambc
5:  CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamd/clamd
5:  CLAMDSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdscan/clamdscan
5:  CLAMDTOP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdtop/clamdtop
5:  CLAMSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan
5:  CLAMSUBMIT=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamsubmit/clamsubmit
5:  CLAMCONF=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamconf/clamconf
5:  FRESHCLAM=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/freshclam/freshclam
5:  SIGTOOL=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/sigtool/sigtool
5:  CLAMAV_MILTER=
5:  CLAMONACC=
5: Test timeout computed to be: 1500
5: ======================================================================= test session starts =======================================================================
5: platform darwin -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
5: cachedir: .pytest_cache
5: rootdir: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests
5: collecting ... collected 1 item
5: 
5: sigtool_test.py::TC::test_sigtool_00_version PASSED                                                                                                         [100%]
5: 
5: ======================================================================== 1 passed in 0.28s ========================================================================
5/5 Test #5: sigtool ..........................   Passed    0.77 sec

40% tests passed, 3 tests failed out of 5

Total Test time (real) =  61.92 sec

The following tests FAILED:
      1 - libclamav (Failed)
      2 - clamscan (Failed)
      3 - clamd (Failed)
Errors while running CTest
Output from these tests are in: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
Command failed:  cd "/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build" && ctest -V 
Exit code: 8
Error: Failed to test clamav-legacy: command execution failed
DEBUG: Error code: CHILDSTATUS 38324 8
DEBUG: Backtrace: command execution failed
    while executing
"system {*}$notty {*}$callback {*}$nice $fullcmdstring"
    invoked from within
"command_exec -callback portprogress::target_progress_callback test"
    (procedure "porttest::test_main" line 4)
    invoked from within
"$procedure $targetname"
Error: See /opt/local/var/macports/logs/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port clamav-legacy failed
152.083u 43.258s 2:43.76 119.2% 0+0k 0+0io 2089pf+0w

Compilation exited abnormally with code 1 at Thu Feb  3 10:06:33

At this time I had the installed version of ClamAV deactivated.

ballapete commented 2 years ago

This is the output when the installed version of ClamAV (0.104.2) is activated:

DEBUG: test phase started at Thu Feb  3 10:18:53 CET 2022
--->  Testing clamav-legacy
DEBUG: Executing proc-pre-org.macports.test-test-0
DEBUG: Executing org.macports.test (clamav-legacy)
DEBUG: Environment: 
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
DEVELOPER_DIR='/Library/Developer/CommandLineTools'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='12.0'
SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
Executing:  cd "/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build" && ctest -V 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build" && ctest -V 
UpdateCTestConfiguration  from :/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/DartConfiguration.tcl
Parse Config file:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/DartConfiguration.tcl
UpdateCTestConfiguration  from :/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/DartConfiguration.tcl
Parse Config file:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/DartConfiguration.tcl
Test project /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
    Start 1: libclamav

1: Test command: /opt/local/bin/pytest "-v" "libclamav_test.py"
1: Environment variables: 
1:  PYTHONTRACEMALLOC=1
1:  VERSION=0.104.2
1:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
1:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
1:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
1:  CK_FORK=no
1:  CK_DEFAULT_TIMEOUT=60
1:  LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar
1:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
1:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
1:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
1:  CHECK_CLAMAV=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamav
1:  CHECK_CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamd
1:  CHECK_FPU_ENDIAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_fpu_endian
1:  CLAMBC=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clambc/clambc
1:  CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamd/clamd
1:  CLAMDSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdscan/clamdscan
1:  CLAMDTOP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdtop/clamdtop
1:  CLAMSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan
1:  CLAMSUBMIT=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamsubmit/clamsubmit
1:  CLAMCONF=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamconf/clamconf
1:  FRESHCLAM=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/freshclam/freshclam
1:  SIGTOOL=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/sigtool/sigtool
1:  CLAMAV_MILTER=
1:  CLAMONACC=
1: Test timeout computed to be: 1500
1: ======================================================================= test session starts =======================================================================
1: platform darwin -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
1: cachedir: .pytest_cache
1: rootdir: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests
1: collecting ... collected 1 item
1: 
1: libclamav_test.py::TC::test_libclamav_00_unit_test PASSED                                                                                                   [100%]
1: 
1: ======================================================================== 1 passed in 9.41s ========================================================================
1/5 Test #1: libclamav ........................   Passed    9.90 sec
test 2
    Start 2: clamscan

2: Test command: /opt/local/bin/pytest "-v" "clamscan_test.py"
2: Environment variables: 
2:  PYTHONTRACEMALLOC=1
2:  VERSION=0.104.2
2:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
2:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
2:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
2:  CK_FORK=no
2:  CK_DEFAULT_TIMEOUT=60
2:  LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar
2:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
2:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
2:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
2:  CHECK_CLAMAV=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamav
2:  CHECK_CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamd
2:  CHECK_FPU_ENDIAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_fpu_endian
2:  CLAMBC=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clambc/clambc
2:  CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamd/clamd
2:  CLAMDSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdscan/clamdscan
2:  CLAMDTOP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdtop/clamdtop
2:  CLAMSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan
2:  CLAMSUBMIT=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamsubmit/clamsubmit
2:  CLAMCONF=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamconf/clamconf
2:  FRESHCLAM=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/freshclam/freshclam
2:  SIGTOOL=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/sigtool/sigtool
2:  CLAMAV_MILTER=
2:  CLAMONACC=
2: Test timeout computed to be: 1500
2: ======================================================================= test session starts =======================================================================
2: platform darwin -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
2: cachedir: .pytest_cache
2: rootdir: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests
2: collecting ... collected 11 items
2: 
2: clamscan_test.py::TC::test_clamscan_00_version PASSED                                                                                                       [  9%]
2: clamscan_test.py::TC::test_clamscan_01_all_testfiles PASSED                                                                                                 [ 18%]
2: clamscan_test.py::TC::test_clamscan_02_all_testfiles_ign2 PASSED                                                                                            [ 27%]
2: clamscan_test.py::TC::test_clamscan_03_phish_test_not_enabled PASSED                                                                                        [ 36%]
2: clamscan_test.py::TC::test_clamscan_04_phish_test_alert_phishing_ssl_alert_phishing_cloak PASSED                                                            [ 45%]
2: clamscan_test.py::TC::test_clamscan_05_icon PASSED                                                                                                          [ 54%]
2: clamscan_test.py::TC::test_clamscan_06_LDB_VI PASSED                                                                                                        [ 63%]
2: clamscan_test.py::TC::test_clamscan_07_yara_at_offset PASSED                                                                                                [ 72%]
2: clamscan_test.py::TC::test_clamscan_08_yara_in_range PASSED                                                                                                 [ 81%]
2: clamscan_test.py::TC::test_clamscan_09_xls_jpeg_png_extraction PASSED                                                                                       [ 90%]
2: clamscan_test.py::TC::test_clamscan_10_bytecode_pdf_hook PASSED                                                                                             [100%]
2: 
2: ======================================================================= 11 passed in 3.22s ========================================================================
2/5 Test #2: clamscan .........................   Passed    3.70 sec
test 3
    Start 3: clamd

3: Test command: /opt/local/bin/pytest "-v" "clamd_test.py"
3: Environment variables: 
3:  PYTHONTRACEMALLOC=1
3:  VERSION=0.104.2
3:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
3:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
3:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
3:  CK_FORK=no
3:  CK_DEFAULT_TIMEOUT=60
3:  LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar
3:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
3:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
3:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
3:  CHECK_CLAMAV=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamav
3:  CHECK_CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamd
3:  CHECK_FPU_ENDIAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_fpu_endian
3:  CLAMBC=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clambc/clambc
3:  CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamd/clamd
3:  CLAMDSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdscan/clamdscan
3:  CLAMDTOP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdtop/clamdtop
3:  CLAMSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan
3:  CLAMSUBMIT=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamsubmit/clamsubmit
3:  CLAMCONF=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamconf/clamconf
3:  FRESHCLAM=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/freshclam/freshclam
3:  SIGTOOL=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/sigtool/sigtool
3:  CLAMAV_MILTER=
3:  CLAMONACC=
3: Test timeout computed to be: 1500
3: ======================================================================= test session starts =======================================================================
3: platform darwin -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
3: cachedir: .pytest_cache
3: rootdir: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests
3: collecting ... collected 10 items
3: 
3: clamd_test.py::TC::test_clamd_00_version PASSED                                                                                                             [ 10%]
3: clamd_test.py::TC::test_clamd_01_ping_pong PASSED                                                                                                           [ 20%]
3: clamd_test.py::TC::test_clamd_02_clamdscan_version PASSED                                                                                                   [ 30%]
3: clamd_test.py::TC::test_clamd_03_reload PASSED                                                                                                              [ 40%]
3: clamd_test.py::TC::test_clamd_04_all_testfiles PASSED                                                                                                       [ 50%]
3: clamd_test.py::TC::test_clamd_05_check_clamd PASSED                                                                                                         [ 60%]
3: clamd_test.py::TC::test_clamd_06_HeuristicScanPrecedence_off PASSED                                                                                         [ 70%]
3: clamd_test.py::TC::test_clamd_07_HeuristicScanPrecedence_on PASSED                                                                                          [ 80%]
3: clamd_test.py::TC::test_clamd_08_VirusEvent PASSED                                                                                                          [ 90%]
3: clamd_test.py::TC::test_clamd_09_clamdscan_ExcludePath PASSED                                                                                               [100%]
3: 
3: ======================================================================= 10 passed in 12.07s =======================================================================
3/5 Test #3: clamd ............................   Passed   12.59 sec
test 4
    Start 4: freshclam

4: Test command: /opt/local/bin/pytest "-v" "freshclam_test.py"
4: Environment variables: 
4:  PYTHONTRACEMALLOC=1
4:  VERSION=0.104.2
4:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
4:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
4:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
4:  CK_FORK=no
4:  CK_DEFAULT_TIMEOUT=60
4:  LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar
4:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
4:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
4:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
4:  CHECK_CLAMAV=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamav
4:  CHECK_CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamd
4:  CHECK_FPU_ENDIAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_fpu_endian
4:  CLAMBC=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clambc/clambc
4:  CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamd/clamd
4:  CLAMDSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdscan/clamdscan
4:  CLAMDTOP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdtop/clamdtop
4:  CLAMSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan
4:  CLAMSUBMIT=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamsubmit/clamsubmit
4:  CLAMCONF=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamconf/clamconf
4:  FRESHCLAM=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/freshclam/freshclam
4:  SIGTOOL=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/sigtool/sigtool
4:  CLAMAV_MILTER=
4:  CLAMONACC=
4: Test timeout computed to be: 1500
4: ======================================================================= test session starts =======================================================================
4: platform darwin -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
4: cachedir: .pytest_cache
4: rootdir: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests
4: collecting ... collected 10 items
4: 
4: freshclam_test.py::TC::test_freshclam_00_version PASSED                                                                                                     [ 10%]
4: freshclam_test.py::TC::test_freshclam_01_file_copy PASSED                                                                                                   [ 20%]
4: freshclam_test.py::TC::test_freshclam_02_http_403 PASSED                                                                                                    [ 30%]
4: freshclam_test.py::TC::test_freshclam_03_http_403_daemonized PASSED                                                                                         [ 40%]
4: freshclam_test.py::TC::test_freshclam_04_http_429 PASSED                                                                                                    [ 50%]
4: freshclam_test.py::TC::test_freshclam_05_cdiff_update PASSED                                                                                                [ 60%]
4: freshclam_test.py::TC::test_freshclam_05_cdiff_update_UNC SKIPPED (This test is specific to Windows.)                                                       [ 70%]
4: freshclam_test.py::TC::test_freshclam_06_cdiff_partial_minus_1 PASSED                                                                                       [ 80%]
4: freshclam_test.py::TC::test_freshclam_07_cdiff_partial_minus_2 PASSED                                                                                       [ 90%]
4: freshclam_test.py::TC::test_freshclam_07_no_cdiff_out_of_date_cvd PASSED                                                                                    [100%]
4: 
4: ================================================================== 9 passed, 1 skipped in 36.43s ==================================================================
4/5 Test #4: freshclam ........................   Passed   36.89 sec
test 5
    Start 5: sigtool

5: Test command: /opt/local/bin/pytest "-v" "sigtool_test.py"
5: Environment variables: 
5:  PYTHONTRACEMALLOC=1
5:  VERSION=0.104.2
5:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
5:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
5:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
5:  CK_FORK=no
5:  CK_DEFAULT_TIMEOUT=60
5:  LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar
5:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
5:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
5:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
5:  CHECK_CLAMAV=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamav
5:  CHECK_CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamd
5:  CHECK_FPU_ENDIAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_fpu_endian
5:  CLAMBC=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clambc/clambc
5:  CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamd/clamd
5:  CLAMDSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdscan/clamdscan
5:  CLAMDTOP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdtop/clamdtop
5:  CLAMSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan
5:  CLAMSUBMIT=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamsubmit/clamsubmit
5:  CLAMCONF=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamconf/clamconf
5:  FRESHCLAM=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/freshclam/freshclam
5:  SIGTOOL=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/sigtool/sigtool
5:  CLAMAV_MILTER=
5:  CLAMONACC=
5: Test timeout computed to be: 1500
5: ======================================================================= test session starts =======================================================================
5: platform darwin -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
5: cachedir: .pytest_cache
5: rootdir: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests
5: collecting ... collected 1 item
5: 
5: sigtool_test.py::TC::test_sigtool_00_version PASSED                                                                                                         [100%]
5: 
5: ======================================================================== 1 passed in 0.36s ========================================================================
5/5 Test #5: sigtool ..........................   Passed    0.80 sec

100% tests passed, 0 tests failed out of 5

Total Test time (real) =  63.88 sec
151.115u 45.022s 2:41.34 121.5% 0+0k 0+0io 2091pf+0w

Compilation finished at Thu Feb  3 10:19:57

The files that I "switch on or off" are:

  /opt/local/bin/clamav-config
  /opt/local/bin/clambc
  /opt/local/bin/clamconf
  /opt/local/bin/clamdscan
  /opt/local/bin/clamdtop
  /opt/local/bin/clamscan
  /opt/local/bin/clamsubmit
  /opt/local/bin/freshclam
  /opt/local/bin/sigtool
  /opt/local/etc/clamd.conf.sample
  /opt/local/etc/freshclam.conf.sample
  /opt/local/include/clamav-types.h
  /opt/local/include/clamav-version.h
  /opt/local/include/clamav.h
  /opt/local/include/libfreshclam.h
  /opt/local/lib/libclamav.9.1.0.dylib
  /opt/local/lib/libclamav.9.dylib
  /opt/local/lib/libclamav.dylib
  /opt/local/lib/libclammspack.0.8.0.dylib
  /opt/local/lib/libclammspack.0.dylib
  /opt/local/lib/libclammspack.dylib
  /opt/local/lib/libclamunrar.9.1.0.dylib
  /opt/local/lib/libclamunrar.9.dylib
  /opt/local/lib/libclamunrar.dylib
  /opt/local/lib/libclamunrar_iface.9.1.0.dylib
  /opt/local/lib/libclamunrar_iface.9.dylib
  /opt/local/lib/libclamunrar_iface.dylib
  /opt/local/lib/libfreshclam.2.0.2.dylib
  /opt/local/lib/libfreshclam.2.dylib
  /opt/local/lib/libfreshclam.dylib
  /opt/local/lib/pkgconfig/libclamav.pc
  /opt/local/sbin/clamd
  /opt/local/share/doc/ClamAV/html/404.html
  /opt/local/share/doc/ClamAV/html/FontAwesome/css/font-awesome.css
  /opt/local/share/doc/ClamAV/html/FontAwesome/fonts/FontAwesome.ttf
  /opt/local/share/doc/ClamAV/html/FontAwesome/fonts/fontawesome-webfont.eot
  /opt/local/share/doc/ClamAV/html/FontAwesome/fonts/fontawesome-webfont.svg
  /opt/local/share/doc/ClamAV/html/FontAwesome/fonts/fontawesome-webfont.ttf
  /opt/local/share/doc/ClamAV/html/FontAwesome/fonts/fontawesome-webfont.woff
  /opt/local/share/doc/ClamAV/html/FontAwesome/fonts/fontawesome-webfont.woff2
  /opt/local/share/doc/ClamAV/html/Introduction.html
  /opt/local/share/doc/ClamAV/html/ace.js
  /opt/local/share/doc/ClamAV/html/appendix/Appendix.html
  /opt/local/share/doc/ClamAV/html/appendix/Authenticode.html
  /opt/local/share/doc/ClamAV/html/appendix/CvdPrivateMirror.html
  /opt/local/share/doc/ClamAV/html/appendix/FileTypes.html
  /opt/local/share/doc/ClamAV/html/appendix/FunctionalityLevels.html
  /opt/local/share/doc/ClamAV/html/appendix/Terminology.html
  /opt/local/share/doc/ClamAV/html/ayu-highlight.css
  /opt/local/share/doc/ClamAV/html/book.js
  /opt/local/share/doc/ClamAV/html/clipboard.min.js
  /opt/local/share/doc/ClamAV/html/css/chrome.css
  /opt/local/share/doc/ClamAV/html/css/general.css
  /opt/local/share/doc/ClamAV/html/css/print.css
  /opt/local/share/doc/ClamAV/html/css/variables.css
  /opt/local/share/doc/ClamAV/html/editor.js
  /opt/local/share/doc/ClamAV/html/elasticlunr.min.js
  /opt/local/share/doc/ClamAV/html/faq/faq-cvd.html
  /opt/local/share/doc/ClamAV/html/faq/faq-eol.html
  /opt/local/share/doc/ClamAV/html/faq/faq-freshclam.html
  /opt/local/share/doc/ClamAV/html/faq/faq-ignore.html
  /opt/local/share/doc/ClamAV/html/faq/faq-misc.html
  /opt/local/share/doc/ClamAV/html/faq/faq-ml.html
  /opt/local/share/doc/ClamAV/html/faq/faq-pua.html
  /opt/local/share/doc/ClamAV/html/faq/faq-safebrowsing.html
  /opt/local/share/doc/ClamAV/html/faq/faq-scan-alerts.html
  /opt/local/share/doc/ClamAV/html/faq/faq-troubleshoot.html
  /opt/local/share/doc/ClamAV/html/faq/faq-uninstall.html
  /opt/local/share/doc/ClamAV/html/faq/faq-upgrade.html
  /opt/local/share/doc/ClamAV/html/faq/faq-whichversion.html
  /opt/local/share/doc/ClamAV/html/faq/faq-win32.html
  /opt/local/share/doc/ClamAV/html/faq/faq.html
  /opt/local/share/doc/ClamAV/html/favicon.png
  /opt/local/share/doc/ClamAV/html/fonts/OPEN-SANS-LICENSE.txt
  /opt/local/share/doc/ClamAV/html/fonts/SOURCE-CODE-PRO-LICENSE.txt
  /opt/local/share/doc/ClamAV/html/fonts/fonts.css
  /opt/local/share/doc/ClamAV/html/fonts/open-sans-v17-all-charsets-300.woff2
  /opt/local/share/doc/ClamAV/html/fonts/open-sans-v17-all-charsets-300italic.woff2
  /opt/local/share/doc/ClamAV/html/fonts/open-sans-v17-all-charsets-600.woff2
  /opt/local/share/doc/ClamAV/html/fonts/open-sans-v17-all-charsets-600italic.woff2
  /opt/local/share/doc/ClamAV/html/fonts/open-sans-v17-all-charsets-700.woff2
  /opt/local/share/doc/ClamAV/html/fonts/open-sans-v17-all-charsets-700italic.woff2
  /opt/local/share/doc/ClamAV/html/fonts/open-sans-v17-all-charsets-800.woff2
  /opt/local/share/doc/ClamAV/html/fonts/open-sans-v17-all-charsets-800italic.woff2
  /opt/local/share/doc/ClamAV/html/fonts/open-sans-v17-all-charsets-italic.woff2
  /opt/local/share/doc/ClamAV/html/fonts/open-sans-v17-all-charsets-regular.woff2
  /opt/local/share/doc/ClamAV/html/fonts/source-code-pro-v11-all-charsets-500.woff2
  /opt/local/share/doc/ClamAV/html/highlight.css
  /opt/local/share/doc/ClamAV/html/highlight.js
  /opt/local/share/doc/ClamAV/html/images/change-fork-name.png
  /opt/local/share/doc/ClamAV/html/images/cisco.png
  /opt/local/share/doc/ClamAV/html/images/clone-your-fork.png
  /opt/local/share/doc/ClamAV/html/images/create-a-fork.png
  /opt/local/share/doc/ClamAV/html/images/demon.png
  /opt/local/share/doc/ClamAV/html/images/flamegraph.svg
  /opt/local/share/doc/ClamAV/html/images/fork-is-behind.png
  /opt/local/share/doc/ClamAV/html/images/logo.png
  /opt/local/share/doc/ClamAV/html/images/new-git-workflow.png
  /opt/local/share/doc/ClamAV/html/images/old-git-workflow.png
  /opt/local/share/doc/ClamAV/html/index.html
  /opt/local/share/doc/ClamAV/html/manual/Development.html
  /opt/local/share/doc/ClamAV/html/manual/Development/Contribute.html
  /opt/local/share/doc/ClamAV/html/manual/Development/build-installer-packages.html
  /opt/local/share/doc/ClamAV/html/manual/Development/clamav-git-work-flow.html
  /opt/local/share/doc/ClamAV/html/manual/Development/code-coverage.html
  /opt/local/share/doc/ClamAV/html/manual/Development/development-builds.html
  /opt/local/share/doc/ClamAV/html/manual/Development/fuzzing-sanitizers.html
  /opt/local/share/doc/ClamAV/html/manual/Development/github-pr-basics.html
  /opt/local/share/doc/ClamAV/html/manual/Development/libclamav.html
  /opt/local/share/doc/ClamAV/html/manual/Development/performance-profiling.html
  /opt/local/share/doc/ClamAV/html/manual/Development/personal-forks.html
  /opt/local/share/doc/ClamAV/html/manual/Development/testing-pull-requests.html
  /opt/local/share/doc/ClamAV/html/manual/Development/tips-and-tricks.html
  /opt/local/share/doc/ClamAV/html/manual/Installing.html
  /opt/local/share/doc/ClamAV/html/manual/Installing/Add-clamav-user.html
  /opt/local/share/doc/ClamAV/html/manual/Installing/Community-projects.html
  /opt/local/share/doc/ClamAV/html/manual/Installing/Docker.html
  /opt/local/share/doc/ClamAV/html/manual/Installing/Installing-from-source-Unix-old.html
  /opt/local/share/doc/ClamAV/html/manual/Installing/Installing-from-source-Unix.html
  /opt/local/share/doc/ClamAV/html/manual/Installing/Installing-from-source-Windows.html
  /opt/local/share/doc/ClamAV/html/manual/Installing/Packages.html
  /opt/local/share/doc/ClamAV/html/manual/OnAccess.html
  /opt/local/share/doc/ClamAV/html/manual/Signatures.html
  /opt/local/share/doc/ClamAV/html/manual/Signatures/AllowLists.html
  /opt/local/share/doc/ClamAV/html/manual/Signatures/AuthenticodeRules.html
  /opt/local/share/doc/ClamAV/html/manual/Signatures/BodySignatureFormat.html
  /opt/local/share/doc/ClamAV/html/manual/Signatures/BytecodeSignatures.html
  /opt/local/share/doc/ClamAV/html/manual/Signatures/ContainerMetadata.html
  /opt/local/share/doc/ClamAV/html/manual/Signatures/DatabaseInfo.html
  /opt/local/share/doc/ClamAV/html/manual/Signatures/DynamicConfig.html
  /opt/local/share/doc/ClamAV/html/manual/Signatures/EncryptedArchives.html
  /opt/local/share/doc/ClamAV/html/manual/Signatures/ExtendedSignatures.html
  /opt/local/share/doc/ClamAV/html/manual/Signatures/FileTypeMagic.html
  /opt/local/share/doc/ClamAV/html/manual/Signatures/HashSignatures.html
  /opt/local/share/doc/ClamAV/html/manual/Signatures/LogicalSignatures.html
  /opt/local/share/doc/ClamAV/html/manual/Signatures/PhishSigs.html
  /opt/local/share/doc/ClamAV/html/manual/Signatures/YaraRules.html
  /opt/local/share/doc/ClamAV/html/manual/Usage.html
  /opt/local/share/doc/ClamAV/html/manual/Usage/Configuration.html
  /opt/local/share/doc/ClamAV/html/manual/Usage/ReportABug.html
  /opt/local/share/doc/ClamAV/html/manual/Usage/Scanning.html
  /opt/local/share/doc/ClamAV/html/manual/Usage/Services.html
  /opt/local/share/doc/ClamAV/html/manual/Usage/SignatureManagement.html
  /opt/local/share/doc/ClamAV/html/mark.min.js
  /opt/local/share/doc/ClamAV/html/mode-rust.js
  /opt/local/share/doc/ClamAV/html/print.html
  /opt/local/share/doc/ClamAV/html/searcher.js
  /opt/local/share/doc/ClamAV/html/searchindex.js
  /opt/local/share/doc/ClamAV/html/searchindex.json
  /opt/local/share/doc/ClamAV/html/theme-dawn.js
  /opt/local/share/doc/ClamAV/html/theme-tomorrow_night.js
  /opt/local/share/doc/ClamAV/html/tomorrow-night.css
  /opt/local/share/man/man1/clambc.1.gz
  /opt/local/share/man/man1/clamconf.1.gz
  /opt/local/share/man/man1/clamdscan.1.gz
  /opt/local/share/man/man1/clamdtop.1.gz
  /opt/local/share/man/man1/clamscan.1.gz
  /opt/local/share/man/man1/clamsubmit.1.gz
  /opt/local/share/man/man1/freshclam.1.gz
  /opt/local/share/man/man1/sigtool.1.gz
  /opt/local/share/man/man5/clamav-milter.conf.5.gz
  /opt/local/share/man/man5/clamd.conf.5.gz
  /opt/local/share/man/man5/freshclam.conf.5.gz
  /opt/local/share/man/man8/clamav-milter.8.gz
  /opt/local/share/man/man8/clamd.8.gz
ballapete commented 2 years ago

Micah,

there is another thing: during the configure phase CMake checks for the existence of git. Is git ever used, is it needed for building or for testing ClamAV?

ballapete commented 2 years ago

A member of the MacPorts team made aware of this: https://github.com/macports/macports-ports/blob/fdc80cd761af072aa4ec52f0a5082f8c0c5135de/_resources/port1.0/group/cmake-1.1.tcl#L105. The Portfile by which ClamAV is being built has therefore for the tests:

configure.pre_args-replace  -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
                                -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF

while clamav-0.104.2/CMakeLists.txt has:

  158   #
  159   # Set RPATH for custom install prefixes
  160   #
  161   if(APPLE)
  162       set(CMAKE_MACOSX_RPATH 1)
  163   endif()

Could the tests failure come from the latter setting?

ballapete commented 2 years ago

On macOS High Sierra, Version 10.13.6, a similar behaviour can be observed. Here is the output from ctest -V:

--->  Testing clamav-legacy
DEBUG: Executing proc-pre-org.macports.test-test-0
DEBUG: Executing org.macports.test (clamav-legacy)
DEBUG: Environment: 
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
DEVELOPER_DIR='/Library/Developer/CommandLineTools'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.13'
Executing:  cd "/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build" && ctest -V 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build" && ctest -V 
UpdateCTestConfiguration  from :/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/DartConfiguration.tcl
Parse Config file:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/DartConfiguration.tcl
UpdateCTestConfiguration  from :/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/DartConfiguration.tcl
Parse Config file:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/DartConfiguration.tcl
Test project /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
    Start 1: libclamav

1: Test command: /opt/local/bin/pytest "-v" "libclamav_test.py"
1: Environment variables: 
1:  PYTHONTRACEMALLOC=1
1:  VERSION=0.104.2
1:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
1:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
1:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
1:  CK_FORK=no
1:  CK_DEFAULT_TIMEOUT=60
1:  LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar
1:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
1:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
1:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
1:  CHECK_CLAMAV=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamav
1:  CHECK_CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamd
1:  CHECK_FPU_ENDIAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_fpu_endian
1:  CLAMBC=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clambc/clambc
1:  CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamd/clamd
1:  CLAMDSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdscan/clamdscan
1:  CLAMDTOP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdtop/clamdtop
1:  CLAMSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan
1:  CLAMSUBMIT=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamsubmit/clamsubmit
1:  CLAMCONF=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamconf/clamconf
1:  FRESHCLAM=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/freshclam/freshclam
1:  SIGTOOL=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/sigtool/sigtool
1:  CLAMAV_MILTER=
1:  CLAMONACC=
1: Test timeout computed to be: 1500
1: ============================================================================ test session starts =============================================================================
1: platform darwin -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
1: cachedir: .pytest_cache
1: rootdir: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests
1: collecting ... collected 1 item
1: 
1: libclamav_test.py::TC::test_libclamav_00_unit_test FAILED                                                                                                              [100%]
1: 
1: ================================================================================== FAILURES ==================================================================================
1: _______________________________________________________________________ TC.test_libclamav_00_unit_test _______________________________________________________________________
1: 
1: self = <libclamav_test.TC testMethod=test_libclamav_00_unit_test>
1: 
1:     def test_libclamav_00_unit_test(self):
1:         self.step_name('libclamav unit tests')
1:     
1:         # If no valgrind, valgrind nad valgrind args are empty strings
1:         command = '{valgrind} {valgrind_args} {check_clamav}'.format(
1:             valgrind=TC.valgrind, valgrind_args=TC.valgrind_args, check_clamav=TC.check_clamav
1:         )
1:         output = self.execute_command(command)
1:     
1: >       assert output.ec == 0  # success
1: E       AssertionError: assert 1 == 0
1: E         +1
1: E         -0
1: 
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/libclamav_test.py:47: AssertionError
1: ---------------------------------------------------------------------------- Captured stdout call ----------------------------------------------------------------------------
1: 
1: [INFO]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1: [INFO]:                           libclamav unit tests                          
1: [INFO]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1: [DEBUG]: Run command: export LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar &&   /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamav 
1: [DEBUG]: Exit code: 1
1: [DEBUG]: stdout: Using default test timeout; alter by setting 'T' env var (in seconds)
1: Running suite(s): cl_suite
1:  cli
1:  jsnorm
1:  str
1:  regex
1:  disasm
1:  unique
1:  matchers
1:  htmlnorm
1:  bytecode
1: 97%: Checks: 1175, Failures: 24, Errors: 0
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:191:F:cl_scan_api:test_cl_scandesc:8: cl_scandesc failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:191:F:cl_scan_api:test_cl_scandesc:9: cl_scandesc failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:218:F:cl_scan_api:test_cl_scandesc_allscan:8: cl_scandesc_allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:218:F:cl_scan_api:test_cl_scandesc_allscan:9: cl_scandesc_allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:246:F:cl_scan_api:test_cl_scanfile:8: cl_scanfile failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:246:F:cl_scan_api:test_cl_scanfile:9: cl_scanfile failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:273:F:cl_scan_api:test_cl_scanfile_allscan:8: cl_scanfile_allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:273:F:cl_scan_api:test_cl_scanfile_allscan:9: cl_scanfile_allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:354:F:cl_scan_api:test_cl_scandesc_callback:8: cl_scanfile failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:354:F:cl_scan_api:test_cl_scandesc_callback:9: cl_scanfile failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:382:F:cl_scan_api:test_cl_scandesc_callback_allscan:8: cl_scanfile_allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:382:F:cl_scan_api:test_cl_scandesc_callback_allscan:9: cl_scanfile_allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:300:F:cl_scan_api:test_cl_scanfile_callback:8: cl_scanfile_cb failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:300:F:cl_scan_api:test_cl_scanfile_callback:9: cl_scanfile_cb failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:328:F:cl_scan_api:test_cl_scanfile_callback_allscan:8: cl_scanfile_cb_allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:328:F:cl_scan_api:test_cl_scanfile_callback_allscan:9: cl_scanfile_cb_allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:568:F:cl_scan_api:test_cl_scanmap_callback_handle:8: cl_scanmap_callback failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:568:F:cl_scan_api:test_cl_scanmap_callback_handle:9: cl_scanmap_callback failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:600:F:cl_scan_api:test_cl_scanmap_callback_handle_allscan:8: cl_scanmap_callback allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:600:F:cl_scan_api:test_cl_scanmap_callback_handle_allscan:9: cl_scanmap_callback allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:637:F:cl_scan_api:test_cl_scanmap_callback_mem:8: cl_scanmap_callback failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:637:F:cl_scan_api:test_cl_scanmap_callback_mem:9: cl_scanmap_callback failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:675:F:cl_scan_api:test_cl_scanmap_callback_mem_allscan:8: cl_scanmap_callback allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: No viruses detected
1: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/check_clamav.c:675:F:cl_scan_api:test_cl_scanmap_callback_mem_allscan:9: cl_scanmap_callback allscan failed for /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: No viruses detected
1: NOTICE: Use the 'T' environment variable to adjust testcase timeout
1: 
1: [DEBUG]: stderr: 
1: 
1: -------------------------------------------------------------------------- Captured stdout teardown --------------------------------------------------------------------------
1: 
1: [INFO]: Removed tmp directory: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/TC-qwwue18n
1: ========================================================================== short test summary info ===========================================================================
1: FAILED libclamav_test.py::TC::test_libclamav_00_unit_test - AssertionError: assert 1 == 0
1: ============================================================================= 1 failed in 30.16s =============================================================================
1/5 Test #1: libclamav ........................***Failed   30.88 sec
test 2
    Start 2: clamscan

2: Test command: /opt/local/bin/pytest "-v" "clamscan_test.py"
2: Environment variables: 
2:  PYTHONTRACEMALLOC=1
2:  VERSION=0.104.2
2:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
2:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
2:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
2:  CK_FORK=no
2:  CK_DEFAULT_TIMEOUT=60
2:  LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar
2:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
2:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
2:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
2:  CHECK_CLAMAV=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamav
2:  CHECK_CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamd
2:  CHECK_FPU_ENDIAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_fpu_endian
2:  CLAMBC=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clambc/clambc
2:  CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamd/clamd
2:  CLAMDSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdscan/clamdscan
2:  CLAMDTOP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdtop/clamdtop
2:  CLAMSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan
2:  CLAMSUBMIT=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamsubmit/clamsubmit
2:  CLAMCONF=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamconf/clamconf
2:  FRESHCLAM=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/freshclam/freshclam
2:  SIGTOOL=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/sigtool/sigtool
2:  CLAMAV_MILTER=
2:  CLAMONACC=
2: Test timeout computed to be: 1500
2: ============================================================================ test session starts =============================================================================
2: platform darwin -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
2: cachedir: .pytest_cache
2: rootdir: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests
2: collecting ... collected 11 items
2: 
2: clamscan_test.py::TC::test_clamscan_00_version PASSED                                                                                                                  [  9%]
2: clamscan_test.py::TC::test_clamscan_01_all_testfiles FAILED                                                                                                            [ 18%]
2: clamscan_test.py::TC::test_clamscan_02_all_testfiles_ign2 FAILED                                                                                                       [ 27%]
2: clamscan_test.py::TC::test_clamscan_03_phish_test_not_enabled PASSED                                                                                                   [ 36%]
2: clamscan_test.py::TC::test_clamscan_04_phish_test_alert_phishing_ssl_alert_phishing_cloak PASSED                                                                       [ 45%]
2: clamscan_test.py::TC::test_clamscan_05_icon PASSED                                                                                                                     [ 54%]
2: clamscan_test.py::TC::test_clamscan_06_LDB_VI PASSED                                                                                                                   [ 63%]
2: clamscan_test.py::TC::test_clamscan_07_yara_at_offset PASSED                                                                                                           [ 72%]
2: clamscan_test.py::TC::test_clamscan_08_yara_in_range PASSED                                                                                                            [ 81%]
2: clamscan_test.py::TC::test_clamscan_09_xls_jpeg_png_extraction PASSED                                                                                                  [ 90%]
2: clamscan_test.py::TC::test_clamscan_10_bytecode_pdf_hook PASSED                                                                                                        [100%]
2: 
2: ================================================================================== FAILURES ==================================================================================
2: _____________________________________________________________________ TC.test_clamscan_01_all_testfiles ______________________________________________________________________
2: 
2: self = <clamscan_test.TC testMethod=test_clamscan_01_all_testfiles>
2: 
2:     def test_clamscan_01_all_testfiles(self):
2:         self.step_name('Test that clamscan alerts on all test files')
2:     
2:         testfiles = ' '.join([str(testpath) for testpath in TC.testpaths])
2:         command = '{valgrind} {valgrind_args} {clamscan} -d {path_db} {testfiles}'.format(
2:             valgrind=TC.valgrind, valgrind_args=TC.valgrind_args, clamscan=TC.clamscan, path_db=TC.path_db / "clamav.hdb", testfiles=testfiles,
2:         )
2:         output = self.execute_command(command)
2:     
2:         assert output.ec == 1  # virus found
2:     
2:         expected_results = ['{}: ClamAV-Test-File.UNOFFICIAL FOUND'.format(testpath.name) for testpath in TC.testpaths]
2:         expected_results.append('Scanned files: {}'.format(len(TC.testpaths)))
2:         expected_results.append('Infected files: {}'.format(len(TC.testpaths)))
2: >       self.verify_output(output.out, expected=expected_results)
2: 
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/clamscan_test.py:101: 
2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/testcase.py:247: in verify_output
2:     log_checker.verify_expected_output(expected, text, order=order)
2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2: 
2: self = <testcase.LogChecker object at 0x10cd66d90>
2: expected_items = ['clam-aspack.exe: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam-fsg.exe: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam-mew.ex...OUND', 'clam-pespin.exe: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam-petite.exe: ClamAV-Test-File.UNOFFICIAL FOUND', ...]
2: output = '/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clama... 6.91 MB (ratio 2.03:1)\nTime: 1.222 sec (0 m 1 s)\nStart Date: 2022:02:04 15:30:36\nEnd Date:   2022:02:04 15:30:38\n'
2: order = 1
2: 
2:     def verify_expected_output(self, expected_items, output, order=STRICT_ORDER):
2:         """Check presence of regex patterns in output string.
2:     
2:         :Parameters:
2:             - `expected_items`: a list of regex patterns that should be found
2:                                 in `output`.
2:             - `output`: a string with output to verify.
2:             - `order`: STRICT_ORDER, ANY_ORDER.
2:     
2:         :Exceptions:
2:             - `AssertionError`: is raised if:
2:                 1)`output` is not a string.
2:                 2) one of expected items was not found in `output`.
2:                 3) items were found in wrong order.
2:         """
2:         if output != None and not isinstance(output, str):
2:             output = output.decode("utf-8", "ignore")
2:         assert isinstance(output, str), "`output` must be a string."
2:         expected_items = self._prepare_value(expected_items)
2:     
2:         last_found_position = 0
2:         for item in expected_items:
2:             pattern = re.compile(item)
2:             match = pattern.search(output)
2: >           assert match, "Expected item `%s` not found in output:\n%s" % (
2:                 item,
2:                 self.__crop_output(output),
2:             )
2: E           AssertionError: Expected item `clam-v2.rar: ClamAV-Test-File.UNOFFICIAL FOUND` not found in output:
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-aspack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-fsg.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-mew.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-nsis.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-petite.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: OK
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: OK
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_cl
2: E           
2: E           ----- CROPPED -----
2: E                   ...
2: E           ----- CROPPED -----
2: E           
2: E           amav_hdb_scanfiles/clam.sis: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tnef: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_cache_emax.tgz: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           
2: E           ----------- SCAN SUMMARY -----------
2: E           Known viruses: 1
2: E           Engine version: 0.104.2
2: E           Scanned directories: 0
2: E           Scanned files: 49
2: E           Infected files: 47
2: E           Data scanned: 14.05 MB
2: E           Data read: 6.91 MB (ratio 2.03:1)
2: E           Time: 1.222 sec (0 m 1 s)
2: E           Start Date: 2022:02:04 15:30:36
2: E           End Date:   2022:02:04 15:30:38
2: 
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/testcase.py:793: AssertionError
2: ---------------------------------------------------------------------------- Captured stdout call ----------------------------------------------------------------------------
2: 
2: [INFO]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2: [INFO]:               Test that clamscan alerts on all test files               
2: [INFO]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2: [DEBUG]: Run command: export LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar &&   /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan -d /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/TC-kcy6yxz8/database/clamav.hdb /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-aspack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-fsg.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-mew.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-nsis.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-petite.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-yc.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.7z /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.arj /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-be.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-le.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bz2.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.cab /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.chm /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.d64.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea05.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea06.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.binhex /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.bz2 /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.html /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.base64 /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.uu /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.rtf /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.szdd /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe_and_mail.tar.gz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.impl.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.iso /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.mail /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.newc.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.odc.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ole.doc /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.pdf /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ppt /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tnef /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_ext.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_ext.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_int.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_cache_emax.tgz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso 
2: [DEBUG]: Exit code: 1
2: [DEBUG]: stdout: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-aspack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-fsg.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-mew.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-nsis.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-petite.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: OK
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: OK
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-yc.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.7z: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.arj: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-be.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-le.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bz2.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.cab: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.chm: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.d64.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea05.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea06.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.binhex: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.bz2: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.html: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.base64: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.uu: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.rtf: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.szdd: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe_and_mail.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.impl.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.iso: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.mail: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.newc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.odc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ole.doc: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.pdf: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ppt: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tnef: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_cache_emax.tgz: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso: ClamAV-Test-File.UNOFFICIAL FOUND
2: 
2: ----------- SCAN SUMMARY -----------
2: Known viruses: 1
2: Engine version: 0.104.2
2: Scanned directories: 0
2: Scanned files: 49
2: Infected files: 47
2: Data scanned: 14.05 MB
2: Data read: 6.91 MB (ratio 2.03:1)
2: Time: 1.222 sec (0 m 1 s)
2: Start Date: 2022:02:04 15:30:36
2: End Date:   2022:02:04 15:30:38
2: 
2: [DEBUG]: stderr: 
2: 
2: ___________________________________________________________________ TC.test_clamscan_02_all_testfiles_ign2 ___________________________________________________________________
2: 
2: self = <clamscan_test.TC testMethod=test_clamscan_02_all_testfiles_ign2>
2: 
2:     def test_clamscan_02_all_testfiles_ign2(self):
2:         self.step_name('Test that clamscan ignores ClamAV-Test-File alerts')
2:     
2:         testfiles = ' '.join([str(testpath) for testpath in TC.testpaths])
2:         command = '{valgrind} {valgrind_args} {clamscan} -d {path_db} -d {path_ign_db} {testfiles}'.format(
2:             valgrind=TC.valgrind, valgrind_args=TC.valgrind_args, clamscan=TC.clamscan, path_db=TC.path_db / "clamav.hdb", path_ign_db=TC.path_db / "clamav.ign2", testfiles=testfiles,
2:         )
2:         output = self.execute_command(command)
2:     
2:         assert output.ec == 1  # virus found
2:     
2:         expected_results = ['{}: ClamAV-Test-File.UNOFFICIAL FOUND'.format(testpath.name) for testpath in TC.testpaths]
2:         expected_results.append('Scanned files: {}'.format(len(TC.testpaths)))
2:         expected_results.append('Infected files: {}'.format(len(TC.testpaths)))
2: >       self.verify_output(output.out, expected=expected_results)
2: 
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/clamscan_test.py:117: 
2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/testcase.py:247: in verify_output
2:     log_checker.verify_expected_output(expected, text, order=order)
2: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2: 
2: self = <testcase.LogChecker object at 0x10cf23b80>
2: expected_items = ['clam-aspack.exe: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam-fsg.exe: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam-mew.ex...OUND', 'clam-pespin.exe: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam-petite.exe: ClamAV-Test-File.UNOFFICIAL FOUND', ...]
2: output = '/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clama... 6.91 MB (ratio 2.03:1)\nTime: 1.026 sec (0 m 1 s)\nStart Date: 2022:02:04 15:30:38\nEnd Date:   2022:02:04 15:30:39\n'
2: order = 1
2: 
2:     def verify_expected_output(self, expected_items, output, order=STRICT_ORDER):
2:         """Check presence of regex patterns in output string.
2:     
2:         :Parameters:
2:             - `expected_items`: a list of regex patterns that should be found
2:                                 in `output`.
2:             - `output`: a string with output to verify.
2:             - `order`: STRICT_ORDER, ANY_ORDER.
2:     
2:         :Exceptions:
2:             - `AssertionError`: is raised if:
2:                 1)`output` is not a string.
2:                 2) one of expected items was not found in `output`.
2:                 3) items were found in wrong order.
2:         """
2:         if output != None and not isinstance(output, str):
2:             output = output.decode("utf-8", "ignore")
2:         assert isinstance(output, str), "`output` must be a string."
2:         expected_items = self._prepare_value(expected_items)
2:     
2:         last_found_position = 0
2:         for item in expected_items:
2:             pattern = re.compile(item)
2:             match = pattern.search(output)
2: >           assert match, "Expected item `%s` not found in output:\n%s" % (
2:                 item,
2:                 self.__crop_output(output),
2:             )
2: E           AssertionError: Expected item `clam-v2.rar: ClamAV-Test-File.UNOFFICIAL FOUND` not found in output:
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-aspack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-fsg.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-mew.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-nsis.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-petite.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: OK
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: OK
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_cl
2: E           
2: E           ----- CROPPED -----
2: E                   ...
2: E           ----- CROPPED -----
2: E           
2: E           amav_hdb_scanfiles/clam.sis: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tnef: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_cache_emax.tgz: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso: ClamAV-Test-File.UNOFFICIAL FOUND
2: E           
2: E           ----------- SCAN SUMMARY -----------
2: E           Known viruses: 1
2: E           Engine version: 0.104.2
2: E           Scanned directories: 0
2: E           Scanned files: 49
2: E           Infected files: 47
2: E           Data scanned: 14.05 MB
2: E           Data read: 6.91 MB (ratio 2.03:1)
2: E           Time: 1.026 sec (0 m 1 s)
2: E           Start Date: 2022:02:04 15:30:38
2: E           End Date:   2022:02:04 15:30:39
2: 
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/testcase.py:793: AssertionError
2: ---------------------------------------------------------------------------- Captured stdout call ----------------------------------------------------------------------------
2: 
2: [INFO]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2: [INFO]:            Test that clamscan ignores ClamAV-Test-File alerts           
2: [INFO]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2: [DEBUG]: Run command: export LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar &&   /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan -d /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/TC-kcy6yxz8/database/clamav.hdb -d /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/TC-kcy6yxz8/database/clamav.ign2 /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-aspack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-fsg.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-mew.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-nsis.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-petite.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-yc.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.7z /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.arj /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-be.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-le.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bz2.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.cab /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.chm /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.d64.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea05.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea06.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.binhex /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.bz2 /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.html /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.base64 /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.uu /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.rtf /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.szdd /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe_and_mail.tar.gz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.impl.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.iso /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.mail /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.newc.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.odc.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ole.doc /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.pdf /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ppt /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tnef /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_ext.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_ext.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_int.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_cache_emax.tgz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso 
2: [DEBUG]: Exit code: 1
2: [DEBUG]: stdout: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-aspack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-fsg.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-mew.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-nsis.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-petite.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: OK
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: OK
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-yc.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.7z: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.arj: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-be.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-le.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bz2.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.cab: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.chm: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.d64.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea05.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea06.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.binhex: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.bz2: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.html: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.base64: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.uu: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.rtf: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.szdd: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe_and_mail.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.impl.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.iso: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.mail: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.newc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.odc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ole.doc: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.pdf: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ppt: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tnef: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.zip: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_cache_emax.tgz: ClamAV-Test-File.UNOFFICIAL FOUND
2: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso: ClamAV-Test-File.UNOFFICIAL FOUND
2: 
2: ----------- SCAN SUMMARY -----------
2: Known viruses: 1
2: Engine version: 0.104.2
2: Scanned directories: 0
2: Scanned files: 49
2: Infected files: 47
2: Data scanned: 14.05 MB
2: Data read: 6.91 MB (ratio 2.03:1)
2: Time: 1.026 sec (0 m 1 s)
2: Start Date: 2022:02:04 15:30:38
2: End Date:   2022:02:04 15:30:39
2: 
2: [DEBUG]: stderr: 
2: 
2: ========================================================================== short test summary info ===========================================================================
2: FAILED clamscan_test.py::TC::test_clamscan_01_all_testfiles - AssertionError: Expected item `clam-v2.rar: ClamAV-Test-File.UNOFFICIAL FOUND` not found in output:
2: FAILED clamscan_test.py::TC::test_clamscan_02_all_testfiles_ign2 - AssertionError: Expected item `clam-v2.rar: ClamAV-Test-File.UNOFFICIAL FOUND` not found in output:
2: ======================================================================== 2 failed, 9 passed in 8.47s =========================================================================
2/5 Test #2: clamscan .........................***Failed    9.17 sec
test 3
    Start 3: clamd

3: Test command: /opt/local/bin/pytest "-v" "clamd_test.py"
3: Environment variables: 
3:  PYTHONTRACEMALLOC=1
3:  VERSION=0.104.2
3:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
3:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
3:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
3:  CK_FORK=no
3:  CK_DEFAULT_TIMEOUT=60
3:  LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar
3:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
3:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
3:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
3:  CHECK_CLAMAV=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamav
3:  CHECK_CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamd
3:  CHECK_FPU_ENDIAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_fpu_endian
3:  CLAMBC=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clambc/clambc
3:  CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamd/clamd
3:  CLAMDSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdscan/clamdscan
3:  CLAMDTOP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdtop/clamdtop
3:  CLAMSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan
3:  CLAMSUBMIT=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamsubmit/clamsubmit
3:  CLAMCONF=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamconf/clamconf
3:  FRESHCLAM=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/freshclam/freshclam
3:  SIGTOOL=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/sigtool/sigtool
3:  CLAMAV_MILTER=
3:  CLAMONACC=
3: Test timeout computed to be: 1500
3: ============================================================================ test session starts =============================================================================
3: platform darwin -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
3: cachedir: .pytest_cache
3: rootdir: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests
3: collecting ... collected 10 items
3: 
3: clamd_test.py::TC::test_clamd_00_version PASSED                                                                                                                        [ 10%]
3: clamd_test.py::TC::test_clamd_01_ping_pong PASSED                                                                                                                      [ 20%]
3: clamd_test.py::TC::test_clamd_02_clamdscan_version PASSED                                                                                                              [ 30%]
3: clamd_test.py::TC::test_clamd_03_reload PASSED                                                                                                                         [ 40%]
3: clamd_test.py::TC::test_clamd_04_all_testfiles FAILED                                                                                                                  [ 50%]
3: clamd_test.py::TC::test_clamd_05_check_clamd PASSED                                                                                                                    [ 60%]
3: clamd_test.py::TC::test_clamd_06_HeuristicScanPrecedence_off PASSED                                                                                                    [ 70%]
3: clamd_test.py::TC::test_clamd_07_HeuristicScanPrecedence_on PASSED                                                                                                     [ 80%]
3: clamd_test.py::TC::test_clamd_08_VirusEvent PASSED                                                                                                                     [ 90%]
3: clamd_test.py::TC::test_clamd_09_clamdscan_ExcludePath PASSED                                                                                                          [100%]
3: 
3: ================================================================================== FAILURES ==================================================================================
3: _______________________________________________________________________ TC.test_clamd_04_all_testfiles _______________________________________________________________________
3: 
3: self = <clamd_test.TC testMethod=test_clamd_04_all_testfiles>
3: 
3:     def test_clamd_04_all_testfiles(self):
3:         '''
3:         Verify that clamd + clamdscan detect each of our <build>/unit_tests/input/clamav_hdb_scanfiles/clam* test files.
3:         '''
3:         self.step_name('Testing clamd + clamdscan scan of all `test` files')
3:     
3:         self.start_clamd()
3:     
3:         poll = self.proc.poll()
3:         assert poll == None  # subprocess is alive if poll() returns None
3:     
3:         testfiles = ' '.join([str(testpath) for testpath in TC.testpaths])
3:         expected_results = ['{}: ClamAV-Test-File.UNOFFICIAL FOUND'.format(testpath.name) for testpath in TC.testpaths]
3:         expected_results.append('Infected files: {}'.format(len(TC.testpaths)))
3:     
3: >       self.run_clamdscan(testfiles,
3:             expected_ec=1, expected_out=expected_results)
3: 
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/clamd_test.py:363: 
3: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/clamd_test.py:196: in run_clamdscan
3:     self.verify_output(output.out, expected=expected_out, unexpected=unexpected_out)
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/testcase.py:247: in verify_output
3:     log_checker.verify_expected_output(expected, text, order=order)
3: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
3: 
3: self = <testcase.LogChecker object at 0x1041890d0>
3: expected_items = ['clam-aspack.exe: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam-fsg.exe: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam-mew.ex...OUND', 'clam-pespin.exe: ClamAV-Test-File.UNOFFICIAL FOUND', 'clam-petite.exe: ClamAV-Test-File.UNOFFICIAL FOUND', ...]
3: output = '/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clama...---\nInfected files: 47\nTime: 1.084 sec (0 m 1 s)\nStart Date: 2022:02:04 15:30:50\nEnd Date:   2022:02:04 15:30:51\n'
3: order = 1
3: 
3:     def verify_expected_output(self, expected_items, output, order=STRICT_ORDER):
3:         """Check presence of regex patterns in output string.
3:     
3:         :Parameters:
3:             - `expected_items`: a list of regex patterns that should be found
3:                                 in `output`.
3:             - `output`: a string with output to verify.
3:             - `order`: STRICT_ORDER, ANY_ORDER.
3:     
3:         :Exceptions:
3:             - `AssertionError`: is raised if:
3:                 1)`output` is not a string.
3:                 2) one of expected items was not found in `output`.
3:                 3) items were found in wrong order.
3:         """
3:         if output != None and not isinstance(output, str):
3:             output = output.decode("utf-8", "ignore")
3:         assert isinstance(output, str), "`output` must be a string."
3:         expected_items = self._prepare_value(expected_items)
3:     
3:         last_found_position = 0
3:         for item in expected_items:
3:             pattern = re.compile(item)
3:             match = pattern.search(output)
3: >           assert match, "Expected item `%s` not found in output:\n%s" % (
3:                 item,
3:                 self.__crop_output(output),
3:             )
3: E           AssertionError: Expected item `clam-v2.rar: ClamAV-Test-File.UNOFFICIAL FOUND` not found in output:
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-aspack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-fsg.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-mew.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-nsis.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-petite.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: OK
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: OK
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_cl
3: E           
3: E           ----- CROPPED -----
3: E                   ...
3: E           ----- CROPPED -----
3: E           
3: E           st-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tnef: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_cache_emax.tgz: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso: ClamAV-Test-File.UNOFFICIAL FOUND
3: E           
3: E           ----------- SCAN SUMMARY -----------
3: E           Infected files: 47
3: E           Time: 1.084 sec (0 m 1 s)
3: E           Start Date: 2022:02:04 15:30:50
3: E           End Date:   2022:02:04 15:30:51
3: 
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests/testcase.py:793: AssertionError
3: ---------------------------------------------------------------------------- Captured stdout call ----------------------------------------------------------------------------
3: 
3: [INFO]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3: [INFO]:            Testing clamd + clamdscan scan of all `test` files           
3: [INFO]: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3: [INFO]: Starting clamd:   /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamd/clamd --config-file=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/TC-_5akvjh7/clamd-test.conf
3: [DEBUG]: Run command: export LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar && /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdscan/clamdscan --ping 5 --wait /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-aspack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-fsg.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-mew.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-nsis.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-petite.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-yc.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.7z /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.arj /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-be.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-le.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bz2.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.cab /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.chm /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.d64.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea05.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea06.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.binhex /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.bz2 /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.html /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.base64 /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.uu /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.rtf /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.szdd /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe_and_mail.tar.gz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.impl.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.iso /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.mail /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.newc.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.odc.cpio /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ole.doc /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.pdf /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ppt /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tnef /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.zip /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_ext.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_ext.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_int.exe /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_cache_emax.tgz /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso -c /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/TC-_5akvjh7/clamd-test.conf 
3: Fri Feb  4 15:30:50 2022 -> Limits: Global time limit set to 120000 milliseconds.
3: Fri Feb  4 15:30:50 2022 -> Limits: Global size limit set to 104857600 bytes.
3: Fri Feb  4 15:30:50 2022 -> Limits: File size limit set to 26214400 bytes.
3: Fri Feb  4 15:30:50 2022 -> Limits: Recursion level limit set to 17.
3: Fri Feb  4 15:30:50 2022 -> Limits: Files limit set to 10000.
3: Fri Feb  4 15:30:50 2022 -> *Limits: Core-dump limit is 9223372036854775807.
3: Fri Feb  4 15:30:50 2022 -> Limits: MaxEmbeddedPE limit set to 10485760 bytes.
3: Fri Feb  4 15:30:50 2022 -> Limits: MaxHTMLNormalize limit set to 10485760 bytes.
3: Fri Feb  4 15:30:50 2022 -> Limits: MaxHTMLNoTags limit set to 2097152 bytes.
3: Fri Feb  4 15:30:50 2022 -> Limits: MaxScriptNormalize limit set to 5242880 bytes.
3: Fri Feb  4 15:30:50 2022 -> Limits: MaxZipTypeRcg limit set to 1048576 bytes.
3: Fri Feb  4 15:30:50 2022 -> Limits: MaxPartitions limit set to 50.
3: Fri Feb  4 15:30:50 2022 -> Limits: MaxIconsPE limit set to 100.
3: Fri Feb  4 15:30:50 2022 -> Limits: MaxRecHWP3 limit set to 16.
3: Fri Feb  4 15:30:50 2022 -> Limits: PCREMatchLimit limit set to 100000.
3: Fri Feb  4 15:30:50 2022 -> Limits: PCRERecMatchLimit limit set to 2000.
3: Fri Feb  4 15:30:50 2022 -> Limits: PCREMaxFileSize limit set to 26214400.
3: Fri Feb  4 15:30:50 2022 -> Archive support enabled.
3: Fri Feb  4 15:30:50 2022 -> AlertExceedsMax heuristic detection disabled.
3: Fri Feb  4 15:30:50 2022 -> Heuristic alerts enabled.
3: Fri Feb  4 15:30:50 2022 -> Portable Executable support enabled.
3: Fri Feb  4 15:30:50 2022 -> ELF support enabled.
3: Fri Feb  4 15:30:50 2022 -> Mail files support enabled.
3: Fri Feb  4 15:30:50 2022 -> OLE2 support enabled.
3: Fri Feb  4 15:30:50 2022 -> PDF support enabled.
3: Fri Feb  4 15:30:50 2022 -> SWF support enabled.
3: Fri Feb  4 15:30:50 2022 -> HTML support enabled.
3: Fri Feb  4 15:30:50 2022 -> XMLDOCS support enabled.
3: Fri Feb  4 15:30:50 2022 -> HWP3 support enabled.
3: Fri Feb  4 15:30:50 2022 -> Self checking every 600 seconds.
3: Fri Feb  4 15:30:50 2022 -> *Listening daemon: PID: 25903
3: Fri Feb  4 15:30:50 2022 -> *MaxQueue set to: 800
3: Fri Feb  4 15:30:50 2022 -> Set stacksize to 1048576
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-aspack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-fsg.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-mew.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-nsis.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-petite.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: OK
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: OK
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-yc.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.7z: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.arj: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-be.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-le.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bz2.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:50 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.cab: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.chm: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.d64.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea05.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea06.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.binhex: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.bz2: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.html: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.base64: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.uu: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.rtf: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.szdd: ClamAV-Test-File.UNOFFICIAL FOUND
3: LibClamAV info: Suspicious link found!
3: LibClamAV info:   Real URL:    http://fake.example.com
3: LibClamAV info:   Display URL: ebay.de
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe_and_mail.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.impl.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.iso: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.mail: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.newc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.odc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ole.doc: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.pdf: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ppt: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tnef: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_cache_emax.tgz: ClamAV-Test-File.UNOFFICIAL FOUND
3: Fri Feb  4 15:30:51 2022 -> ~/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso: ClamAV-Test-File.UNOFFICIAL FOUND
3: [DEBUG]: Exit code: 1
3: [DEBUG]: stdout: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-aspack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-fsg.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-mew.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-nsis.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-pespin.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-petite.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-upx.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: OK
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: OK
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-wwpack.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam-yc.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.7z: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.arj: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-be.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bin-le.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.bz2.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.cab: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.chm: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.d64.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea05.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ea06.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.binhex: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.bz2: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.html: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.base64: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.mbox.uu: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.rtf: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe.szdd: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.exe_and_mail.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.impl.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.iso: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.mail: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.newc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.odc.cpio: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ole.doc: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.pdf: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.ppt: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.sis: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tar.gz: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.tnef: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam.zip: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_IScab_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_ext.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_ISmsi_int.exe: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clam_cache_emax.tgz: ClamAV-Test-File.UNOFFICIAL FOUND
3: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav_hdb_scanfiles/clamjol.iso: ClamAV-Test-File.UNOFFICIAL FOUND
3: 
3: ----------- SCAN SUMMARY -----------
3: Infected files: 47
3: Time: 1.084 sec (0 m 1 s)
3: Start Date: 2022:02:04 15:30:50
3: End Date:   2022:02:04 15:30:51
3: 
3: [DEBUG]: stderr: ERROR: Could not connect to clamd on LocalSocket clamd-test.socket: No such file or directory
3: 
3: 
3: Fri Feb  4 15:30:51 2022 -> *Waiting for all threads to finish
3: Fri Feb  4 15:30:51 2022 -> *Shutting down the main sockets.
3: Fri Feb  4 15:30:51 2022 -> Pid file removed.
3: Fri Feb  4 15:30:51 2022 -> --- Stopped at Fri Feb  4 15:30:51 2022
3: Fri Feb  4 15:30:51 2022 -> *Closing the main sockets.
3: Fri Feb  4 15:30:51 2022 -> Socket file removed.
3: ========================================================================== short test summary info ===========================================================================
3: FAILED clamd_test.py::TC::test_clamd_04_all_testfiles - AssertionError: Expected item `clam-v2.rar: ClamAV-Test-File.UNOFFICIAL FOUND` not found in output:
3: ======================================================================== 1 failed, 9 passed in 17.34s ========================================================================
3/5 Test #3: clamd ............................***Failed   18.11 sec
test 4
    Start 4: freshclam

4: Test command: /opt/local/bin/pytest "-v" "freshclam_test.py"
4: Environment variables: 
4:  PYTHONTRACEMALLOC=1
4:  VERSION=0.104.2
4:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
4:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
4:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
4:  CK_FORK=no
4:  CK_DEFAULT_TIMEOUT=60
4:  LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar
4:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
4:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
4:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
4:  CHECK_CLAMAV=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamav
4:  CHECK_CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamd
4:  CHECK_FPU_ENDIAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_fpu_endian
4:  CLAMBC=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clambc/clambc
4:  CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamd/clamd
4:  CLAMDSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdscan/clamdscan
4:  CLAMDTOP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdtop/clamdtop
4:  CLAMSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan
4:  CLAMSUBMIT=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamsubmit/clamsubmit
4:  CLAMCONF=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamconf/clamconf
4:  FRESHCLAM=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/freshclam/freshclam
4:  SIGTOOL=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/sigtool/sigtool
4:  CLAMAV_MILTER=
4:  CLAMONACC=
4: Test timeout computed to be: 1500
4: ============================================================================ test session starts =============================================================================
4: platform darwin -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
4: cachedir: .pytest_cache
4: rootdir: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests
4: collecting ... collected 10 items
4: 
4: freshclam_test.py::TC::test_freshclam_00_version PASSED                                                                                                                [ 10%]
4: freshclam_test.py::TC::test_freshclam_01_file_copy PASSED                                                                                                              [ 20%]
4: freshclam_test.py::TC::test_freshclam_02_http_403 PASSED                                                                                                               [ 30%]
4: freshclam_test.py::TC::test_freshclam_03_http_403_daemonized PASSED                                                                                                    [ 40%]
4: freshclam_test.py::TC::test_freshclam_04_http_429 PASSED                                                                                                               [ 50%]
4: freshclam_test.py::TC::test_freshclam_05_cdiff_update PASSED                                                                                                           [ 60%]
4: freshclam_test.py::TC::test_freshclam_05_cdiff_update_UNC SKIPPED (This test is specific to Windows.)                                                                  [ 70%]
4: freshclam_test.py::TC::test_freshclam_06_cdiff_partial_minus_1 PASSED                                                                                                  [ 80%]
4: freshclam_test.py::TC::test_freshclam_07_cdiff_partial_minus_2 PASSED                                                                                                  [ 90%]
4: freshclam_test.py::TC::test_freshclam_07_no_cdiff_out_of_date_cvd PASSED                                                                                               [100%]
4: 
4: ======================================================================= 9 passed, 1 skipped in 36.55s ========================================================================
4/5 Test #4: freshclam ........................   Passed   37.38 sec
test 5
    Start 5: sigtool

5: Test command: /opt/local/bin/pytest "-v" "sigtool_test.py"
5: Environment variables: 
5:  PYTHONTRACEMALLOC=1
5:  VERSION=0.104.2
5:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
5:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
5:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
5:  CK_FORK=no
5:  CK_DEFAULT_TIMEOUT=60
5:  LD_LIBRARY_PATH=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libfreshclam:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamav:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclammspack::/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar_iface:/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/libclamunrar
5:  SOURCE=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2
5:  BUILD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build
5:  TMP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests
5:  CHECK_CLAMAV=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamav
5:  CHECK_CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_clamd
5:  CHECK_FPU_ENDIAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/check_fpu_endian
5:  CLAMBC=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clambc/clambc
5:  CLAMD=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamd/clamd
5:  CLAMDSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdscan/clamdscan
5:  CLAMDTOP=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamdtop/clamdtop
5:  CLAMSCAN=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamscan/clamscan
5:  CLAMSUBMIT=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamsubmit/clamsubmit
5:  CLAMCONF=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/clamconf/clamconf
5:  FRESHCLAM=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/freshclam/freshclam
5:  SIGTOOL=/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/sigtool/sigtool
5:  CLAMAV_MILTER=
5:  CLAMONACC=
5: Test timeout computed to be: 1500
5: ============================================================================ test session starts =============================================================================
5: platform darwin -- Python 3.8.12, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 -- /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
5: cachedir: .pytest_cache
5: rootdir: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/clamav-0.104.2/unit_tests
5: collecting ... collected 1 item
5: 
5: sigtool_test.py::TC::test_sigtool_00_version PASSED                                                                                                                    [100%]
5: 
5: ============================================================================= 1 passed in 0.18s ==============================================================================
5/5 Test #5: sigtool ..........................   Passed    0.87 sec

40% tests passed, 3 tests failed out of 5

Total Test time (real) =  96.43 sec

The following tests FAILED:
      1 - libclamav (Failed)
      2 - clamscan (Failed)
      3 - clamd (Failed)
Errors while running CTest
Output from these tests are in: /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
Command failed:  cd "/opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build" && ctest -V 
Exit code: 8
ballapete commented 2 years ago

I invoked ctest -V in build directory on macOS High Sierra, Version 10.13.6, and on macOS Monterey, Version 12.1, also for ClamAV versions .104.0–.104.2. When no version of ClamAV is already installed, the test fails. ClamAV .103.3 has no tests…

micahsnyder commented 2 years ago

Micah,

there is another thing: during the configure phase CMake checks for the existence of git. Is git ever used, is it needed for building or for testing ClamAV?

Git may be used for development builds to set the version number to include a tag in the version number with the git describe --tags --always command. It's not required, but for development builds (as opposed to releases) it can be useful to determine exactly which commit a clamav install came from.

micahsnyder commented 2 years ago

A member of the MacPorts team made aware of this: https://github.com/macports/macports-ports/blob/fdc80cd761af072aa4ec52f0a5082f8c0c5135de/_resources/port1.0/group/cmake-1.1.tcl#L105. The Portfile by which ClamAV is being built has therefore for the tests:

configure.pre_args-replace  -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
                                -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF

while clamav-0.104.2/CMakeLists.txt has:

  158 #
  159 # Set RPATH for custom install prefixes
  160 #
  161 if(APPLE)
  162     set(CMAKE_MACOSX_RPATH 1)
  163 endif()

Could the tests failure come from the latter setting?

This definitely could be that the configure.pre_args-replace is to blame. The test failures you're seeing are coming from the checks to make sure RAR extraction works. If the programs in test are unable to find and load libclamunrar_iface.dylib, then the tests fail and the scans report this, as we're seeing in your test results:

..../build/unit_tests/input/clamav_hdb_scanfiles/clam-v2.rar: OK
..../build/unit_tests/input/clamav_hdb_scanfiles/clam-v3.rar: OK

If you do an install (somewhere) after the build, you might try running a scan to see if the detection works after install. Like this: clamscan -d /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/input/clamav.hdb /opt/local/var/macports/build/_opt_local_ports_sysutils_clamav-legacy/clamav-legacy/work/build/unit_tests/ input/clamav_hdb_scanfiles/clam-v2.rar

If it alerts with FOUND then it may just be an issue with the tests created by the RPATH change and you can probably just ignore the test failures.

ballapete commented 2 years ago

The old installation of ClamAV is (hopefully) not the problem, and neither are the virus DBs or archives with viruses the problem. A proof is needed that the newly built binaries work correctly.

Changing in clamav-0.104.2/CMakeLists.txt the value 1 to 0 does not change the result of the tests. The fail in exactly the same manner (as saved in older log files). At least on Monterey, macOS 12.1.

Do the checks or tests run in a Homebrew environment?

ballapete commented 2 years ago

On High Sierra, macOS 10.13.6, the tests too fail exactly as before when I change clamav-0.104.2/CMakeLists.txt as described.

ballapete commented 2 years ago

The also fail on Mac OS X 10.4.11, Tiger, and Mac OS X 10.5.8, Leopard.

micahsnyder commented 2 years ago

Do the checks or tests run in a Homebrew environment?

It looks to me like the homebrew build script for clamav 0.104.0+ disables the tests. I don't see any history in the ticket as to why. Maybe it is related?

Did your contact with MacPorts explain why they set -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON?
If you set -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF in your build does it resolve the issue?

ballapete commented 2 years ago

They referred to https://github.com/macports/macports-ports/blob/fdc80cd761af072aa4ec52f0a5082f8c0c5135de/_resources/port1.0/group/cmake-1.1.tcl#L105. It was explained that RPATH usually is written into the binaries. During the tests this is undesirable, and so it gets switched off that the installed dynamically shared libraries do not get used (although they seem to be so, because what else could the tests make fail when no version of ClamAV is installed? Could also be a bug in CMake…). Actually in MacPorts two different builds are built, the one for tests and another one to become installed.

I do not exactly know what RPATH actually is. Maybe it helps you to read the original bug report here: https://trac.macports.org/ticket/64021.

suishouen commented 2 years ago

I tried to build Clamav 0.104.2 and make test, and I didn't fail make test on macOS Monterey.

Build Platform:

macOS: Version 12.3.1 (Intel) Xcode: Version 13.3.1 Command Line Tools: Version 13.3.1 cMake: Version 3.23.1 LLVM: Version 12.0.0 (clang+llvm-12.0.0-x86_64-apple-darwin)

cMake Configuration and results of "make test":

`mkdir build cd build cmake \ -D CMAKE_BUILD_TYPE=Release \ -D OPTIMIZE=ON \ -D BYTECODE_RUNTIME="interpreter" \ -D CMAKE_FIND_PACKAGE_PREFER_CONFIG=TRUE \ -D CMAKE_INSTALL_PREFIX=/Users/xxx/clamav/ \ -D ENABLE_JSON_SHARED=OFF \ -D ENABLE_STATIC_LIB=ON \ -D ENABLE_SHARED_LIB=OFF \ -D ENABLE_TESTS=ON \ -D LIBCHECK_ROOT_DIR=/usr/local/check \ -D LIBCHECK_INCLUDE_DIR=/usr/local/check/include/ \ -D LIBCHECK_LIBRARY=/usr/local/check/lib/libcheck.0.dylib \ -D OPENSSL_ROOT_DIR=/usr/local/libressl/ \ -D OPENSSL_CRYPTO_LIBRARY=/usr/local/libressl/lib/libcrypto.47.dylib \ -D OPENSSL_SSL_LIBRARY=/usr/local/libressl/lib/libssl.50.dylib \ -D PCRE2_LIBRARY=/usr/local/pcre2/lib/libpcre2-8.0.dylib \ -D PCRE2_INCLUDE_DIR=/usr/local/pcre2/include/ \ -D JSONC_LIBRARY=/usr/local/json-c/lib/libjson-c.5.dylib \ -D JSONC_INCLUDE_DIR=/usr/local/json-c/include/json-c/ \ -D NCURSES_INCLUDE_DIR=/usr/local/ncurses/include \ -D CURSES_LIBRARY=/usr/local/ncurses/lib/libncurses_g.a \ ..

^

make -j && make test

^

Running tests... Test project /Users/eiichi/Desktop/clamav-0.104.2/build Start 1: libclamav 1/5 Test #1: libclamav ........................ Passed 10.11 sec Start 2: clamscan 2/5 Test #2: clamscan ......................... Passed 3.45 sec Start 3: clamd 3/5 Test #3: clamd ............................ Passed 11.11 sec Start 4: freshclam 4/5 Test #4: freshclam ........................ Passed 36.07 sec Start 5: sigtool 5/5 Test #5: sigtool .......................... Passed 0.23 sec

100% tests passed, 0 tests failed out of 5`

And results of "make test" of clamav-0.105.0-rc2

`Running tests... Test project /Users/xxx/Desktop/clamav-0.105.0-rc2/build Start 1: libclamav 1/6 Test #1: libclamav ........................ Passed 10.19 sec Start 2: libclamav_rust 2/6 Test #2: libclamav_rust ................... Passed 69.11 sec Start 3: clamscan 3/6 Test #3: clamscan ......................... Passed 3.67 sec Start 4: clamd 4/6 Test #4: clamd ............................ Passed 11.32 sec Start 5: freshclam 5/6 Test #5: freshclam ........................ Passed 36.09 sec Start 6: sigtool 6/6 Test #6: sigtool .......................... Passed 0.21 sec

100% tests passed, 0 tests failed out of 6`