Skip to content
This repository has been archived by the owner on Feb 16, 2025. It is now read-only.

Commit

Permalink
Style: Fix formatting of add_msr_test_plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
sanssecours committed Nov 24, 2019
1 parent 7cc55bc commit 5968b5e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .cmake-format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ additional_commands:
REQUIRED_PLUGINS: +
REQUIRED_TOOLS: +

add_msr_test_plugin:
kwargs:
ENVIRONMENT: +
REQUIRED_PLUGINS: +
REQUIRED_TOOLS: +

download_project:
kwargs:
PROJ: 1
Expand Down
6 changes: 4 additions & 2 deletions scripts/cmake/Modules/LibAddPlugin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,10 @@ function (add_plugin PLUGIN_SHORT_NAME)
endif ()

if (ARG_TEST_README AND ENABLE_KDB_TESTING)
add_msr_test_plugin (${PLUGIN_SHORT_NAME} ENVIRONMENT ${ARG_TEST_ENVIRONMENT} REQUIRED_PLUGINS
${ARG_TEST_REQUIRED_PLUGINS})
add_msr_test_plugin (
${PLUGIN_SHORT_NAME}
ENVIRONMENT ${ARG_TEST_ENVIRONMENT}
REQUIRED_PLUGINS ${ARG_TEST_REQUIRED_PLUGINS})
endif (ARG_TEST_README AND ENABLE_KDB_TESTING)

return ()
Expand Down
14 changes: 8 additions & 6 deletions tests/shell/shell_recorder/tutorial_wrapper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,21 @@ endif (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9)

add_msr_test (tutorial_arrays "${CMAKE_SOURCE_DIR}/doc/tutorials/arrays.md")
add_msr_test (tutorial_cascading "${CMAKE_SOURCE_DIR}/doc/tutorials/cascading.md")
add_msr_test (tutorial_install_config "${CMAKE_SOURCE_DIR}/doc/tutorials/install-config-files.md"
REQUIRED_PLUGINS ini resolver
ENVIRONMENT KDB_EXEC_PATH=${CMAKE_SOURCE_DIR}/scripts/kdb)
add_msr_test (
tutorial_install_config "${CMAKE_SOURCE_DIR}/doc/tutorials/install-config-files.md"
REQUIRED_PLUGINS ini resolver
ENVIRONMENT KDB_EXEC_PATH=${CMAKE_SOURCE_DIR}/scripts/kdb)
add_msr_test (tutorial_storage_plugins "${CMAKE_SOURCE_DIR}/doc/tutorials/storage-plugins.md" REQUIRED_PLUGINS type yamlcpp)
add_msr_test (cmerge "${CMAKE_SOURCE_DIR}/doc/tutorials/cmerge.md" REQUIRED_PLUGINS hosts line PROPERTY LABELS memleak)

if (ENABLE_ASAN)
message (STATUS "Excluding Markdown Shell Recorder test for `validation`, as it leaks memory and fails with ASAN enabled")
else (ENABLE_ASAN)
add_msr_test (tutorial_validation "${CMAKE_SOURCE_DIR}/doc/tutorials/validation.md" REQUIRED_PLUGINS ni validation)
add_msr_test (tutorial_crypto "${CMAKE_SOURCE_DIR}/doc/tutorials/crypto.md"
REQUIRED_PLUGINS crypto_gcrypt fcrypt
REQUIRED_TOOLS gen-gpg-testkey)
add_msr_test (
tutorial_crypto "${CMAKE_SOURCE_DIR}/doc/tutorials/crypto.md"
REQUIRED_PLUGINS crypto_gcrypt fcrypt
REQUIRED_TOOLS gen-gpg-testkey)
endif (ENABLE_ASAN)

# ========
Expand Down

0 comments on commit 5968b5e

Please sign in to comment.