Warning, /graphics/krita/libs/ui/tests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 include(KritaAddBrokenUnitTest) 0002 0003 kis_add_tests( 0004 kis_image_view_converter_test.cpp 0005 kis_shape_selection_test.cpp 0006 kis_coordinates_converter_test.cpp 0007 kis_grid_config_test.cpp 0008 kis_stabilized_events_sampler_test.cpp 0009 kis_brush_hud_properties_config_test.cpp 0010 kis_shape_commands_test.cpp 0011 kis_stop_gradient_editor_test.cpp 0012 kis_multinode_property_test.cpp 0013 KisFrameSerializerTest.cpp 0014 KisFrameCacheStoreTest.cpp 0015 kis_animation_exporter_test.cpp 0016 kis_prescaled_projection_test.cpp 0017 kis_animation_importer_test.cpp 0018 KisSpinBoxSplineUnitConverterTest.cpp 0019 KisDocumentReplaceTest.cpp 0020 KisRssReaderTest.cpp 0021 kis_derived_resources_test.cpp 0022 kis_animation_frame_cache_test.cpp 0023 kis_shape_layer_test.cpp 0024 KisSafeDocumentLoaderTest.cpp 0025 0026 LINK_LIBRARIES kritaui kritatestsdk 0027 NAME_PREFIX "libs-ui-" 0028 ) 0029 0030 kis_add_tests( 0031 kis_doc2_test.cpp 0032 kis_file_layer_test.cpp 0033 LINK_LIBRARIES kritaui kritatransformmaskstubs 0034 NAME_PREFIX "libs-ui-") 0035 0036 if (ENABLE_UPDATERS) 0037 if (UNIX) 0038 kis_add_test( KisAppimageUpdaterTest.cpp 0039 TEST_NAME KisAppimageUpdaterTest 0040 LINK_LIBRARIES kritaui kritatestsdk 0041 NAME_PREFIX "libs-ui-") 0042 endif() 0043 0044 kis_add_test( KisManualUpdaterTest.cpp ../../../sdk/tests/testutil.cpp MockMultiFeedRssModel.cpp 0045 TEST_NAME KisManualUpdaterTest 0046 LINK_LIBRARIES kritaui kritatestsdk 0047 NAME_PREFIX "libs-ui-") 0048 endif() 0049 0050 0051 kis_add_test( KisMultiFeedRssModelTest.cpp ../../../sdk/tests/testutil.cpp MockNetworkAccessManager.cpp 0052 TEST_NAME KisMultiFeedRssModelTest 0053 LINK_LIBRARIES kritaui kritatestsdk 0054 NAME_PREFIX "libs-ui-") 0055 0056 0057 kis_add_test( kis_selection_decoration_test.cpp ../../../sdk/tests/stroke_testing_utils.cpp 0058 TEST_NAME KisSelectionDecorationTest 0059 LINK_LIBRARIES kritaui kritatestsdk 0060 NAME_PREFIX "libs-ui-") 0061 0062 kis_add_test( kis_node_dummies_graph_test.cpp ../../../sdk/tests/testutil.cpp 0063 TEST_NAME KisNodeDummiesGraphTest 0064 LINK_LIBRARIES kritaui kritatestsdk 0065 NAME_PREFIX "libs-ui-") 0066 0067 kis_add_test( kis_node_shapes_graph_test.cpp ../../../sdk/tests/testutil.cpp 0068 TEST_NAME KisNodeShapesGraphTest 0069 LINK_LIBRARIES kritaui kritatestsdk 0070 NAME_PREFIX "libs-ui-") 0071 0072 kis_add_test( kis_model_index_converter_test.cpp ../../../sdk/tests/testutil.cpp 0073 TEST_NAME KisModelIndexConverterTest 0074 LINK_LIBRARIES kritaui kritatestsdk 0075 NAME_PREFIX "libs-ui-") 0076 0077 0078 kis_add_test( kis_categorized_list_model_test.cpp modeltest.cpp 0079 TEST_NAME KisCategorizedListModelTest 0080 LINK_LIBRARIES kritaui kritatestsdk 0081 NAME_PREFIX "libs-ui-") 0082 0083 kis_add_test( kis_node_juggler_compressed_test.cpp ../../../sdk/tests/testutil.cpp 0084 TEST_NAME KisNodeJugglerCompressedTest 0085 LINK_LIBRARIES kritaui kritatestsdk 0086 NAME_PREFIX "libs-ui-") 0087 0088 kis_add_test( 0089 kis_input_manager_test.cpp ../../../sdk/tests/testutil.cpp 0090 TEST_NAME KisInputManagerTest 0091 LINK_LIBRARIES kritaui kritatestsdk 0092 NAME_PREFIX "libs-ui-") 0093 0094 kis_add_test( 0095 kis_node_model_test.cpp modeltest.cpp 0096 TEST_NAME kis_node_model_test 0097 LINK_LIBRARIES kritaui kritatestsdk 0098 NAME_PREFIX "libs-ui-") 0099 0100 kis_add_test( kis_shape_controller_test.cpp kis_dummies_facade_base_test.cpp 0101 TEST_NAME kis_shape_controller_test 0102 LINK_LIBRARIES kritaui kritatestsdk 0103 NAME_PREFIX "libs-ui-") 0104 0105 kis_add_test( kis_dummies_facade_test.cpp kis_dummies_facade_base_test.cpp ../../../sdk/tests/testutil.cpp 0106 TEST_NAME kis_dummies_facade_test 0107 LINK_LIBRARIES kritaui kritatestsdk 0108 NAME_PREFIX "libs-ui-") 0109 0110 0111 ##### Tests that currently fail and should be fixed ##### 0112 0113 # Works under Linux but does not work under Windows 0114 krita_add_broken_unit_test( 0115 kis_painting_assistants_decoration_test.cpp ../../../sdk/tests/testutil.cpp 0116 TEST_NAME KisPaintingAssistantsDecorationTest 0117 LINK_LIBRARIES kritaui kritatestsdk 0118 NAME_PREFIX "libs-ui-" 0119 ) 0120 0121 krita_add_broken_unit_test( kis_clipboard_test.cpp 0122 TEST_NAME KisClipboardTest 0123 LINK_LIBRARIES kritaui kritatestsdk 0124 NAME_PREFIX "libs-ui-" 0125 ) 0126 0127 krita_add_broken_unit_test( freehand_stroke_test.cpp $<TARGET_PROPERTY:kritatestsdk,SOURCE_DIR>/stroke_testing_utils.cpp 0128 TEST_NAME FreehandStrokeTest 0129 LINK_LIBRARIES kritaui kritatestsdk 0130 NAME_PREFIX "libs-ui-" 0131 ) 0132 0133 krita_add_broken_unit_test( FreehandStrokeBenchmark.cpp $<TARGET_PROPERTY:kritatestsdk,SOURCE_DIR>/stroke_testing_utils.cpp 0134 TEST_NAME FreehandStrokeBenchmark 0135 LINK_LIBRARIES kritaui kritatestsdk 0136 NAME_PREFIX "libs-ui-" 0137 ) 0138 0139 krita_add_broken_unit_test( KisPaintOnTransparencyMaskTest.cpp $<TARGET_PROPERTY:kritatestsdk,SOURCE_DIR>/stroke_testing_utils.cpp 0140 TEST_NAME KisPaintOnTransparencyMaskTest 0141 LINK_LIBRARIES kritaui kritatestsdk 0142 NAME_PREFIX "libs-ui-" 0143 ) 0144 0145 krita_add_broken_unit_test( fill_processing_visitor_test.cpp $<TARGET_PROPERTY:kritatestsdk,SOURCE_DIR>/stroke_testing_utils.cpp 0146 TEST_NAME FillProcessingVisitorTest 0147 LINK_LIBRARIES kritaui kritatestsdk 0148 NAME_PREFIX "libs-ui-" 0149 ) 0150 0151 krita_add_broken_unit_test( filter_stroke_test.cpp ../../../sdk/tests/stroke_testing_utils.cpp 0152 TEST_NAME FilterStrokeTest 0153 LINK_LIBRARIES kritaui kritatestsdk 0154 NAME_PREFIX "libs-ui-" 0155 ) 0156 0157 krita_add_broken_unit_test( kis_selection_manager_test.cpp 0158 TEST_NAME KisSelectionManagerTest 0159 LINK_LIBRARIES kritaui kritatestsdk 0160 NAME_PREFIX "libs-ui-" 0161 ) 0162 #set_tests_properties(libs-ui-KisSelectionManagerTest PROPERTIES TIMEOUT 300) 0163 0164 krita_add_broken_unit_test( kis_node_manager_test.cpp 0165 TEST_NAME KisNodeManagerTest 0166 LINK_LIBRARIES kritaui kritatestsdk 0167 NAME_PREFIX "libs-ui-" 0168 ) 0169 0170 krita_add_broken_unit_test( kis_zoom_and_pan_test.cpp ../../../sdk/tests/testutil.cpp 0171 TEST_NAME KisZoomAndPanTest 0172 LINK_LIBRARIES kritaui kritatestsdk 0173 NAME_PREFIX "libs-ui-" 0174 ) 0175 #set_tests_properties(libs-ui-KisZoomAndPanTest PROPERTIES TIMEOUT 300) 0176 0177 krita_add_broken_unit_test( kis_action_manager_test.cpp 0178 TEST_NAME KisActionManagerTest 0179 LINK_LIBRARIES kritaui kritatestsdk 0180 NAME_PREFIX "libs-ui-" 0181 ) 0182 0183 krita_add_broken_unit_test( kis_categories_mapper_test.cpp testing_categories_mapper.cpp 0184 TEST_NAME KisCategoriesMapperTest 0185 LINK_LIBRARIES kritaui kritatestsdk 0186 NAME_PREFIX "libs-ui-" 0187 ) 0188 0189 0190 if (${INSTALL_BENCHMARKS}) 0191 install(TARGETS FreehandStrokeBenchmark ${INSTALL_TARGETS_DEFAULT_ARGS}) 0192 0193 install(FILES data/testing_200px_colorsmudge_default_dulling_old_sa.kpp 0194 data/testing_200px_colorsmudge_default_dulling_new_nsa.kpp 0195 data/testing_200px_colorsmudge_default_dulling_new_sa.kpp 0196 data/testing_800px_colorsmudge_default_dulling_new_sa.kpp 0197 data/testing_200px_colorsmudge_default_dulling_old_nsa.kpp 0198 data/testing_200px_colorsmudge_default_smearing_new_nsa.kpp 0199 data/testing_200px_colorsmudge_default_smearing_new_sa.kpp 0200 data/testing_200px_colorsmudge_default_smearing_old_nsa.kpp 0201 data/testing_200px_colorsmudge_default_smearing_old_sa.kpp 0202 data/testing_200px_colorsmudge_lightness_smearing_new_nsa_maskmode.kpp 0203 data/testing_200px_colorsmudge_lightness_smearing_new_nsa_nopt.kpp 0204 data/testing_200px_colorsmudge_lightness_smearing_new_nsa_ptoverlay.kpp 0205 data/testing_200px_colorsmudge_lightness_smearing_new_nsa_ptoverwrite.kpp 0206 data/testing_1000px_auto_default.kpp 0207 data/testing_1000px_auto_gaussian.kpp 0208 data/testing_1000px_auto_gaussian_rect.kpp 0209 data/testing_1000px_auto_rectangular.kpp 0210 data/testing_1000px_auto_soft.kpp 0211 data/testing_1000px_auto_soft_rect.kpp 0212 data/testing_1000px_stamp_450_rotated.kpp 0213 data/3_texture.png 0214 data/DA_RGBA\ bluegreen_small1.png 0215 DESTINATION ${CMAKE_INSTALL_BINDIR}/data) 0216 endif()