Skip to content

Commit

Permalink
cmake: add dependency from plugin tests to plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
kodebach committed Oct 10, 2018
1 parent 7623f73 commit 46a23c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/Modules/LibAddPlugin.cmake
Expand Up @@ -124,6 +124,12 @@ function (add_plugintest testname)
add_executable (${testexename} ${TEST_SOURCES})
add_dependencies (${testexename} kdberrors_generated)

if (ARG_LINK_PLUGIN)
add_dependencies (${testexename} elektra-${ARG_LINK_PLUGIN})
else ()
add_dependencies (${testexename} elektra-${testname})
endif ()

# ~~~
# alternative approach to restore_variable
# get_target_property(TARGET_COMPILE_DEFINITIONS PLUGIN_TARGET_OBJS COMPILE_DEFINITIONS)
Expand Down
2 changes: 2 additions & 0 deletions doc/news/_preparation_next_release.md
Expand Up @@ -237,6 +237,8 @@ you up to date with the multi-language support provided by Elektra.
Currently, the tests are only active for `dump` and `mmapstorage`. *(Mihael Pranjić)*
- The test `testcpp_contextual_basic` now compiles without warnings, if we use Clang 7 as compiler. *(René Schwaiger)*
- crypto, fcrypt and gpgme properly shut down the gpg-agent after the unit test is done. See #1973 . *(Peter Nirschl)*
- The CMake targets for plugin tests (`testmod_[plugin]`) now depend on the respective CMake targets for the plugins themselves
(`elektra-[plugin]`). *(Klemens Böswirth)*

[Markdown Shell Recorder]: https://master.libelektra.org/tests/shell/shell_recorder/tutorial_wrapper

Expand Down

0 comments on commit 46a23c4

Please sign in to comment.