-
Notifications
You must be signed in to change notification settings - Fork 277
Open
Description
When installing the chipdb to separate files, tests are looking for the files in the installed path, where they only exist if this or a previous version is already installed.
As a result, tests cannot run as part of a package build in a clean environment.
In an environment where the previous version is installed, the tests use the chipdb files from the previous version instead of the just-built ones.
As a horrible hack, it works with
add_definitions("-DEXTERNAL_CHIPDB_ROOT=\"$<IF:$<STREQUAL:$<LIST:FILTER,$<TARGET_PROPERTY:NAME>,INCLUDE,.*-test>,>,${EXTERNAL_CHIPDB_ROOT},$<PATH:REMOVE_FILENAME,$<TARGET_PROPERTY:BINARY_DIR>>>\"")
in the toplevel CMakeLists. I think this solution is problematic for a lot of reasons, so it's not a pull request, but it would be cool to have a way to run tests reliably with -DEXTERNAL_CHIPDB=ON.
Metadata
Metadata
Assignees
Labels
No labels