Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/examples/misc/DstExample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ add_jana_plugin(DstExample)

add_test(
NAME jana-example-dst-tests
COMMAND jana -Pplugins=DstExample)
COMMAND $<TARGET_FILE:jana> -Pplugins=DstExample)
set_tests_properties(jana-example-dst-tests PROPERTIES
ENVIRONMENT "JANA_PLUGIN_PATH=${CMAKE_BINARY_DIR}/lib/JANA/plugins;LD_LIBRARY_PATH=$<TARGET_FILE_DIR:jana2_shared_lib>:$ENV{LD_LIBRARY_PATH}"
)
4 changes: 2 additions & 2 deletions src/examples/misc/EventGroupExample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
add_jana_plugin(EventGroupExample)

add_test(NAME jana-example-eventgroup-tests
COMMAND jana -Pplugins=EventGroupExample)
COMMAND $<TARGET_FILE:jana> -Pplugins=EventGroupExample)

set_tests_properties(jana-example-eventgroup-tests PROPERTIES
ENVIRONMENT "JANA_PLUGIN_PATH=${CMAKE_BINARY_DIR}/lib/JANA/plugins;LD_LIBRARY_PATH=$<TARGET_FILE_DIR:jana2_shared_lib>:$ENV{LD_LIBRARY_PATH}"
)

2 changes: 1 addition & 1 deletion src/examples/misc/RootDatamodelExample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if(${USE_ROOT})
install(FILES ${my_pcms} DESTINATION lib/JANA/plugins)

add_test(NAME jana-example-rootdatamodel-tests
COMMAND jana -Pplugins=RootDatamodelExample -Pjana:nevents=10)
COMMAND $<TARGET_FILE:jana> -Pplugins=RootDatamodelExample -Pjana:nevents=10)

set_tests_properties(jana-example-rootdatamodel-tests
PROPERTIES
Expand Down
6 changes: 4 additions & 2 deletions src/examples/misc/TimesliceExample/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ if (USE_PODIO)
target_link_libraries(TimesliceExample PUBLIC PodioDatamodel PodioDatamodelDict podio::podioRootIO)

add_test(NAME jana-example-timeslices-simple-tests
COMMAND ${CMAKE_INSTALL_PREFIX}/bin/jana -Pplugins=TimesliceExample -Puse_timeslices=0 -Pjana:nevents=10 events.root)
COMMAND $<TARGET_FILE:jana> -Pplugins=TimesliceExample -Puse_timeslices=0 -Pjana:nevents=10 events.root)

set_tests_properties(jana-example-timeslices-simple-tests PROPERTIES
ENVIRONMENT "JANA_PLUGIN_PATH=${CMAKE_BINARY_DIR}/lib/JANA/plugins;LD_LIBRARY_PATH=$<TARGET_FILE_DIR:jana2_shared_lib>:$ENV{LD_LIBRARY_PATH}"
)

add_test(NAME jana-example-timeslices-complex-tests
COMMAND ${CMAKE_INSTALL_PREFIX}/bin/jana -Pplugins=TimesliceExample -Puse_timeslices=1 -Pjana:nevents=10 timeslices.root)
COMMAND $<TARGET_FILE:jana> -Pplugins=TimesliceExample -Puse_timeslices=1 -Pjana:nevents=10 timeslices.root)

set_tests_properties(jana-example-timeslices-complex-tests PROPERTIES
ENVIRONMENT "JANA_PLUGIN_PATH=${CMAKE_BINARY_DIR}/lib/JANA/plugins;LD_LIBRARY_PATH=$<TARGET_FILE_DIR:jana2_shared_lib>:$ENV{LD_LIBRARY_PATH}"
)
Expand Down
4 changes: 2 additions & 2 deletions src/examples/misc/Tutorial/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
add_jana_plugin(Tutorial)

add_test(NAME jana-example-tutorial-tests
COMMAND jana -Pplugins=Tutorial -Pjana:nevents=50)
COMMAND $<TARGET_FILE:jana> -Pplugins=Tutorial -Pjana:nevents=50)

set_tests_properties(jana-example-tutorial-tests PROPERTIES
ENVIRONMENT "JANA_PLUGIN_PATH=${CMAKE_BINARY_DIR}/lib/JANA/plugins;LD_LIBRARY_PATH=$<TARGET_FILE_DIR:jana2_shared_lib>:$ENV{LD_LIBRARY_PATH}"
)


Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ add_jana_plugin(lw_random_hit_source
)
target_link_libraries(lw_random_hit_source PUBLIC lw_random_hit_source_common)

add_test(NAME examples-lw-00-smoketest COMMAND jana -Pplugins=lw_random_hit_source -Pjana:nevents=10)
add_test(NAME examples-lw-00-smoketest COMMAND $<TARGET_FILE:jana> -Pplugins=lw_random_hit_source -Pjana:nevents=10)

set_tests_properties(examples-lw-00-smoketest PROPERTIES
LABELS "examples"
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/JTest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
add_jana_plugin(JTest)

add_test(NAME jana-plugin-jtest-tests
COMMAND jana -Pplugins=JTest -Pjana:nevents=20)
COMMAND $<TARGET_FILE:jana> -Pplugins=JTest -Pjana:nevents=20)

set_tests_properties(jana-plugin-jtest-tests PROPERTIES
ENVIRONMENT "JANA_PLUGIN_PATH=${CMAKE_BINARY_DIR}/lib/JANA/plugins;LD_LIBRARY_PATH=$<TARGET_FILE_DIR:jana2_shared_lib>:$ENV{LD_LIBRARY_PATH}"
)


3 changes: 2 additions & 1 deletion src/plugins/janadot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ find_package(Threads REQUIRED)
target_link_libraries(janadot PUBLIC Threads::Threads)

add_test(NAME jana-plugin-janadot-tests
COMMAND jana -Pplugins=JTest,janadot -Pjana:nevents=10)
COMMAND $<TARGET_FILE:jana> -Pplugins=JTest,janadot -Pjana:nevents=10)

set_tests_properties(jana-plugin-janadot-tests PROPERTIES
ENVIRONMENT "JANA_PLUGIN_PATH=${CMAKE_BINARY_DIR}/lib/JANA/plugins;LD_LIBRARY_PATH=$<TARGET_FILE_DIR:jana2_shared_lib>:$ENV{LD_LIBRARY_PATH}"
)
Expand Down
Loading