macOS: Allow tests to run from build directory
This MR fixes the need to move the test binary to ${YOUR_INSTALL_PREFIX}/i/bin
to be able to run. This allows to run test from macos as we do anywhere else make test
or ninja test
. For this to work:
- Build krita with tests enabled (
osxbuild.sh
needs the--tests
flag to do it) - Make sure krita is installed first (this cannot be avoided)
- add an env variable pointing to the install dir
export KIS_TEST_PREFIX_PATH=${YOUR_INSTALL_PREFIX}/i
(using the script vars the location would be${BUILDROOT}/i
)
If done correcly from the build directory run the test command and you should get something like
KIS_TEST_PREFIX_PATH=${BUILDROOT}/i ninja test
[0/1] Running tests...
Test project /Users/daedalus/developer/krita/repos/master/kisbuild
Start 1: libs-global-KisSharedThreadPoolAdapterTest
1/120 Test #1: libs-global-KisSharedThreadPoolAdapterTest ............ Passed 2.33 sec
Start 2: libs-global-KisSignalAutoConnectionTest
2/120 Test #2: libs-global-KisSignalAutoConnectionTest ............... Passed 0.13 sec
Start 3: libs-global-KisSignalCompressorTest
3/120 Test #3: libs-global-KisSignalCompressorTest ................... Passed 86.78 sec
Start 4: libs-global-KisForestTest
4/120 Test #4: libs-global-KisForestTest ............................. Passed 0.13 sec
Start 5: libs-global-KisRectsGridTest
5/120 Test #5: libs-global-KisRectsGridTest .......................... Passed 0.10 sec
Start 6: libs-global-KisLazyStorageTest
6/120 Test #6: libs-global-KisLazyStorageTest ........................ Passed 0.09 sec
Start 7: libs-widgetutils-KoPropertiesTest
7/120 Test #7: libs-widgetutils-KoPropertiesTest ..................... Passed 0.09 sec
Start 8: libs-widgetutils-kis_simple_math_parser_test
8/120 Test #8: libs-widgetutils-kis_simple_math_parser_test .......... Passed 0.03 sec
Start 9: libs-widgetutils-TestKoProgressUpdater
9/120 Test #9: libs-widgetutils-TestKoProgressUpdater ................ Passed 0.76 sec
Start 10: libs-widgetutils-TestSqueezedComboBox
10/120 Test #10: libs-widgetutils-TestSqueezedComboBox ................. Passed 0.18 sec
Start 11: libs-widgetutils-kis_parse_spin_boxes_test
11/120 Test #11: libs-widgetutils-kis_parse_spin_boxes_test ............ Passed 0.16 sec
Start 12: libs-widgetutils-KisDialogStateSaverTest
12/120 Test #12: libs-widgetutils-KisDialogStateSaverTest .............. Passed 0.15 sec
Start 13: libs-widgets-zoomhandler_test
13/120 Test #13: libs-widgets-zoomhandler_test ......................... Passed 0.03 sec
Start 14: libs-widgets-zoomcontroller_test
14/120 Test #14: libs-widgets-zoomcontroller_test ...................... Passed 0.12 sec
Start 15: libs-widgets-KoAnchorSelectionWidgetTest
15/120 Test #15: libs-widgets-KoAnchorSelectionWidgetTest .............. Passed 0.12 sec
Start 16: libs-widgets-TestKoZoomAction
16/120 Test #16: libs-widgets-TestKoZoomAction ......................... Passed 0.12 sec
Start 17: libs-widgets-TestKisTagSelectionWidget
17/120 Test #17: libs-widgets-TestKisTagSelectionWidget ................ Passed 0.16 sec
Start 18: libs-odfTestKoLZF
18/120 Test #18: libs-odfTestKoLZF ..................................... Passed 0.04 sec
Start 19: libs-flake-TestPosition
19/120 Test #19: libs-flake-TestPosition ............................... Passed 0.02 sec
Start 20: libs-flake-TestSelection
20/120 Test #20: libs-flake-TestSelection .............................. Passed 0.02 sec
Start 21: libs-flake-TestKoShapeFactory
21/120 Test #21: libs-flake-TestKoShapeFactory ......................... Passed 0.02 sec
Start 22: libs-flake-TestShapeContainer
22/120 Test #22: libs-flake-TestShapeContainer ......................... Passed 0.11 sec
Start 23: libs-flake-TestShapeGroupCommand
23/120 Test #23: libs-flake-TestShapeGroupCommand ...................... Passed 0.13 sec
Start 24: libs-flake-TestShapeBackgroundCommand
24/120 Test #24: libs-flake-TestShapeBackgroundCommand ................. Passed 0.12 sec
Start 25: libs-flake-TestShapeStrokeCommand
25/120 Test #25: libs-flake-TestShapeStrokeCommand ..................... Passed 0.12 sec
Start 26: libs-flake-TestShapeShadowCommand
26/120 Test #26: libs-flake-TestShapeShadowCommand ..................... Passed 0.10 sec
Start 27: libs-flake-TestInputDevice
27/120 Test #27: libs-flake-TestInputDevice ............................ Passed 0.09 sec
Start 28: libs-flake-TestPathShape
28/120 Test #28: libs-flake-TestPathShape .............................. Passed 0.11 sec
Start 29: libs-flake-TestControlPointMoveCommand
29/120 Test #29: libs-flake-TestControlPointMoveCommand ................ Passed 0.12 sec
Start 30: libs-flake-TestPointTypeCommand
30/120 Test #30: libs-flake-TestPointTypeCommand ....................... Passed 0.12 sec
Start 31: libs-flake-TestRemoveSubpathCommand
31/120 Test #31: libs-flake-TestRemoveSubpathCommand ................... Passed 0.12 sec
Start 32: libs-flake-TestPathSegment
32/120 Test #32: libs-flake-TestPathSegment ............................ Passed 0.12 sec
Start 33: libs-flake-TestSegmentTypeCommand
33/120 Test #33: libs-flake-TestSegmentTypeCommand ..................... Passed 0.12 sec
Start 34: libs-pigment-TestKoColorSet
34/120 Test #34: libs-pigment-TestKoColorSet ........................... Passed 1.26 sec
Start 35: libs-pigment-TestKoColorSpaceAbstract
35/120 Test #35: libs-pigment-TestKoColorSpaceAbstract ................. Passed 0.02 sec
Start 36: libs-pigment-TestKoIntegerMaths
36/120 Test #36: libs-pigment-TestKoIntegerMaths ....................... Passed 0.02 sec
Start 37: libs-pigment-TestConvolutionOpImpl
37/120 Test #37: libs-pigment-TestConvolutionOpImpl .................... Passed 0.02 sec
Start 38: libs-pigment-TestKoChannelInfo
38/120 Test #38: libs-pigment-TestKoChannelInfo ........................ Passed 0.02 sec
Start 39: libs-pigment-TestColorConversion
39/120 Test #39: libs-pigment-TestColorConversion ...................... Passed 0.02 sec
Start 40: libs-pigment-TestKoColorSpaceMaths
40/120 Test #40: libs-pigment-TestKoColorSpaceMaths .................... Passed 0.02 sec
Start 41: libs-brush-TestAbrStorage
41/120 Test #41: libs-brush-TestAbrStorage ............................. Passed 1.78 sec
Start 42: kritapsdutils-psd_utils_test
42/120 Test #42: kritapsdutils-psd_utils_test .......................... Passed 0.11 sec
Start 43: kritapsdutils-compression_test
43/120 Test #43: kritapsdutils-compression_test ........................ Passed 0.11 sec
Start 44: libs-image-kis_fast_math_test
44/120 Test #44: libs-image-kis_fast_math_test ......................... Passed 0.17 sec
Start 45: libs-image-kis_node_test
45/120 Test #45: libs-image-kis_node_test .............................. Passed 2.50 sec
Start 46: libs-image-kis_node_facade_test
46/120 Test #46: libs-image-kis_node_facade_test ....................... Passed 0.11 sec
Start 47: libs-image-kis_effect_mask_test
47/120 Test #47: libs-image-kis_effect_mask_test ....................... Passed 0.11 sec
Start 48: libs-image-kis_count_visitor_test
48/120 Test #48: libs-image-kis_count_visitor_test ..................... Passed 0.12 sec
Start 49: libs-image-kis_annotation_test
49/120 Test #49: libs-image-kis_annotation_test ........................ Passed 0.11 sec
Start 50: libs-image-kis_datamanager_test
50/120 Test #50: libs-image-kis_datamanager_test ....................... Passed 0.11 sec
Start 51: libs-image-kis_filter_configuration_test
51/120 Test #51: libs-image-kis_filter_configuration_test .............. Passed 0.29 sec
Start 52: libs-image-kis_filter_registry_test
52/120 Test #52: libs-image-kis_filter_registry_test ................... Passed 5.04 sec
Start 53: libs-image-kis_filter_strategy_test
53/120 Test #53: libs-image-kis_filter_strategy_test ................... Passed 0.15 sec
Start 54: libs-image-kis_image_commands_test
54/120 Test #54: libs-image-kis_image_commands_test .................... Passed 0.13 sec
Start 55: libs-image-kis_stroke_test
55/120 Test #55: libs-image-kis_stroke_test ............................ Passed 0.12 sec
Start 56: libs-image-kis_math_toolbox_test
56/120 Test #56: libs-image-kis_math_toolbox_test ...................... Passed 0.12 sec
Start 57: libs-image-kis_name_server_test
57/120 Test #57: libs-image-kis_name_server_test ....................... Passed 0.12 sec
Start 58: libs-image-kis_node_commands_test
58/120 Test #58: libs-image-kis_node_commands_test ..................... Passed 0.12 sec
Start 59: libs-image-kis_node_graph_listener_test
59/120 Test #59: libs-image-kis_node_graph_listener_test ............... Passed 0.12 sec
Start 60: libs-image-kis_node_visitor_test
60/120 Test #60: libs-image-kis_node_visitor_test ...................... Passed 0.11 sec
Start 61: libs-image-kis_paint_information_test
61/120 Test #61: libs-image-kis_paint_information_test ................. Passed 0.42 sec
Start 62: libs-image-kis_distance_information_test
62/120 Test #62: libs-image-kis_distance_information_test .............. Passed 0.13 sec
Start 63: libs-image-kis_pattern_test
63/120 Test #63: libs-image-kis_pattern_test ........................... Passed 0.25 sec
Start 64: libs-image-kis_shared_ptr_test
64/120 Test #64: libs-image-kis_shared_ptr_test ........................ Passed 0.18 sec
Start 65: libs-image-kis_bsplines_test
65/120 Test #65: libs-image-kis_bsplines_test .......................... Passed 1.72 sec
Start 66: libs-image-kis_types_test
66/120 Test #66: libs-image-kis_types_test ............................. Passed 0.13 sec
Start 67: libs-image-kis_vec_test
67/120 Test #67: libs-image-kis_vec_test ............................... Passed 0.12 sec
Start 68: libs-image-kis_filter_config_widget_test
68/120 Test #68: libs-image-kis_filter_config_widget_test .............. Passed 0.11 sec
Start 69: libs-image-kis_mask_generator_test
69/120 Test #69: libs-image-kis_mask_generator_test .................... Passed 0.12 sec
Start 70: libs-image-kis_cubic_curve_test
70/120 Test #70: libs-image-kis_cubic_curve_test ....................... Passed 0.13 sec
Start 71: libs-image-kis_fixed_point_maths_test
71/120 Test #71: libs-image-kis_fixed_point_maths_test ................. Passed 0.13 sec
Start 72: libs-image-kis_filter_weights_buffer_test
72/120 Test #72: libs-image-kis_filter_weights_buffer_test ............. Passed 0.13 sec
Start 73: libs-image-kis_fill_interval_test
73/120 Test #73: libs-image-kis_fill_interval_test ..................... Passed 0.13 sec
Start 74: libs-image-kis_fill_interval_map_test
74/120 Test #74: libs-image-kis_fill_interval_map_test ................. Passed 0.13 sec
Start 75: libs-image-kis_psd_layer_style_test
75/120 Test #75: libs-image-kis_psd_layer_style_test ................... Passed 1.18 sec
Start 76: libs-image-kis_lod_capable_layer_offset_test
76/120 Test #76: libs-image-kis_lod_capable_layer_offset_test .......... Passed 0.13 sec
Start 77: libs-image-kis_algebra_2d_test
77/120 Test #77: libs-image-kis_algebra_2d_test ........................ Passed 0.41 sec
Start 78: libs-image-KisPerStrokeRandomSourceTest
78/120 Test #78: libs-image-KisPerStrokeRandomSourceTest ............... Passed 0.15 sec
Start 79: libs-image-kis_dom_utils_test
79/120 Test #79: libs-image-kis_dom_utils_test ......................... Passed 0.12 sec
Start 80: libs-image-kis_queues_progress_updater_test
80/120 Test #80: libs-image-kis_queues_progress_updater_test ........... Passed 1.79 sec
Start 81: libs-image-kis_random_generator_test
81/120 Test #81: libs-image-kis_random_generator_test .................. Passed 1.07 sec
Start 82: libs-image-kis_time_span_test
82/120 Test #82: libs-image-kis_time_span_test ......................... Passed 0.13 sec
Start 83: libs-image-tiles3-kis_tiled_data_manager_test
83/120 Test #83: libs-image-tiles3-kis_tiled_data_manager_test ......... Passed 36.74 sec
Start 84: libs-image-tiles3-kis_low_memory_tests
84/120 Test #84: libs-image-tiles3-kis_low_memory_tests ................ Passed 11.85 sec
Start 85: libs-image-tiles3-kis_lockless_stack_test
85/120 Test #85: libs-image-tiles3-kis_lockless_stack_test ............. Passed 18.69 sec
Start 86: libs-image-tiles3-kis_chunk_allocator_test
86/120 Test #86: libs-image-tiles3-kis_chunk_allocator_test ............ Passed 1.14 sec
Start 87: libs-image-tiles3-kis_memory_window_test
87/120 Test #87: libs-image-tiles3-kis_memory_window_test .............. Passed 0.12 sec
Start 88: libs-image-tiles3-kis_store_limits_test
88/120 Test #88: libs-image-tiles3-kis_store_limits_test ............... Passed 0.12 sec
Start 89: libs-image-tiles3-kis_swapped_data_store_test
89/120 Test #89: libs-image-tiles3-kis_swapped_data_store_test ......... Passed 2.02 sec
Start 90: libs-image-tiles3-kis_tile_data_store_test
90/120 Test #90: libs-image-tiles3-kis_tile_data_store_test ............ Passed 0.20 sec
Start 91: libs-image-tiles3-kis_tile_data_pooler_test
91/120 Test #91: libs-image-tiles3-kis_tile_data_pooler_test ........... Passed 0.62 sec
Start 92: libs-ui-kis_grid_config_test
92/120 Test #92: libs-ui-kis_grid_config_test .......................... Passed 0.20 sec
Start 93: libs-ui-kis_stabilized_events_sampler_test
93/120 Test #93: libs-ui-kis_stabilized_events_sampler_test ............ Passed 0.25 sec
Start 94: libs-ui-kis_brush_hud_properties_config_test
94/120 Test #94: libs-ui-kis_brush_hud_properties_config_test .......... Passed 0.15 sec
Start 95: libs-ui-KisFrameSerializerTest
95/120 Test #95: libs-ui-KisFrameSerializerTest ........................ Passed 0.29 sec
Start 96: libs-ui-KisRssReaderTest
96/120 Test #96: libs-ui-KisRssReaderTest .............................. Passed 0.14 sec
Start 97: libs-ui-KisSafeDocumentLoaderTest
97/120 Test #97: libs-ui-KisSafeDocumentLoaderTest ..................... Passed 20.11 sec
Start 98: libs-ui-KisMultiFeedRssModelTest
98/120 Test #98: libs-ui-KisMultiFeedRssModelTest ...................... Passed 0.19 sec
Start 99: libs-ui-KisNodeDummiesGraphTest
99/120 Test #99: libs-ui-KisNodeDummiesGraphTest ....................... Passed 0.18 sec
Start 100: libs-ui-KisNodeShapesGraphTest
100/120 Test #100: libs-ui-KisNodeShapesGraphTest ........................ Passed 0.13 sec
Start 101: libs-ui-KisCategorizedListModelTest
101/120 Test #101: libs-ui-KisCategorizedListModelTest ................... Passed 0.12 sec
Start 102: libs-ui-KisInputManagerTest
102/120 Test #102: libs-ui-KisInputManagerTest ........................... Passed 0.11 sec
Start 103: libs-kritaresources-TestResourceCacheDb
103/120 Test #103: libs-kritaresources-TestResourceCacheDb ............... Passed 0.14 sec
Start 104: libs-kritaresources-TestResourceLoaderRegistry
104/120 Test #104: libs-kritaresources-TestResourceLoaderRegistry ........ Passed 0.12 sec
Start 105: libs-kritaresources-TestResourceLocator
105/120 Test #105: libs-kritaresources-TestResourceLocator ............... Passed 0.39 sec
Start 106: libs-kritaresources-TestResourceStorage
106/120 Test #106: libs-kritaresources-TestResourceStorage ............... Passed 0.19 sec
Start 107: libs-kritaresources-TestFolderStorage
107/120 Test #107: libs-kritaresources-TestFolderStorage ................. Passed 0.27 sec
Start 108: libs-kritaresources-TestMemoryStorage
108/120 Test #108: libs-kritaresources-TestMemoryStorage ................. Passed 0.16 sec
Start 109: libs-kritaresources-TestTag
109/120 Test #109: libs-kritaresources-TestTag ........................... Passed 0.13 sec
Start 110: libs-kritaresources-TestBundleStorage
110/120 Test #110: libs-kritaresources-TestBundleStorage ................. Passed 2.39 sec
Start 111: libs-kritaresources-TestResourceModel
111/120 Test #111: libs-kritaresources-TestResourceModel ................. Passed 0.34 sec
Start 112: libs-kritaresources-TestTagFilterResourceProxyModel
112/120 Test #112: libs-kritaresources-TestTagFilterResourceProxyModel ... Passed 0.27 sec
Start 113: libs-kritaresources-TestTagModel
113/120 Test #113: libs-kritaresources-TestTagModel ...................... Passed 0.27 sec
Start 114: libs-kritaresources-TestResourceTypeModel
114/120 Test #114: libs-kritaresources-TestResourceTypeModel ............. Passed 0.26 sec
Start 115: libs-kritaresources-TestStorageModel
115/120 Test #115: libs-kritaresources-TestStorageModel .................. Passed 0.26 sec
Start 116: libs-kritaresources-TestResourceSearchBoxFilter
116/120 Test #116: libs-kritaresources-TestResourceSearchBoxFilter ....... Passed 0.15 sec
Start 117: libs-kritaresources-TestStorageFilterProxyModel
117/120 Test #117: libs-kritaresources-TestStorageFilterProxyModel ....... Passed 0.25 sec
Start 118: libs-kritaresources-TestTagResourceModel
118/120 Test #118: libs-kritaresources-TestTagResourceModel .............. Passed 0.26 sec
Start 119: plugins-impex-kis_jpegxl_test
119/120 Test #119: plugins-impex-kis_jpegxl_test ......................... Passed 4.05 sec
Start 120: plugins-colorsmudge-KisColorsmudgeOpTest
120/120 Test #120: plugins-colorsmudge-KisColorsmudgeOpTest .............. Passed 20.55 sec
100% tests passed, 0 tests failed out of 120
Total Test time (real) = 238.59 sec
Edited by Ivan Yossi