Skip to content

Commit

Permalink
add install test for plugin engine
Browse files Browse the repository at this point in the history
  • Loading branch information
caitlinross committed Aug 17, 2021
1 parent 38613e8 commit 8f5e636
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testing/install/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,5 @@ if(NOT WIN32)
endif()
endif()
endif()

add_install_cmake_test(plugin)
28 changes: 28 additions & 0 deletions testing/install/plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#------------------------------------------------------------------------------#
# Distributed under the OSI-approved Apache License, Version 2.0. See
# accompanying file Copyright.txt for details.
#------------------------------------------------------------------------------#

cmake_minimum_required(VERSION 3.6)
project(adios_plugin_test CXX)
enable_testing()

find_package(adios2 REQUIRED)

# add write test
add_executable(adios_plugin_write_test
../../../examples/plugins/engine/examplePluginEngine_write.cpp
../../../examples/plugins/engine/ExampleWritePlugin.cpp
)
target_link_libraries(adios_plugin_write_test adios2::cxx11 adios2::core)
add_test(NAME adios_plugin_write_test COMMAND adios_plugin_write_test)

# add read test
add_executable(adios_plugin_read_test
../../../examples/plugins/engine/examplePluginEngine_read.cpp
../../../examples/plugins/engine/ExampleReadPlugin.cpp
)
target_link_libraries(adios_plugin_read_test adios2::cxx11 adios2::core)
add_test(NAME adios_plugin_read_test COMMAND adios_plugin_read_test)
set_tests_properties(adios_plugin_read_test PROPERTIES
DEPENDS adios_plugin_write_test)

0 comments on commit 8f5e636

Please sign in to comment.