4# There's no cmake var for v8 include path :-/
6LIST(GET Qt5Core_INCLUDE_DIRS 0 QtCoreDir0)
7if(${Qt5Core_VERSION_STRING} VERSION_LESS "5.1.0")
8 SET(Qt5V8_PRIVATE_INCLUDE_DIR ${QtCoreDir0}/../QtV8/${Qt5Core_VERSION_STRING}/QtV8)
10 SET(Qt5V8_PRIVATE_INCLUDE_DIR ${QtCoreDir0}/QtV8/${Qt5Core_VERSION_STRING}/QtV8)
16 ${Qt5Qml_PRIVATE_INCLUDE_DIRS}
17 ${Qt5Quick_INCLUDE_DIRS}
18 ${Qt5Quick_PRIVATE_INCLUDE_DIRS}
19 ${Qt5V8_PRIVATE_INCLUDE_DIR}
23 ${CMAKE_CURRENT_SOURCE_DIR}/../../../plugins/Dash
24 ${CMAKE_CURRENT_BINARY_DIR}
27remove_definitions(-DQT_NO_KEYWORDS)
29add_definitions(-DTEST_DIR="plugins/Dash")
31macro(add_lvwph_test FILENAME TESTNAME)
32 add_executable(${TESTNAME}TestExec
34 ${CMAKE_CURRENT_SOURCE_DIR}/../../../plugins/Dash/listviewwithpageheader.cpp)
35 qt5_use_modules(${TESTNAME}TestExec Test Core Qml)
36 target_link_libraries(${TESTNAME}TestExec ${Qt5Gui_LIBRARIES} ${Qt5Quick_LIBRARIES})
37 install(TARGETS ${TESTNAME}TestExec
38 DESTINATION "${SHELL_PRIVATE_LIBDIR}/tests/plugins/Dash"
41 add_unity8_uitest(${TESTNAME} ${TESTNAME}TestExec DEPENDS Dash-qml)
44add_lvwph_test(listviewwithpageheader ListViewWithPageHeader)
45add_lvwph_test(listviewwithpageheadersection ListViewWithPageHeaderSection)
46add_lvwph_test(listviewwithpageheadersectionexternalmodel ListViewWithPageHeaderSectionExternalModel)
48macro(add_dashview_try_test FILENAME TESTNAME)
49 add_executable(${TESTNAME}TestExec
51 ${CMAKE_CURRENT_SOURCE_DIR}/../../../plugins/Dash/${FILENAME}.cpp
52 ${CMAKE_CURRENT_SOURCE_DIR}/../../../plugins/Dash/abstractdashview.cpp
54 qt5_use_modules(${TESTNAME}TestExec Test Core Qml)
55 target_link_libraries(${TESTNAME}TestExec ${Qt5Gui_LIBRARIES} ${Qt5Quick_LIBRARIES})
56 install(TARGETS ${TESTNAME}TestExec
57 DESTINATION "${SHELL_PRIVATE_LIBDIR}/tests/plugins/Dash"
60 add_unity8_uitest(${TESTNAME} ${TESTNAME}TestExec DEPENDS Dash-qml)
62 add_executable(${TESTNAME}TryExec
64 ${CMAKE_CURRENT_SOURCE_DIR}/../../../plugins/Dash/${FILENAME}.cpp
65 ${CMAKE_CURRENT_SOURCE_DIR}/../../../plugins/Dash/abstractdashview.cpp
67 qt5_use_modules(${TESTNAME}TryExec Test Core Qml)
68 target_link_libraries(${TESTNAME}TryExec ${Qt5Gui_LIBRARIES} ${Qt5Quick_LIBRARIES})
69 install(TARGETS ${TESTNAME}TryExec
70 DESTINATION "${SHELL_PRIVATE_LIBDIR}/tests/plugins/Dash"
72 add_manual_test(${TESTNAME} ${TESTNAME}TryExec DEPENDS Dash-qml)
75add_dashview_try_test(verticaljournal VerticalJournal)
76add_dashview_try_test(horizontaljournal HorizontalJournal)
77add_dashview_try_test(organicgrid OrganicGrid)
79# Install data files needed for tests
80file(GLOB qml_files RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" *.qml)
81foreach(qml_file ${qml_files})
82 add_qml_test_data(. "${qml_file}")
86add_executable(CardCreatorTestExec cardcreatortest.cpp)
87qt5_use_modules(CardCreatorTestExec Test Core Qml)
88target_link_libraries(CardCreatorTestExec ${Qt5Gui_LIBRARIES} ${Qt5Quick_LIBRARIES})
89install(TARGETS CardCreatorTestExec
90 DESTINATION "${SHELL_PRIVATE_LIBDIR}/tests/plugins/Dash"
92add_unity8_uitest(CardCreator CardCreatorTestExec DEPENDS Dash-qml)
93add_qml_test_data(. cardcreator)
95# This one qml file imports a file in an arch-specific directory, so to make its
96# import line relative, we install it into an arch-specific directory too.
97add_qml_test_data(. cardcreatortest.qml
98 DESTINATION "${SHELL_PRIVATE_LIBDIR}/tests/plugins/Dash"
102foreach(dash_test ScopeStyle ListViewWithPageHeaderQML CardAttributes CroppedImageMinimumSourceSize)
103 add_unity8_qmltest(. ${dash_test})
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list