Commit 46c27f94 authored by Dmitry Kazakov's avatar Dmitry Kazakov

Make unit tests' names consistent

TEST_NAME parameter should state **only** the actual name
of the test without any prefixes. NAME_PREFIX should state \
the prefix. And, no, we cannot shortcut the thing and concatenate
the name and the prefix in TEST_NAME, because it will break actual
tests' binary file names.
parent 30fda40c
......@@ -51,3 +51,34 @@ function(KRITA_ADD_BROKEN_UNIT_TEST)
set(${ARG_TEST_NAME_VAR} "${_testname}" PARENT_SCOPE)
endif()
endfunction()
function(KRITA_ADD_BROKEN_UNIT_TESTS)
set(options GUI)
set(oneValueArgs NAME_PREFIX TARGET_NAMES_VAR TEST_NAMES_VAR)
set(multiValueArgs LINK_LIBRARIES)
cmake_parse_arguments(ARG "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
if(ARG_GUI)
set(_exe_type GUI)
else()
set(_exe_type "")
endif()
set(test_names)
set(target_names)
foreach(_test_source ${ARG_UNPARSED_ARGUMENTS})
KRITA_ADD_BROKEN_UNIT_TEST(${_test_source}
NAME_PREFIX ${ARG_NAME_PREFIX}
LINK_LIBRARIES ${ARG_LINK_LIBRARIES}
TARGET_NAME_VAR target_name
TEST_NAME_VAR test_name
${_exe_type}
)
list(APPEND _test_names "${test_name}")
list(APPEND _target_names "${target_name}")
endforeach()
if (ARG_TARGET_NAMES_VAR)
set(${ARG_TARGET_NAMES_VAR} "${_target_names}" PARENT_SCOPE)
endif()
if (ARG_TEST_NAMES_VAR)
set(${ARG_TEST_NAMES_VAR} "${_test_names}" PARENT_SCOPE)
endif()
endfunction()
......@@ -25,6 +25,6 @@ ecm_add_tests(
kis_gbr_brush_test.cpp
kis_boundary_test.cpp
kis_imagepipe_brush_test.cpp
NAME_PREFIX "krita-libbrush-"
NAME_PREFIX "libs-brush-"
LINK_LIBRARIES kritaimage kritalibbrush Qt5::Test
)
......@@ -24,93 +24,66 @@ ecm_add_tests(
TestShapeShadowCommand.cpp
TestInputDevice.cpp
TestSnapStrategy.cpp
NAME_PREFIX "libs-kritaflake-"
LINK_LIBRARIES kritaflake Qt5::Test)
ecm_add_test(TestPathShape.cpp
TEST_NAME libs-kritaflake-TestPathShape
LINK_LIBRARIES kritaflake Qt5::Test)
ecm_add_test(TestControlPointMoveCommand.cpp
TEST_NAME libs-kritaflake-TestControlPointMoveCommand
LINK_LIBRARIES kritaflake Qt5::Test)
ecm_add_test(TestPointTypeCommand.cpp
TEST_NAME libs-kritaflake-TestPointTypeCommand
LINK_LIBRARIES kritaflake Qt5::Test)
ecm_add_test(TestPointRemoveCommand.cpp
TEST_NAME libs-kritaflake-TestPointRemoveCommand
LINK_LIBRARIES kritaflake Qt5::Test)
ecm_add_test(TestRemoveSubpathCommand.cpp
TEST_NAME libs-kritaflake-TestRemoveSubpathCommand
LINK_LIBRARIES kritaflake Qt5::Test)
ecm_add_test(TestPathSegment.cpp
TEST_NAME libs-kritaflake-TestPathSegment
LINK_LIBRARIES kritaflake Qt5::Test)
ecm_add_test(TestSegmentTypeCommand.cpp
TEST_NAME libs-kritaflake-TestSegmentTypeCommand
LINK_LIBRARIES kritaflake Qt5::Test)
krita_add_broken_unit_test(TestPointMergeCommand.cpp
TEST_NAME libs-kritaflake-TestPointMergeCommand
LINK_LIBRARIES kritaflake Qt5::Test)
ecm_add_test(
TestPathShape.cpp
TestControlPointMoveCommand.cpp
TestPointTypeCommand.cpp
TestPointRemoveCommand.cpp
TestRemoveSubpathCommand.cpp
TestPathSegment.cpp
TestSegmentTypeCommand.cpp
TestKoDrag.cpp
TEST_NAME libs-kritaflake-TestKoDrag
LINK_LIBRARIES kritaflake Qt5::Test
)
ecm_add_test(
TestKoMarkerCollection.cpp
TEST_NAME libs-kritaflake-TestKoMarkerCollection
LINK_LIBRARIES kritaflake Qt5::Test
)
NAME_PREFIX "libs-flake-")
ecm_add_test(
TestSvgParser.cpp
TEST_NAME libs-kritaflake-TestSvgParser
TEST_NAME TestSvgParser
LINK_LIBRARIES kritaflake Qt5::Test
)
NAME_PREFIX "libs-flake-")
ecm_add_test(
TestSvgParser.cpp
TEST_NAME libs-kritaflake-TestSvgParserCloned
TEST_NAME TestSvgParserCloned
LINK_LIBRARIES kritaflake Qt5::Test
)
set_property(TARGET libs-kritaflake-TestSvgParserCloned
NAME_PREFIX "libs-flake-")
set_property(TARGET TestSvgParserCloned
PROPERTY COMPILE_DEFINITIONS USE_CLONED_SHAPES)
ecm_add_test(
TestSvgParser.cpp
TEST_NAME libs-kritaflake-TestSvgParserRoundTrip
TEST_NAME TestSvgParserRoundTrip
LINK_LIBRARIES kritaflake Qt5::Test
)
set_property(TARGET libs-kritaflake-TestSvgParserRoundTrip
NAME_PREFIX "libs-flake-")
set_property(TARGET TestSvgParserRoundTrip
PROPERTY COMPILE_DEFINITIONS USE_ROUND_TRIP)
############## broken tests ###############
krita_add_broken_unit_test(TestPointMergeCommand.cpp
TEST_NAME TestPointMergeCommand
LINK_LIBRARIES kritaflake Qt5::Test
NAME_PREFIX "libs-flake-")
krita_add_broken_unit_test(
TestSvgText.cpp
TEST_NAME libs-kritaflake-TestSvgText
TEST_NAME TestSvgText
LINK_LIBRARIES kritaflake Qt5::Test
)
NAME_PREFIX "libs-flake-")
krita_add_broken_unit_test(
TestSvgText.cpp
TEST_NAME libs-kritaflake-TestSvgTextCloned
TEST_NAME TestSvgTextCloned
LINK_LIBRARIES kritaflake Qt5::Test
)
set_property(TARGET libs-kritaflake-TestSvgTextCloned
NAME_PREFIX "libs-flake-")
set_property(TARGET TestSvgTextCloned
PROPERTY COMPILE_DEFINITIONS USE_CLONED_SHAPES)
krita_add_broken_unit_test(
TestSvgText.cpp
TEST_NAME libs-kritaflake-TestSvgTextRoundTrip
TEST_NAME TestSvgTextRoundTrip
LINK_LIBRARIES kritaflake Qt5::Test
)
set_property(TARGET libs-kritaflake-TestSvgTextRoundTrip
NAME_PREFIX "libs-flake-")
set_property(TARGET TestSvgTextRoundTrip
PROPERTY COMPILE_DEFINITIONS USE_ROUND_TRIP)
......@@ -122,115 +122,51 @@ ecm_add_tests(
kis_colorize_mask_test.cpp
kis_mask_similarity_test.cpp
KisMaskGeneratorBenchmark.cpp
kis_layer_style_filter_environment_test.cpp
kis_asl_parser_test.cpp
KisPerStrokeRandomSourceTest.cpp
KisWatershedWorkerTest.cpp
kis_dom_utils_test.cpp
kis_transform_worker_test.cpp
kis_perspective_transform_worker_test.cpp
kis_cs_conversion_test.cpp
kis_processings_test.cpp
kis_projection_leaf_test.cpp
kis_histogram_test.cpp
kis_onion_skin_compositor_test.cpp
LINK_LIBRARIES kritaimage Qt5::Test
NAME_PREFIX "libs-image-")
NAME_PREFIX "libs-image-"
LINK_LIBRARIES kritaimage Qt5::Test)
ecm_add_test(kis_layer_style_filter_environment_test.cpp
TEST_NAME libs-image-layer_style_filter_environment_test
LINK_LIBRARIES ${KDE4_KDEUI_LIBS} kritaimage Qt5::Test)
ecm_add_test(kis_asl_parser_test.cpp
TEST_NAME libs-image-asl_parser_test
LINK_LIBRARIES kritapsd kritapigment kritawidgetutils kritacommand Qt5::Xml Qt5::Test)
ecm_add_test(KisPerStrokeRandomSourceTest.cpp
TEST_NAME libs-image-KisPerStrokeRandomSourceTest
LINK_LIBRARIES kritaimage Qt5::Test)
ecm_add_test(KisWatershedWorkerTest.cpp
TEST_NAME libs-image-KisWatershedWorkerTest
LINK_LIBRARIES kritaimage Qt5::Test)
ecm_add_test(kis_dom_utils_test.cpp
TEST_NAME libs-image-KisDomUtilsTest
LINK_LIBRARIES kritaimage Qt5::Test)
ecm_add_test(kis_transform_worker_test.cpp
TEST_NAME libs-image-KisTransformWorkerTest
LINK_LIBRARIES kritaimage Qt5::Test)
ecm_add_test(kis_perspective_transform_worker_test.cpp
TEST_NAME libs-image-KisPerspectiveTransformWorkerTest
LINK_LIBRARIES kritaimage Qt5::Test)
ecm_add_test(kis_cs_conversion_test.cpp
TEST_NAME libs-image-KisCsConversionTest
LINK_LIBRARIES kritaimage Qt5::Test)
ecm_add_test(kis_processings_test.cpp
TEST_NAME libs-image-KisProcessingsTest
LINK_LIBRARIES kritaimage Qt5::Test)
ecm_add_test(kis_projection_leaf_test.cpp
TEST_NAME libs-image-KisProjectionLeafTest
LINK_LIBRARIES kritaimage Qt5::Test)
if (NOT HAVE_FAILING_CMAKE)
krita_add_broken_unit_test(kis_paint_device_test.cpp
TEST_NAME libs-image-KisPaintDeviceTest
LINK_LIBRARIES kritaimage kritaodf Qt5::Test)
LINK_LIBRARIES kritaimage kritaodf Qt5::Test
NAME_PREFIX "libs-image-")
else()
message(WARNING "Skipping KisPaintDeviceTest!!!!!!!!!!!!!!")
endif()
if (NOT HAVE_FAILING_CMAKE)
krita_add_broken_unit_test(kis_filter_mask_test.cpp
TEST_NAME libs-image-KisFilterMaskTest
LINK_LIBRARIES kritaimage Qt5::Test)
LINK_LIBRARIES kritaimage Qt5::Test
NAME_PREFIX "libs-image-")
else()
message(WARNING "Skipping KisFilterMaskTest!!!!!!!!!!!!!!")
endif()
krita_add_broken_unit_test(kis_transform_mask_test.cpp
TEST_NAME libs-image-KisTransformMaskTest
LINK_LIBRARIES kritaimage Qt5::Test)
ecm_add_test(kis_histogram_test.cpp
TEST_NAME libs-image-KisHistogramTest
LINK_LIBRARIES kritaimage Qt5::Test)
krita_add_broken_unit_test(kis_walkers_test.cpp
TEST_NAME libs-image-KisWalkersTest
LINK_LIBRARIES kritaimage Qt5::Test)
#krita_add_broken_unit_test(kis_async_merger_test.cpp
# TEST_NAME libs-image-KisAsyncMergerTest
# LINK_LIBRARIES kritaimage Qt5::Test)
krita_add_broken_unit_test(kis_update_scheduler_test.cpp
TEST_NAME libs-image-KisUpdateSchedulerTest
LINK_LIBRARIES kritaimage Qt5::Test)
krita_add_broken_unit_test(kis_queues_progress_updater_test.cpp
TEST_NAME libs-image-KisQueuesProgressUpdaterTest
LINK_LIBRARIES kritaimage Qt5::Test)
krita_add_broken_unit_test(kis_cage_transform_worker_test.cpp
TEST_NAME libs-image-KisCageTransformWorkerTest
LINK_LIBRARIES kritaimage Qt5::Test)
krita_add_broken_unit_test(kis_meta_data_test.cpp
TEST_NAME libs-image-KisMetaDataTest
LINK_LIBRARIES kritaimage Qt5::Test)
krita_add_broken_unit_test(kis_random_generator_test.cpp
TEST_NAME libs-image-KisRandomGeneratorTest
LINK_LIBRARIES kritaimage Qt5::Test)
krita_add_broken_unit_test(kis_keyframing_test.cpp
TEST_NAME libs-image-Keyframing-Test
LINK_LIBRARIES kritaimage Qt5::Test)
krita_add_broken_unit_test(kis_image_animation_interface_test.cpp
TEST_NAME libs-image-ImageAnimationInterface-Test
LINK_LIBRARIES ${KDE4_KDEUI_LIBS} kritaimage Qt5::Test)
ecm_add_test(kis_onion_skin_compositor_test.cpp
TEST_NAME libs-image-OnionSkinCompositor-Test
LINK_LIBRARIES ${KDE4_KDEUI_LIBS} kritaimage Qt5::Test)
krita_add_broken_unit_test(kis_layer_styles_test.cpp
TEST_NAME libs-image-LayerStylesTest
LINK_LIBRARIES kritaimage Qt5::Test)
krita_add_broken_unit_tests(
kis_transform_mask_test.cpp
kis_walkers_test.cpp
kis_update_scheduler_test.cpp
##kis_async_merger_test.cpp
kis_queues_progress_updater_test.cpp
kis_cage_transform_worker_test.cpp
kis_meta_data_test.cpp
kis_random_generator_test.cpp
kis_keyframing_test.cpp
kis_image_animation_interface_test.cpp
kis_layer_styles_test.cpp
LINK_LIBRARIES kritaimage Qt5::Test
NAME_PREFIX "libs-image-")
......@@ -97,7 +97,7 @@ private:
/**
* Stores actual tile's data
*/
class KisTileData
class KRITAIMAGE_EXPORT KisTileData
{
public:
KisTileData(qint32 pixelSize, const quint8 *defPixel, KisTileDataStore *store, bool checkFreeMemory = true);
......
......@@ -22,11 +22,13 @@
#include <QThread>
#include <QSemaphore>
#include "kritaimage_export.h"
class KisTileDataStore;
class KisTileData;
class KisTileDataPooler : public QThread
class KRITAIMAGE_EXPORT KisTileDataPooler : public QThread
{
Q_OBJECT
......
......@@ -20,6 +20,7 @@
#define __KIS_CHUNK_LIST_H
#include <QLinkedList>
#include "kritaimage_export.h"
#define MiB (1ULL << 20)
......@@ -57,7 +58,7 @@ class KisChunkData;
typedef QLinkedList<KisChunkData> KisChunkDataList;
typedef KisChunkDataList::iterator KisChunkDataListIterator;
class KisChunkData
class KRITAIMAGE_EXPORT KisChunkData
{
public:
KisChunkData(quint64 begin, quint64 size)
......@@ -89,7 +90,7 @@ public:
quint64 m_end;
};
class KisChunk
class KRITAIMAGE_EXPORT KisChunk
{
public:
KisChunk() {}
......@@ -124,7 +125,7 @@ private:
};
class KisChunkAllocator
class KRITAIMAGE_EXPORT KisChunkAllocator
{
public:
KisChunkAllocator(quint64 slabSize = DEFAULT_SLAB_SIZE,
......
......@@ -26,7 +26,7 @@
#define DEFAULT_WINDOW_SIZE (16*MiB)
class KisMemoryWindow
class KRITAIMAGE_EXPORT KisMemoryWindow
{
public:
/**
......
......@@ -14,37 +14,20 @@ ecm_add_tests(
kis_tiled_data_manager_test.cpp
kis_low_memory_tests.cpp
kis_lockless_stack_test.cpp
NAME_PREFIX "libs-image-tiles3-"
LINK_LIBRARIES kritaimage Qt5::Test)
kis_chunk_allocator_test.cpp
kis_memory_window_test.cpp
LINK_LIBRARIES kritaimage Qt5::Test
NAME_PREFIX "libs-image-tiles3-")
set_tests_properties(libs-image-tiles3-kis_low_memory_tests PROPERTIES TIMEOUT 180)
ecm_add_test(
kis_chunk_allocator_test.cpp ../swap/kis_chunk_allocator.cpp
TEST_NAME libs-image-KisChunkAllocatorTest
LINK_LIBRARIES kritaglobal Qt5::Test)
ecm_add_test(
kis_memory_window_test.cpp ../swap/kis_memory_window.cpp
TEST_NAME libs-image-KisMemoryWindowTest
LINK_LIBRARIES kritaglobal Qt5::Test)
########### next target ###############
krita_add_broken_unit_test(kis_swapped_data_store_test.cpp ../kis_tile_data.cc
TEST_NAME libs-image-KisSwappedDataStoreTest
LINK_LIBRARIES kritaimage Qt5::Test ${Boost_SYSTEM_LIBRARY})
########### next target ###############
krita_add_broken_unit_test(kis_tile_data_store_test.cpp ../kis_tile_data.cc
TEST_NAME libs-image-KisTileDataStoreTest
LINK_LIBRARIES kritaimage Qt5::Test ${Boost_SYSTEM_LIBRARY})
########### next target ###############
krita_add_broken_unit_test(kis_store_limits_test.cpp ../kis_tile_data.cc
TEST_NAME libs-image-KisStoreLimitsTest
LINK_LIBRARIES kritaimage Qt5::Test ${Boost_SYSTEM_LIBRARY})
########### next target ###############
krita_add_broken_unit_test(kis_tile_data_pooler_test.cpp ../kis_tile_data.cc ../kis_tile_data_pooler.cc
TEST_NAME libs-image-KisTileDataPoolerTest
LINK_LIBRARIES kritaimage Qt5::Test ${Boost_SYSTEM_LIBRARY})
########### broken tests ###############
krita_add_broken_unit_tests(
kis_swapped_data_store_test.cpp
kis_tile_data_store_test.cpp
kis_store_limits_test.cpp
kis_tile_data_pooler_test.cpp
LINK_LIBRARIES kritaimage Qt5::Test
NAME_PREFIX "libs-image-tiles3-")
......@@ -13,5 +13,5 @@ ecm_add_tests(
TestFilter.cpp
TestManagedColor.cpp
TestNotifier
NAME_PREFIX "libs-kritalibkis-"
NAME_PREFIX "libs-libkis-"
LINK_LIBRARIES kritalibkis Qt5::Test)
......@@ -4,13 +4,15 @@ include(ECMAddTests)
ecm_add_test(
../KoLZF.cpp TestKoLZF.cpp
TEST_NAME libs-odf-TestKoLZF
LINK_LIBRARIES kritastore Qt5::Test)
TEST_NAME TestKoLZF
LINK_LIBRARIES kritastore Qt5::Test
NAME_PREFIX "libs-odf")
ecm_add_test(
../KoLZF.cpp TestKoXmlVector.cpp
TEST_NAME libs-odf-TestKoXmlVector
LINK_LIBRARIES kritastore Qt5::Test)
TEST_NAME TestKoXmlVector
LINK_LIBRARIES kritastore Qt5::Test
NAME_PREFIX "libs-odf")
########### manual test for file contents ###############
......
......@@ -22,53 +22,56 @@ ecm_add_tests(
kis_stop_gradient_editor_test.cpp
kis_file_layer_test.cpp
kis_multinode_property_test.cpp
NAME_PREFIX "libs-ui-"
KisFrameSerializerTest.cpp
KisFrameCacheStoreTest.cpp
kis_animation_exporter_test.cpp
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-"
)
ecm_add_test( KisFrameSerializerTest.cpp
TEST_NAME libs-ui-KisFrameSerializerTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
ecm_add_test( KisFrameCacheStoreTest.cpp
TEST_NAME libs-ui-KisFrameCacheStoreTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
ecm_add_test( kis_selection_decoration_test.cpp ../../../sdk/tests/stroke_testing_utils.cpp
TEST_NAME libs-ui-KisSelectionDecorationTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME KisSelectionDecorationTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
ecm_add_test( kis_node_dummies_graph_test.cpp ../../../sdk/tests/testutil.cpp
TEST_NAME libs-ui-KisNodeDummiesGraphTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME KisNodeDummiesGraphTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
ecm_add_test( kis_node_shapes_graph_test.cpp ../../../sdk/tests/testutil.cpp
TEST_NAME libs-ui-KisNodeShapesGraphTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME KisNodeShapesGraphTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
ecm_add_test( kis_model_index_converter_test.cpp ../../../sdk/tests/testutil.cpp
TEST_NAME libs-ui-KisModelIndexConverterTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME KisModelIndexConverterTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
ecm_add_test( kis_categorized_list_model_test.cpp modeltest.cpp
TEST_NAME libs-ui-KisCategorizedListModelTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME KisCategorizedListModelTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
ecm_add_test( kis_node_juggler_compressed_test.cpp ../../../sdk/tests/testutil.cpp
TEST_NAME libs-ui-KisNodeJugglerCompressedTest
LINK_LIBRARIES kritaimage kritaui Qt5::Test)
ecm_add_test(
kis_animation_exporter_test.cpp
TEST_NAME libs-ui-animation_exporter_test
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME KisNodeJugglerCompressedTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
set(kis_node_view_test_SRCS kis_node_view_test.cpp ../../../sdk/tests/testutil.cpp)
qt5_add_resources(kis_node_view_test_SRCS ${krita_QRCS})
ecm_add_test(${kis_node_view_test_SRCS}
TEST_NAME libs-ui-kis_node_view_test
LINK_LIBRARIES kritaimage kritaui Qt5::Test)
TEST_NAME kis_node_view_test
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
ecm_add_test(
kis_input_manager_test.cpp ../../../sdk/tests/testutil.cpp
TEST_NAME KisInputManagerTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
##### Tests that currently fail and should be fixed #####
......@@ -77,102 +80,118 @@ include(KritaAddBrokenUnitTest)
krita_add_broken_unit_test(
kis_node_model_test.cpp modeltest.cpp
TEST_NAME libs-ui-kis_node_model_test
LINK_LIBRARIES kritaui Qt5::Test)
TEST_NAME kis_node_model_test
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test(
kis_shape_controller_test.cpp kis_dummies_facade_base_test.cpp
TEST_NAME libs-ui-kis_shape_controller_test
LINK_LIBRARIES kritaimage kritaui Qt5::Test)
TEST_NAME kis_shape_controller_test
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test(
kis_prescaled_projection_test.cpp
TEST_NAME libs-ui-kis_prescaled_projection_test
LINK_LIBRARIES kritaui Qt5::Test)
TEST_NAME kis_prescaled_projection_test
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test(
kis_exiv2_test.cpp
TEST_NAME libs-ui-KisExiv2Test
LINK_LIBRARIES kritaimage kritaui Qt5::Test)
TEST_NAME KisExiv2Test
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test(
kis_clipboard_test.cpp
TEST_NAME libs-ui-KisClipboardTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME KisClipboardTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test(
freehand_stroke_test.cpp ${CMAKE_SOURCE_DIR}/sdk/tests/stroke_testing_utils.cpp
TEST_NAME libs-ui-FreehandStrokeTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME FreehandStrokeTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test(
FreehandStrokeBenchmark.cpp ${CMAKE_SOURCE_DIR}/sdk/tests/stroke_testing_utils.cpp
TEST_NAME libs-ui-FreehandStrokeBenchmark
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME FreehandStrokeBenchmark
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test(
KisPaintOnTransparencyMaskTest.cpp ${CMAKE_SOURCE_DIR}/sdk/tests/stroke_testing_utils.cpp
TEST_NAME libs-ui-KisPaintOnTransparencyMaskTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME KisPaintOnTransparencyMaskTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test(
fill_processing_visitor_test.cpp ${CMAKE_SOURCE_DIR}/sdk/tests/stroke_testing_utils.cpp
TEST_NAME libs-ui-FillProcessingVisitorTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME FillProcessingVisitorTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test(
filter_stroke_test.cpp ../../../sdk/tests/stroke_testing_utils.cpp
TEST_NAME libs-ui-FilterStrokeTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME FilterStrokeTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test(
kis_selection_manager_test.cpp
TEST_NAME libs-ui-KisSelectionManagerTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME KisSelectionManagerTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
#set_tests_properties(libs-ui-KisSelectionManagerTest PROPERTIES TIMEOUT 300)
krita_add_broken_unit_test(
kis_node_manager_test.cpp
TEST_NAME libs-ui-KisNodeManagerTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME KisNodeManagerTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test(
kis_dummies_facade_test.cpp kis_dummies_facade_base_test.cpp ../../../sdk/tests/testutil.cpp
TEST_NAME libs-ui-KisDummiesFacadeTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME KisDummiesFacadeTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test(
kis_zoom_and_pan_test.cpp ../../../sdk/tests/testutil.cpp
TEST_NAME libs-ui-KisZoomAndPanTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME KisZoomAndPanTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
#set_tests_properties(libs-ui-KisZoomAndPanTest PROPERTIES TIMEOUT 300)
krita_add_broken_unit_test(
kis_action_manager_test.cpp
TEST_NAME libs-ui-KisActionManagerTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME KisActionManagerTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test(
kis_categories_mapper_test.cpp testing_categories_mapper.cpp
TEST_NAME libs-ui-KisCategoriesMapperTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME KisCategoriesMapperTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test(
kis_asl_layer_style_serializer_test.cpp
TEST_NAME libs-ui-KisAslLayerStyleSerializerTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME KisAslLayerStyleSerializerTest
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test(
kis_animation_importer_test.cpp
TEST_NAME libs-ui-animation_importer_test
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME kis_animation_importer_test
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test(
kis_animation_frame_cache_test.cpp
TEST_NAME libs-ui-animation_frame_cache_test
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
TEST_NAME kis_animation_frame_cache_test
LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
ecm_add_test(
kis_input_manager_test.cpp ../../../sdk/tests/testutil.cpp
TEST_NAME libs-ui-KisInputManagerTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
......@@ -9,17 +9,9 @@ include(ECMAddTests)
ecm_add_tests(
KisActionsSnapshotTest.cpp
KoPropertiesTest.cpp
kis_simple_math_parser_test.cpp # FIXME this test should be in the ui directory
TestKoProgressUpdater.cpp
NAME_PREFIX "libs-widgetutils-"
LINK_LIBRARIES kritawidgetutils Qt5::Test
LINK_LIBRARIES kritawidgetutils kritaimage Qt5::Test
)
# FIXME this test should be in the ui directory
ecm_add_test(
kis_simple_math_parser_test.cpp
TEST_NAME libs-widgetutils-KisSimpleMathParserTest
LINK_LIBRARIES kritaui Qt5::Test)
ecm_add_test(
TestKoProgressUpdater.cpp
TEST_NAME libs-widgetutils-TestKoProgressUpdater
LINK_LIBRARIES kritaui Qt5::Test)
......@@ -10,5 +10,6 @@ krita_add_broken_unit_test(kis_ocio_display_filter_test.cpp
../black_white_point_chooser.cpp
../ocio_display_filter.cpp
${CMAKE_SOURCE_DIR}/sdk/tests/stroke_testing_utils.cpp
TEST_NAME plugins-dockers-lut-KisOcioDisplayFilterTest
LINK_LIBRARIES kritaimage kritaui ${OCIO_LIBRARIES} KF5::I18n Qt5::Test)
TEST_NAME KisOcioDisplayFilterTest
LINK_LIBRARIES kritaui ${OCIO_LIBRARIES} KF5::I18n Qt5::Test
NAME_PREFIX "plugins-dockers-lut-")
......@@ -7,5 +7,6 @@ include_directories( ${CMAKE_SOURCE_DIR}/sdk/tests
macro_add_unittest_definitions()
ecm_add_test(kis_qmic_tests.cpp ${CMAKE_CURRENT_SOURCE_DIR}/../kis_qmic_simple_convertor.cpp
TEST_NAME plugins-extensions-qmic_test
LINK_LIBRARIES kritaimage Qt5::Test)
TEST_NAME kis_qmic_tests