Permalink
Browse files

cmake: add dependency from plugin tests to plugins

  • Loading branch information...
kodebach committed Oct 10, 2018
1 parent 7623f73 commit 46a23c47cfcf4e53fc235bae77296efd5fbe962f
Showing with 8 additions and 0 deletions.
  1. +6 −0 cmake/Modules/LibAddPlugin.cmake
  2. +2 −0 doc/news/_preparation_next_release.md
@@ -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)
@@ -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

0 comments on commit 46a23c4

Please sign in to comment.