From 682e141aea44b0f2c7f9fb26463d3dc643b2eddc Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Mon, 20 May 2024 15:58:17 +0700 Subject: [PATCH] refactor(developer): include test_color.cpp in kmcmplib tests --- developer/src/kmcmplib/tests/meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/developer/src/kmcmplib/tests/meson.build b/developer/src/kmcmplib/tests/meson.build index ae023d70b0..1ae32590e2 100644 --- a/developer/src/kmcmplib/tests/meson.build +++ b/developer/src/kmcmplib/tests/meson.build @@ -129,9 +129,11 @@ if get_option('full_test') endif +common_test_files = [ meson.source_root() / '../../../common/include/test_color.cpp' ] + # Test the API endpoints -apitest = executable('api-test', ['api-test.cpp','util_filesystem.cpp','util_callbacks.cpp'], +apitest = executable('api-test', ['api-test.cpp','util_filesystem.cpp','util_callbacks.cpp', common_test_files], cpp_args: defns + flags, include_directories: inc, name_suffix: name_suffix, @@ -142,7 +144,7 @@ apitest = executable('api-test', ['api-test.cpp','util_filesystem.cpp','util_cal test('api-test', apitest, args: [output_path / 'blank_keyboard.kmx']) -usetapitest = executable('uset-api-test', 'uset-api-test.cpp', +usetapitest = executable('uset-api-test', 'uset-api-test.cpp', common_test_files, cpp_args: defns + flags, include_directories: inc, name_suffix: name_suffix,