@@ -22,7 +22,7 @@ include_directories(
23remove_definitions(-DQT_NO_KEYWORDS)
23remove_definitions(-DQT_NO_KEYWORDS)
25−add_definitions(-DDASHVIEWSTEST_FOLDER="${CMAKE_CURRENT_SOURCE_DIR}")
25+add_definitions(-DTEST_DIR="plugins/Dash")
27macro(add_lvwph_test FILENAME TESTNAME)
27macro(add_lvwph_test FILENAME TESTNAME)
28 add_executable(${TESTNAME}TestExec
28 add_executable(${TESTNAME}TestExec
@@ -72,6 +72,10 @@ add_dashview_try_test(verticaljournal VerticalJournal)
72add_dashview_try_test(horizontaljournal HorizontalJournal)
72add_dashview_try_test(horizontaljournal HorizontalJournal)
73add_dashview_try_test(organicgrid OrganicGrid)
73add_dashview_try_test(organicgrid OrganicGrid)
75+# Install data files needed for tests
76+file(GLOB qml_files *.qml)
77+install(FILES ${qml_files} DESTINATION "${SHELL_APP_DIR}/tests/plugins/Dash")
75# CardCreator test
79# CardCreator test
76add_executable(CardCreatorTestExec cardcreatortest.cpp)
80add_executable(CardCreatorTestExec cardcreatortest.cpp)
77qt5_use_modules(CardCreatorTestExec Test Core Qml)
81qt5_use_modules(CardCreatorTestExec Test Core Qml)
@@ -80,6 +84,7 @@ install(TARGETS CardCreatorTestExec
80 DESTINATION "${SHELL_PRIVATE_LIBDIR}/tests/plugins/Dash"
84 DESTINATION "${SHELL_PRIVATE_LIBDIR}/tests/plugins/Dash"
82add_unity8_uitest(CardCreator CardCreatorTestExec DEPENDS Dash-qml)
86add_unity8_uitest(CardCreator CardCreatorTestExec DEPENDS Dash-qml)
87+install(DIRECTORY cardcreator DESTINATION "${SHELL_APP_DIR}/tests/plugins/Dash")
84# plain qml test
89# plain qml test
85foreach(dash_test ScopeStyle ListViewWithPageHeaderQML CardAttributes CroppedImageMinimumSourceSize)
90foreach(dash_test ScopeStyle ListViewWithPageHeaderQML CardAttributes CroppedImageMinimumSourceSize)