Skip to content

Commit

Permalink
Merge pull request #12705 from keymanapp/chore/core/rename-tests
Browse files Browse the repository at this point in the history
chore(core): rename test files
  • Loading branch information
ermshiperete authored Nov 27, 2024
2 parents 08b4b6c + 718881a commit 7832be9
Show file tree
Hide file tree
Showing 25 changed files with 29 additions and 29 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 12 additions & 12 deletions core/tests/unit/kmnkbd/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ endif

local_defns = ['-DKM_CORE_LIBRARY_STATIC']
tests = [
['action-api', 'action_api.cpp'],
['action-set-api', 'action_set_api.cpp'],
['context-api', 'context_api.cpp'],
['keyboard-api', 'keyboard_api.cpp'],
['options-api', 'options_api.cpp'],
['state-api', 'state_api.cpp'],
['state-context-api', 'state_context_api.cpp'],
['debug-api', 'debug_api.cpp'],
['kmx_xstring', 'test_kmx_xstring.cpp'],
['kmx_context', 'test_kmx_context.cpp'],
['test_actions_normalize', 'test_actions_normalize.cpp'],
['test_actions_get_api', 'test_actions_get_api.cpp'],
['action-api-tests', 'action_api.tests.cpp'],
['action-set-api-tests', 'action_set_api.tests.cpp'],
['context-api-tests', 'context_api.tests.cpp'],
['keyboard-api-tests', 'keyboard_api.tests.cpp'],
['options-api-tests', 'options_api.tests.cpp'],
['state-api-tests', 'state_api.tests.cpp'],
['state-context-api-tests', 'state_context_api.tests.cpp'],
['debug-api-tests', 'debug_api.tests.cpp'],
['kmx_xstring-tests', 'kmx_xstring.tests.cpp'],
['kmx_context-tests', 'kmx_context.tests.cpp'],
['actions_normalize-tests', 'actions_normalize.tests.cpp'],
['actions_get_api-tests', 'actions_get_api.tests.cpp'],
]

test_path = join_paths(meson.current_build_dir(), '..', 'kmx')
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions core/tests/unit/kmx/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ subdir('fixtures')
# should work for Linux, macOS, and WASM.
test_path = source_path

key_e = executable('key_list', ['kmx_key_list.cpp', common_test_files],
key_e = executable('key_list_tests', ['kmx_key_list.tests.cpp', common_test_files],
cpp_args: defns + warns,
include_directories: [inc, libsrc],
link_args: links + tests_flags,
Expand All @@ -193,7 +193,7 @@ test('key_list', key_e, depends: kbd_log, args: [kbd_obj] )

# test for imx list

imx_e = executable('imx_list', ['kmx_imx.cpp', common_test_files],
imx_e = executable('imx_list_tests', ['kmx_imx.tests.cpp', common_test_files],
cpp_args: defns + warns,
include_directories: [inc, libsrc],
link_args: links + tests_flags,
Expand All @@ -211,7 +211,7 @@ kbd_log = custom_target(test_kbd + '.kmx'.underscorify(),
)
test('imx_list', imx_e, depends: kbd_log, args: [kbd_obj] )

external_e = executable('ext_event', ['kmx_external_event.cpp', common_test_files],
external_e = executable('ext_event_tests', ['kmx_external_event.tests.cpp', common_test_files],
cpp_args: defns + warns,
include_directories: [inc, libsrc],
link_args: links + tests_flags,
Expand Down
File renamed without changes.
File renamed without changes.
26 changes: 13 additions & 13 deletions core/tests/unit/ldml/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -82,40 +82,40 @@ ldml = executable('ldml',
objects: lib.extract_all_objects(recursive: false),
)

core_ldml_min = executable('core_ldml_min',
['core_ldml_min.cpp'],
core_ldml_min = executable('core_ldml_min_tests',
['core_ldml_min.tests.cpp'],
cpp_args: defns + warns,
include_directories: [inc, libsrc],
link_args: links,
dependencies: [],
link_with: [lib],
# objects: lib.extract_all_objects(recursive: false),
)
test('core_ldml_min', core_ldml_min, suite: 'ldml', should_fail: true)
test('core_ldml_min_tests', core_ldml_min, suite: 'ldml', should_fail: true)


# Build and run additional test_kmx_plus test

e = executable('test_kmx_plus', 'test_kmx_plus.cpp',
e = executable('kmx_plus_tests', 'kmx_plus.tests.cpp',
'ldml_test_utils.cpp',
common_test_files,
cpp_args: defns + warns,
include_directories: [inc, libsrc, '../../../../developer/src/ext/json'],
link_args: links + tests_flags,
dependencies: [icu_uc, icu_i18n],
objects: lib.extract_all_objects(recursive: false))
test('test_kmx_plus', e, suite: 'ldml')
test('kmx_plus_tests', e, suite: 'ldml')

# run transforms / ldml utilities unit test

t = executable('test_transforms', 'test_transforms.cpp',
t = executable('transforms_tests', 'transforms.tests.cpp',
common_test_files,
cpp_args: defns + warns,
include_directories: [inc, libsrc, '../../../../developer/src/ext/json'],
link_args: links + tests_flags,
dependencies: [icu_uc, icu_i18n],
objects: lib.extract_all_objects(recursive: false))
test('test_transforms', t, suite: 'ldml')
test('transforms_tests', t, suite: 'ldml')

# run test_context_normalization ldml unit test

Expand All @@ -125,19 +125,19 @@ if cpp_compiler.get_id() == 'emscripten'
normalization_tests_flags += ['-lnodefs.js', wasm_exported_runtime_methods]
endif

test_context_normalization = executable('test_context_normalization',
['test_context_normalization.cpp', common_test_files],
test_context_normalization = executable('context_normalization_tests',
['context_normalization.tests.cpp', common_test_files],
cpp_args: defns + warns,
include_directories: [inc, libsrc, '../../../../developer/src/ext/json'],
link_args: links + normalization_tests_flags,
dependencies: [icu_uc, icu_i18n],
objects: lib.extract_all_objects(recursive: false))
test('test_context_normalization', test_context_normalization, suite: 'ldml')
test('context_normalization_tests', test_context_normalization, suite: 'ldml')

# Build and run additional test_unicode test

test_unicode = executable('test_unicode', 'test_unicode.cpp',
['test_unicode.cpp', common_test_files, generated_headers],
test_unicode = executable('unicode_tests', 'unicode.tests.cpp',
['unicode.tests.cpp', common_test_files, generated_headers],
cpp_args: defns + warns,
include_directories: [inc, libsrc, '../../../../developer/src/ext/json'],
link_args: links + tests_flags,
Expand All @@ -146,7 +146,7 @@ test_unicode = executable('test_unicode', 'test_unicode.cpp',

)

test('test_unicode', test_unicode, suite: 'ldml',
test('unicode_tests', test_unicode, suite: 'ldml',
args: [
test_unicode_path / 'nodeversions.json',
test_unicode_path / 'package.json',
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion core/tests/unit/utftest/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Authors: Tim Eves (TSE)
#

e = executable('utftest', 'utftest.cpp',
e = executable('utftest', 'utftest.tests.cpp',
objects: lib.extract_objects('../../common/cpp/utfcodec.cpp'),
include_directories: [libsrc])
test('utftest', e)
File renamed without changes.

0 comments on commit 7832be9

Please sign in to comment.