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) ...@@ -51,3 +51,34 @@ function(KRITA_ADD_BROKEN_UNIT_TEST)
set(${ARG_TEST_NAME_VAR} "${_testname}" PARENT_SCOPE) set(${ARG_TEST_NAME_VAR} "${_testname}" PARENT_SCOPE)
endif() endif()
endfunction() 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( ...@@ -25,6 +25,6 @@ ecm_add_tests(
kis_gbr_brush_test.cpp kis_gbr_brush_test.cpp
kis_boundary_test.cpp kis_boundary_test.cpp
kis_imagepipe_brush_test.cpp kis_imagepipe_brush_test.cpp
NAME_PREFIX "krita-libbrush-" NAME_PREFIX "libs-brush-"
LINK_LIBRARIES kritaimage kritalibbrush Qt5::Test LINK_LIBRARIES kritaimage kritalibbrush Qt5::Test
) )
...@@ -24,93 +24,66 @@ ecm_add_tests( ...@@ -24,93 +24,66 @@ ecm_add_tests(
TestShapeShadowCommand.cpp TestShapeShadowCommand.cpp
TestInputDevice.cpp TestInputDevice.cpp
TestSnapStrategy.cpp TestSnapStrategy.cpp
NAME_PREFIX "libs-kritaflake-" TestPathShape.cpp
LINK_LIBRARIES kritaflake Qt5::Test) TestControlPointMoveCommand.cpp
TestPointTypeCommand.cpp
ecm_add_test(TestPathShape.cpp TestPointRemoveCommand.cpp
TEST_NAME libs-kritaflake-TestPathShape TestRemoveSubpathCommand.cpp
LINK_LIBRARIES kritaflake Qt5::Test) TestPathSegment.cpp
TestSegmentTypeCommand.cpp
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(
TestKoDrag.cpp TestKoDrag.cpp
TEST_NAME libs-kritaflake-TestKoDrag
LINK_LIBRARIES kritaflake Qt5::Test
)
ecm_add_test(
TestKoMarkerCollection.cpp TestKoMarkerCollection.cpp
TEST_NAME libs-kritaflake-TestKoMarkerCollection
LINK_LIBRARIES kritaflake Qt5::Test LINK_LIBRARIES kritaflake Qt5::Test
) NAME_PREFIX "libs-flake-")
ecm_add_test( ecm_add_test(
TestSvgParser.cpp TestSvgParser.cpp
TEST_NAME libs-kritaflake-TestSvgParser TEST_NAME TestSvgParser
LINK_LIBRARIES kritaflake Qt5::Test LINK_LIBRARIES kritaflake Qt5::Test
) NAME_PREFIX "libs-flake-")
ecm_add_test( ecm_add_test(
TestSvgParser.cpp TestSvgParser.cpp
TEST_NAME libs-kritaflake-TestSvgParserCloned TEST_NAME TestSvgParserCloned
LINK_LIBRARIES kritaflake Qt5::Test LINK_LIBRARIES kritaflake Qt5::Test
) NAME_PREFIX "libs-flake-")
set_property(TARGET libs-kritaflake-TestSvgParserCloned set_property(TARGET TestSvgParserCloned
PROPERTY COMPILE_DEFINITIONS USE_CLONED_SHAPES) PROPERTY COMPILE_DEFINITIONS USE_CLONED_SHAPES)
ecm_add_test( ecm_add_test(
TestSvgParser.cpp TestSvgParser.cpp
TEST_NAME libs-kritaflake-TestSvgParserRoundTrip TEST_NAME TestSvgParserRoundTrip
LINK_LIBRARIES kritaflake Qt5::Test LINK_LIBRARIES kritaflake Qt5::Test
) NAME_PREFIX "libs-flake-")
set_property(TARGET libs-kritaflake-TestSvgParserRoundTrip set_property(TARGET TestSvgParserRoundTrip
PROPERTY COMPILE_DEFINITIONS USE_ROUND_TRIP) 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( krita_add_broken_unit_test(
TestSvgText.cpp TestSvgText.cpp
TEST_NAME libs-kritaflake-TestSvgText TEST_NAME TestSvgText
LINK_LIBRARIES kritaflake Qt5::Test LINK_LIBRARIES kritaflake Qt5::Test
) NAME_PREFIX "libs-flake-")
krita_add_broken_unit_test( krita_add_broken_unit_test(
TestSvgText.cpp TestSvgText.cpp
TEST_NAME libs-kritaflake-TestSvgTextCloned TEST_NAME TestSvgTextCloned
LINK_LIBRARIES kritaflake Qt5::Test LINK_LIBRARIES kritaflake Qt5::Test
) NAME_PREFIX "libs-flake-")
set_property(TARGET libs-kritaflake-TestSvgTextCloned set_property(TARGET TestSvgTextCloned
PROPERTY COMPILE_DEFINITIONS USE_CLONED_SHAPES) PROPERTY COMPILE_DEFINITIONS USE_CLONED_SHAPES)
krita_add_broken_unit_test( krita_add_broken_unit_test(
TestSvgText.cpp TestSvgText.cpp
TEST_NAME libs-kritaflake-TestSvgTextRoundTrip TEST_NAME TestSvgTextRoundTrip
LINK_LIBRARIES kritaflake Qt5::Test LINK_LIBRARIES kritaflake Qt5::Test
) NAME_PREFIX "libs-flake-")
set_property(TARGET libs-kritaflake-TestSvgTextRoundTrip set_property(TARGET TestSvgTextRoundTrip
PROPERTY COMPILE_DEFINITIONS USE_ROUND_TRIP) PROPERTY COMPILE_DEFINITIONS USE_ROUND_TRIP)
...@@ -122,115 +122,51 @@ ecm_add_tests( ...@@ -122,115 +122,51 @@ ecm_add_tests(
kis_colorize_mask_test.cpp kis_colorize_mask_test.cpp
kis_mask_similarity_test.cpp kis_mask_similarity_test.cpp
KisMaskGeneratorBenchmark.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) if (NOT HAVE_FAILING_CMAKE)
krita_add_broken_unit_test(kis_paint_device_test.cpp 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() else()
message(WARNING "Skipping KisPaintDeviceTest!!!!!!!!!!!!!!") message(WARNING "Skipping KisPaintDeviceTest!!!!!!!!!!!!!!")
endif() endif()
if (NOT HAVE_FAILING_CMAKE) if (NOT HAVE_FAILING_CMAKE)
krita_add_broken_unit_test(kis_filter_mask_test.cpp 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() else()
message(WARNING "Skipping KisFilterMaskTest!!!!!!!!!!!!!!") message(WARNING "Skipping KisFilterMaskTest!!!!!!!!!!!!!!")
endif() endif()
krita_add_broken_unit_test(kis_transform_mask_test.cpp krita_add_broken_unit_tests(
TEST_NAME libs-image-KisTransformMaskTest kis_transform_mask_test.cpp
LINK_LIBRARIES kritaimage Qt5::Test) kis_walkers_test.cpp
kis_update_scheduler_test.cpp
ecm_add_test(kis_histogram_test.cpp ##kis_async_merger_test.cpp
TEST_NAME libs-image-KisHistogramTest kis_queues_progress_updater_test.cpp
LINK_LIBRARIES kritaimage Qt5::Test) kis_cage_transform_worker_test.cpp
kis_meta_data_test.cpp
krita_add_broken_unit_test(kis_walkers_test.cpp kis_random_generator_test.cpp
TEST_NAME libs-image-KisWalkersTest kis_keyframing_test.cpp
LINK_LIBRARIES kritaimage Qt5::Test) kis_image_animation_interface_test.cpp
kis_layer_styles_test.cpp
#krita_add_broken_unit_test(kis_async_merger_test.cpp
# TEST_NAME libs-image-KisAsyncMergerTest LINK_LIBRARIES kritaimage Qt5::Test
# LINK_LIBRARIES kritaimage Qt5::Test) NAME_PREFIX "libs-image-")
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)
...@@ -97,7 +97,7 @@ private: ...@@ -97,7 +97,7 @@ private:
/** /**
* Stores actual tile's data * Stores actual tile's data
*/ */
class KisTileData class KRITAIMAGE_EXPORT KisTileData
{ {
public: public:
KisTileData(qint32 pixelSize, const quint8 *defPixel, KisTileDataStore *store, bool checkFreeMemory = true); KisTileData(qint32 pixelSize, const quint8 *defPixel, KisTileDataStore *store, bool checkFreeMemory = true);
......
...@@ -22,11 +22,13 @@ ...@@ -22,11 +22,13 @@
#include <QThread> #include <QThread>
#include <QSemaphore> #include <QSemaphore>
#include "kritaimage_export.h"
class KisTileDataStore; class KisTileDataStore;
class KisTileData; class KisTileData;
class KisTileDataPooler : public QThread class KRITAIMAGE_EXPORT KisTileDataPooler : public QThread
{ {
Q_OBJECT Q_OBJECT
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#define __KIS_CHUNK_LIST_H #define __KIS_CHUNK_LIST_H
#include <QLinkedList> #include <QLinkedList>
#include "kritaimage_export.h"
#define MiB (1ULL << 20) #define MiB (1ULL << 20)
...@@ -57,7 +58,7 @@ class KisChunkData; ...@@ -57,7 +58,7 @@ class KisChunkData;
typedef QLinkedList<KisChunkData> KisChunkDataList; typedef QLinkedList<KisChunkData> KisChunkDataList;
typedef KisChunkDataList::iterator KisChunkDataListIterator; typedef KisChunkDataList::iterator KisChunkDataListIterator;
class KisChunkData class KRITAIMAGE_EXPORT KisChunkData
{ {
public: public:
KisChunkData(quint64 begin, quint64 size) KisChunkData(quint64 begin, quint64 size)
...@@ -89,7 +90,7 @@ public: ...@@ -89,7 +90,7 @@ public:
quint64 m_end; quint64 m_end;
}; };
class KisChunk class KRITAIMAGE_EXPORT KisChunk
{ {
public: public:
KisChunk() {} KisChunk() {}
...@@ -124,7 +125,7 @@ private: ...@@ -124,7 +125,7 @@ private:
}; };
class KisChunkAllocator class KRITAIMAGE_EXPORT KisChunkAllocator
{ {
public: public:
KisChunkAllocator(quint64 slabSize = DEFAULT_SLAB_SIZE, KisChunkAllocator(quint64 slabSize = DEFAULT_SLAB_SIZE,
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#define DEFAULT_WINDOW_SIZE (16*MiB) #define DEFAULT_WINDOW_SIZE (16*MiB)
class KisMemoryWindow class KRITAIMAGE_EXPORT KisMemoryWindow
{ {
public: public:
/** /**
......
...@@ -14,37 +14,20 @@ ecm_add_tests( ...@@ -14,37 +14,20 @@ ecm_add_tests(
kis_tiled_data_manager_test.cpp kis_tiled_data_manager_test.cpp
kis_low_memory_tests.cpp kis_low_memory_tests.cpp
kis_lockless_stack_test.cpp kis_lockless_stack_test.cpp
NAME_PREFIX "libs-image-tiles3-" kis_chunk_allocator_test.cpp
LINK_LIBRARIES kritaimage Qt5::Test) 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) set_tests_properties(libs-image-tiles3-kis_low_memory_tests PROPERTIES TIMEOUT 180)
ecm_add_test( ########### broken tests ###############
kis_chunk_allocator_test.cpp ../swap/kis_chunk_allocator.cpp krita_add_broken_unit_tests(
TEST_NAME libs-image-KisChunkAllocatorTest kis_swapped_data_store_test.cpp
LINK_LIBRARIES kritaglobal Qt5::Test) kis_tile_data_store_test.cpp
kis_store_limits_test.cpp
ecm_add_test( kis_tile_data_pooler_test.cpp
kis_memory_window_test.cpp ../swap/kis_memory_window.cpp
TEST_NAME libs-image-KisMemoryWindowTest LINK_LIBRARIES kritaimage Qt5::Test
LINK_LIBRARIES kritaglobal Qt5::Test) NAME_PREFIX "libs-image-tiles3-")
########### 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})
...@@ -13,5 +13,5 @@ ecm_add_tests( ...@@ -13,5 +13,5 @@ ecm_add_tests(
TestFilter.cpp TestFilter.cpp
TestManagedColor.cpp TestManagedColor.cpp
TestNotifier TestNotifier
NAME_PREFIX "libs-kritalibkis-" NAME_PREFIX "libs-libkis-"
LINK_LIBRARIES kritalibkis Qt5::Test) LINK_LIBRARIES kritalibkis Qt5::Test)
...@@ -4,13 +4,15 @@ include(ECMAddTests) ...@@ -4,13 +4,15 @@ include(ECMAddTests)
ecm_add_test( ecm_add_test(
../KoLZF.cpp TestKoLZF.cpp ../KoLZF.cpp TestKoLZF.cpp
TEST_NAME libs-odf-TestKoLZF TEST_NAME TestKoLZF
LINK_LIBRARIES kritastore Qt5::Test) LINK_LIBRARIES kritastore Qt5::Test
NAME_PREFIX "libs-odf")
ecm_add_test( ecm_add_test(
../KoLZF.cpp TestKoXmlVector.cpp ../KoLZF.cpp TestKoXmlVector.cpp
TEST_NAME libs-odf-TestKoXmlVector TEST_NAME TestKoXmlVector
LINK_LIBRARIES kritastore Qt5::Test) LINK_LIBRARIES kritastore Qt5::Test
NAME_PREFIX "libs-odf")
########### manual test for file contents ############### ########### manual test for file contents ###############
......
...@@ -22,53 +22,56 @@ ecm_add_tests( ...@@ -22,53 +22,56 @@ ecm_add_tests(
kis_stop_gradient_editor_test.cpp kis_stop_gradient_editor_test.cpp
kis_file_layer_test.cpp kis_file_layer_test.cpp
kis_multinode_property_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 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 ecm_add_test( kis_selection_decoration_test.cpp ../../../sdk/tests/stroke_testing_utils.cpp
TEST_NAME libs-ui-KisSelectionDecorationTest TEST_NAME KisSelectionDecorationTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test) LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
ecm_add_test( kis_node_dummies_graph_test.cpp ../../../sdk/tests/testutil.cpp ecm_add_test( kis_node_dummies_graph_test.cpp ../../../sdk/tests/testutil.cpp
TEST_NAME libs-ui-KisNodeDummiesGraphTest TEST_NAME KisNodeDummiesGraphTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test) LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
ecm_add_test( kis_node_shapes_graph_test.cpp ../../../sdk/tests/testutil.cpp ecm_add_test( kis_node_shapes_graph_test.cpp ../../../sdk/tests/testutil.cpp
TEST_NAME libs-ui-KisNodeShapesGraphTest TEST_NAME KisNodeShapesGraphTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test) LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
ecm_add_test( kis_model_index_converter_test.cpp ../../../sdk/tests/testutil.cpp ecm_add_test( kis_model_index_converter_test.cpp ../../../sdk/tests/testutil.cpp
TEST_NAME libs-ui-KisModelIndexConverterTest TEST_NAME KisModelIndexConverterTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test) LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
ecm_add_test( kis_categorized_list_model_test.cpp modeltest.cpp ecm_add_test( kis_categorized_list_model_test.cpp modeltest.cpp
TEST_NAME libs-ui-KisCategorizedListModelTest TEST_NAME KisCategorizedListModelTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test) LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
ecm_add_test( kis_node_juggler_compressed_test.cpp ../../../sdk/tests/testutil.cpp ecm_add_test( kis_node_juggler_compressed_test.cpp ../../../sdk/tests/testutil.cpp
TEST_NAME libs-ui-KisNodeJugglerCompressedTest TEST_NAME KisNodeJugglerCompressedTest
LINK_LIBRARIES kritaimage kritaui Qt5::Test) LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
ecm_add_test(
kis_animation_exporter_test.cpp
TEST_NAME libs-ui-animation_exporter_test
LINK_LIBRARIES kritaui kritaimage Qt5::Test)
set(kis_node_view_test_SRCS kis_node_view_test.cpp ../../../sdk/tests/testutil.cpp) 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}) qt5_add_resources(kis_node_view_test_SRCS ${krita_QRCS})
ecm_add_test(${kis_node_view_test_SRCS} ecm_add_test(${kis_node_view_test_SRCS}
TEST_NAME libs-ui-kis_node_view_test TEST_NAME kis_node_view_test
LINK_LIBRARIES kritaimage kritaui Qt5::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 ##### ##### Tests that currently fail and should be fixed #####
...@@ -77,102 +80,118 @@ include(KritaAddBrokenUnitTest) ...@@ -77,102 +80,118 @@ include(KritaAddBrokenUnitTest)
krita_add_broken_unit_test( krita_add_broken_unit_test(
kis_node_model_test.cpp modeltest.cpp kis_node_model_test.cpp modeltest.cpp
TEST_NAME libs-ui-kis_node_model_test TEST_NAME kis_node_model_test
LINK_LIBRARIES kritaui Qt5::Test) LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test( krita_add_broken_unit_test(
kis_shape_controller_test.cpp kis_dummies_facade_base_test.cpp kis_shape_controller_test.cpp kis_dummies_facade_base_test.cpp
TEST_NAME libs-ui-kis_shape_controller_test TEST_NAME kis_shape_controller_test
LINK_LIBRARIES kritaimage kritaui Qt5::Test) LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test( krita_add_broken_unit_test(
kis_prescaled_projection_test.cpp kis_prescaled_projection_test.cpp
TEST_NAME libs-ui-kis_prescaled_projection_test TEST_NAME kis_prescaled_projection_test
LINK_LIBRARIES kritaui Qt5::Test) LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test( krita_add_broken_unit_test(
kis_exiv2_test.cpp kis_exiv2_test.cpp
TEST_NAME libs-ui-KisExiv2Test TEST_NAME KisExiv2Test
LINK_LIBRARIES kritaimage kritaui Qt5::Test) LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test( krita_add_broken_unit_test(
kis_clipboard_test.cpp kis_clipboard_test.cpp
TEST_NAME libs-ui-KisClipboardTest TEST_NAME KisClipboardTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test) LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test( krita_add_broken_unit_test(
freehand_stroke_test.cpp ${CMAKE_SOURCE_DIR}/sdk/tests/stroke_testing_utils.cpp freehand_stroke_test.cpp ${CMAKE_SOURCE_DIR}/sdk/tests/stroke_testing_utils.cpp
TEST_NAME libs-ui-FreehandStrokeTest TEST_NAME FreehandStrokeTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test) LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test( krita_add_broken_unit_test(
FreehandStrokeBenchmark.cpp ${CMAKE_SOURCE_DIR}/sdk/tests/stroke_testing_utils.cpp FreehandStrokeBenchmark.cpp ${CMAKE_SOURCE_DIR}/sdk/tests/stroke_testing_utils.cpp
TEST_NAME libs-ui-FreehandStrokeBenchmark TEST_NAME FreehandStrokeBenchmark
LINK_LIBRARIES kritaui kritaimage Qt5::Test) LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test( krita_add_broken_unit_test(
KisPaintOnTransparencyMaskTest.cpp ${CMAKE_SOURCE_DIR}/sdk/tests/stroke_testing_utils.cpp KisPaintOnTransparencyMaskTest.cpp ${CMAKE_SOURCE_DIR}/sdk/tests/stroke_testing_utils.cpp
TEST_NAME libs-ui-KisPaintOnTransparencyMaskTest TEST_NAME KisPaintOnTransparencyMaskTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test) LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test( krita_add_broken_unit_test(
fill_processing_visitor_test.cpp ${CMAKE_SOURCE_DIR}/sdk/tests/stroke_testing_utils.cpp fill_processing_visitor_test.cpp ${CMAKE_SOURCE_DIR}/sdk/tests/stroke_testing_utils.cpp
TEST_NAME libs-ui-FillProcessingVisitorTest TEST_NAME FillProcessingVisitorTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test) LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test( krita_add_broken_unit_test(
filter_stroke_test.cpp ../../../sdk/tests/stroke_testing_utils.cpp filter_stroke_test.cpp ../../../sdk/tests/stroke_testing_utils.cpp
TEST_NAME libs-ui-FilterStrokeTest TEST_NAME FilterStrokeTest
LINK_LIBRARIES kritaui kritaimage Qt5::Test) LINK_LIBRARIES kritaui Qt5::Test
NAME_PREFIX "libs-ui-")
krita_add_broken_unit_test(