-
Notifications
You must be signed in to change notification settings - Fork 123
KDB_EXEC_PATH should not be set in installed test scripts #3246
Comments
Thank you for reporting this problem! I think its unrelated to check_meta in particular but it is in all tests (as it is done in tests/shell/include_common.sh.in). I agree with @kodebach that we need to avoid this line completely for the installed scripts using a similar logic as we have for KDB. @petermax2 do you maybe have time to fix this? |
|
Maybe the line can be removed from there altogether and we simply set KDB_EXEC_PATH from within the environment of cmake/ctest as it is already done in tests/shell/shell_recorder/tutorial_wrapper/CMakeLists.txt |
AFAIK CMake's |
@kodebach is right! Setting the environment via |
Not so much. I will try to find a fix but I don't know when I'll be able to investigate further. |
@petermax2 thank you! |
I just took the master version of Elektra and installed it. The file
/usr/local/lib/elektra/tool_exec/check_meta
contains the line:Of course this doesn't affect
testmod_*
tests, but it is wrong nonetheless. I will create a new issue.Originally posted by @kodebach in #2856 (comment)
Setting
KDB_EXEC_PATH
in installed test scripts not necessarily wrong, but it should not contain the build directory. It wouldn't matter, if the build directory no longer exists. But tests could break, if the build directory contains different versions of the test scripts.We should use a solution similar to the one that is used for the
$KDB
variable. It is only set to${CMAKE_BINARY_DIR}/bin/kdb
in thetestscr_*
variants of the tests, which are not installed.The text was updated successfully, but these errors were encountered: