2 # Call this macro after calling mitk_create_plugin for a test plugin
3 # in your CMakeLists.txt
7 # - BLUEBERRY_TEST_APP contains the name of the executable which will start the OSGi framework
20 if(NOT BUNDLE-SYMBOLICNAME)
21 string(REPLACE "_" "." BUNDLE-SYMBOLICNAME ${PROJECT_NAME})
23 add_test(${BUNDLE-SYMBOLICNAME} ${BLUEBERRY_TEST_APP} ${_cla_switch}BlueBerry.application=coretestapplication ${_cla_switch}BlueBerry.testplugin=${BUNDLE-SYMBOLICNAME})
27 set(_labels BlueBerry)
29 set_property(TEST ${BUNDLE-SYMBOLICNAME} PROPERTY LABELS ${_labels})
35 # - BLUEBERRY_UI_TEST_APP contains the name of the executable which will start the OSGi framework
36 # - BLUEBERRY_TEST_APP_ID contains the application id of the application to test. If empty,
37 # a minimalistic default application will be started
49 if(NOT BUNDLE-SYMBOLICNAME)
50 string(REPLACE "_" "." BUNDLE-SYMBOLICNAME ${PROJECT_NAME})
53 if(BLUEBERRY_ENABLE_GUI_TESTING)
54 if(BLUEBERRY_TEST_APP_ID)
55 set(_app_id_arg "${_cla_switch}BlueBerry.testapplication=${BLUEBERRY_TEST_APP_ID}
")
60 add_test(${BUNDLE-SYMBOLICNAME} ${BLUEBERRY_UI_TEST_APP} ${_cla_switch}BlueBerry.application=uitestapplication ${_app_id_arg} ${_cla_switch}BlueBerry.testplugin=${BUNDLE-SYMBOLICNAME})
64 set(_labels BlueBerry)
66 set_property(TEST ${BUNDLE-SYMBOLICNAME} PROPERTY LABELS ${_labels})
69 endmacro(MACRO_TEST_UIPLUGIN)