Skip to content

"make test" fails if "make install" is not done #204

@sudipm-mukherjee

Description

@sudipm-mukherjee

As part of make test, its trying to find codes in /usr/local/lib/sail/codecs but if make test is done before make install then the codecs are not found and the test fails.

SAIL: [D] [context_private.c:781] Initialized in 0 ms.
Error: /build/sail.n/tests/bindings/c++/load_options.cpp:45: assertion failed: codecs.size() > 0U
Error: child killed by signal 6 (Aborted)
/bindings/c++/load-options/copy      [ ERROR ]
SAIL: [D] [context_private.c:58] Allocated new global context mutex
SAIL: [D] [context_private.c:206] Allocated new context 0x55b5f205e6e0
SAIL: [I] [context_private.c:710] Version: 0.9.0
SAIL: [I] [context_private.c:715] Build type: Standalone
SAIL: [I] [context_private.c:721] Static build: no
SAIL: [I] [context_private.c:727] Combine codecs: no
SAIL: [I] [context_private.c:731] Thread-safe: yes
SAIL: [I] [context_private.c:737] SAIL_THIRD_PARTY_CODECS_PATH: enabled
SAIL: [D] [context_private.c:663] SAIL_CODECS_PATH environment variable is not set. Loading codecs from '/usr/local/lib/sail/codecs'
SAIL: [D] [context_private.c:164] SAIL_THIRD_PARTY_CODECS_PATH environment variable is not set. Not loading codecs from it
SAIL: [D] [context_private.c:352] Optional LIB directory '/usr/local/lib/sail/codecs/lib' doesn't exist, so not updating LD_LIBRARY_PATH with it
SAIL: [D] [context_private.c:462] Enumerating codecs in '/usr/local/lib/sail/codecs'
SAIL: [E] [context_private.c:518] Failed to list files in '/usr/local/lib/sail/codecs': No such file or directory
SAIL: [E] [context_private.c:705] 

*** No codecs were found. You could try the following:                       ***
*** - Inspect the error messages printed in stderr.                          ***
*** - Check the installation directory.                                      ***

Steps to reproduce:

  1. cmake -DSAIL_BUILD_APPS=OFF -DSAIL_BUILD_EXAMPLES=OFF
  2. make
  3. make test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions