From 9953584f1e2c3cf9a3a8b24ecc987c313b47e2a1 Mon Sep 17 00:00:00 2001 From: Eberhard Beilharz Date: Tue, 26 Nov 2024 17:56:04 +0100 Subject: [PATCH] chore(linux): rename test files This change rename the test files for Linux according to the discussion at the Keyman conference in November 2024. --- linux/.gitignore | 2 +- .../src/test/{bcp47util_tests.c => bcp47util.tests.c} | 0 .../src/test/{keymanutil_tests.c => keymanutil.tests.c} | 0 linux/ibus-keyman/src/test/meson.build | 4 ++-- linux/keyman-config/run-tests.sh | 2 +- .../tests/{test_bcp47tag.py => bcp47tag.tests.py} | 0 ...e_code_utils.py => canonical_language_code_utils.tests.py} | 0 .../{test_custom_keyboards.py => custom_keyboards.tests.py} | 0 .../tests/{test_dconf_util.py => dconf_util.tests.py} | 0 .../keyman-config/tests/{test_get_kmp.py => get_kmp.tests.py} | 0 ..._gnome_keyboards_util.py => gnome_keyboards_util.tests.py} | 0 .../tests/{test_gsettings.py => gsettings.tests.py} | 0 .../tests/{test_handle_install.py => handle_install.tests.py} | 0 .../tests/{test_ibus_util.py => ibus_util.tests.py} | 0 .../tests/{test_install_kmp.py => install_kmp.tests.py} | 0 .../tests/{test_kvk2ldml.py => kvk2ldml.tests.py} | 0 .../tests/{test_lang_tags_map.py => lang_tags_map.tests.py} | 0 ...tall_completion.py => package_install_completion.tests.py} | 0 .../tests/{test_uninstall_kmp.py => uninstall_kmp.tests.py} | 0 19 files changed, 4 insertions(+), 4 deletions(-) rename linux/ibus-keyman/src/test/{bcp47util_tests.c => bcp47util.tests.c} (100%) rename linux/ibus-keyman/src/test/{keymanutil_tests.c => keymanutil.tests.c} (100%) rename linux/keyman-config/tests/{test_bcp47tag.py => bcp47tag.tests.py} (100%) rename linux/keyman-config/tests/{test_canonical_language_code_utils.py => canonical_language_code_utils.tests.py} (100%) rename linux/keyman-config/tests/{test_custom_keyboards.py => custom_keyboards.tests.py} (100%) rename linux/keyman-config/tests/{test_dconf_util.py => dconf_util.tests.py} (100%) rename linux/keyman-config/tests/{test_get_kmp.py => get_kmp.tests.py} (100%) rename linux/keyman-config/tests/{test_gnome_keyboards_util.py => gnome_keyboards_util.tests.py} (100%) rename linux/keyman-config/tests/{test_gsettings.py => gsettings.tests.py} (100%) rename linux/keyman-config/tests/{test_handle_install.py => handle_install.tests.py} (100%) rename linux/keyman-config/tests/{test_ibus_util.py => ibus_util.tests.py} (100%) rename linux/keyman-config/tests/{test_install_kmp.py => install_kmp.tests.py} (100%) rename linux/keyman-config/tests/{test_kvk2ldml.py => kvk2ldml.tests.py} (100%) rename linux/keyman-config/tests/{test_lang_tags_map.py => lang_tags_map.tests.py} (100%) rename linux/keyman-config/tests/{test_package_install_completion.py => package_install_completion.tests.py} (100%) rename linux/keyman-config/tests/{test_uninstall_kmp.py => uninstall_kmp.tests.py} (100%) diff --git a/linux/.gitignore b/linux/.gitignore index f85acc0f35d..a67e991b302 100644 --- a/linux/.gitignore +++ b/linux/.gitignore @@ -31,7 +31,7 @@ debianpackage/ *.tar.xz *.tar.gz *.dsc -help/reference/ +docs/help/reference/ # Cached/auto-compiled Python bytecode *.pyc diff --git a/linux/ibus-keyman/src/test/bcp47util_tests.c b/linux/ibus-keyman/src/test/bcp47util.tests.c similarity index 100% rename from linux/ibus-keyman/src/test/bcp47util_tests.c rename to linux/ibus-keyman/src/test/bcp47util.tests.c diff --git a/linux/ibus-keyman/src/test/keymanutil_tests.c b/linux/ibus-keyman/src/test/keymanutil.tests.c similarity index 100% rename from linux/ibus-keyman/src/test/keymanutil_tests.c rename to linux/ibus-keyman/src/test/keymanutil.tests.c diff --git a/linux/ibus-keyman/src/test/meson.build b/linux/ibus-keyman/src/test/meson.build index 333f05c212a..f1f34a63c5b 100644 --- a/linux/ibus-keyman/src/test/meson.build +++ b/linux/ibus-keyman/src/test/meson.build @@ -1,5 +1,5 @@ keymanutil_sources = [ - 'keymanutil_tests.c', + 'keymanutil.tests.c', util_files, ] @@ -55,7 +55,7 @@ print_kmp_test = executable( bcp47_util_tests = executable( 'bcp47-util-tests', sources: [ - 'bcp47util_tests.c', + 'bcp47util.tests.c', '../bcp47util.c' ], dependencies: [ gtk, icu ], diff --git a/linux/keyman-config/run-tests.sh b/linux/keyman-config/run-tests.sh index de99c55e8f2..f397ad12ecf 100755 --- a/linux/keyman-config/run-tests.sh +++ b/linux/keyman-config/run-tests.sh @@ -23,6 +23,6 @@ else fi # shellcheck disable=SC2086 -python3 ${coverage:-} -m ${test_module:-} discover ${extra_opts:-} -s tests -p test_*.py +python3 ${coverage:-} -m ${test_module:-} discover ${extra_opts:-} -s tests -p ./*.tests.py rm -rf "$XDG_CONFIG_HOME" diff --git a/linux/keyman-config/tests/test_bcp47tag.py b/linux/keyman-config/tests/bcp47tag.tests.py similarity index 100% rename from linux/keyman-config/tests/test_bcp47tag.py rename to linux/keyman-config/tests/bcp47tag.tests.py diff --git a/linux/keyman-config/tests/test_canonical_language_code_utils.py b/linux/keyman-config/tests/canonical_language_code_utils.tests.py similarity index 100% rename from linux/keyman-config/tests/test_canonical_language_code_utils.py rename to linux/keyman-config/tests/canonical_language_code_utils.tests.py diff --git a/linux/keyman-config/tests/test_custom_keyboards.py b/linux/keyman-config/tests/custom_keyboards.tests.py similarity index 100% rename from linux/keyman-config/tests/test_custom_keyboards.py rename to linux/keyman-config/tests/custom_keyboards.tests.py diff --git a/linux/keyman-config/tests/test_dconf_util.py b/linux/keyman-config/tests/dconf_util.tests.py similarity index 100% rename from linux/keyman-config/tests/test_dconf_util.py rename to linux/keyman-config/tests/dconf_util.tests.py diff --git a/linux/keyman-config/tests/test_get_kmp.py b/linux/keyman-config/tests/get_kmp.tests.py similarity index 100% rename from linux/keyman-config/tests/test_get_kmp.py rename to linux/keyman-config/tests/get_kmp.tests.py diff --git a/linux/keyman-config/tests/test_gnome_keyboards_util.py b/linux/keyman-config/tests/gnome_keyboards_util.tests.py similarity index 100% rename from linux/keyman-config/tests/test_gnome_keyboards_util.py rename to linux/keyman-config/tests/gnome_keyboards_util.tests.py diff --git a/linux/keyman-config/tests/test_gsettings.py b/linux/keyman-config/tests/gsettings.tests.py similarity index 100% rename from linux/keyman-config/tests/test_gsettings.py rename to linux/keyman-config/tests/gsettings.tests.py diff --git a/linux/keyman-config/tests/test_handle_install.py b/linux/keyman-config/tests/handle_install.tests.py similarity index 100% rename from linux/keyman-config/tests/test_handle_install.py rename to linux/keyman-config/tests/handle_install.tests.py diff --git a/linux/keyman-config/tests/test_ibus_util.py b/linux/keyman-config/tests/ibus_util.tests.py similarity index 100% rename from linux/keyman-config/tests/test_ibus_util.py rename to linux/keyman-config/tests/ibus_util.tests.py diff --git a/linux/keyman-config/tests/test_install_kmp.py b/linux/keyman-config/tests/install_kmp.tests.py similarity index 100% rename from linux/keyman-config/tests/test_install_kmp.py rename to linux/keyman-config/tests/install_kmp.tests.py diff --git a/linux/keyman-config/tests/test_kvk2ldml.py b/linux/keyman-config/tests/kvk2ldml.tests.py similarity index 100% rename from linux/keyman-config/tests/test_kvk2ldml.py rename to linux/keyman-config/tests/kvk2ldml.tests.py diff --git a/linux/keyman-config/tests/test_lang_tags_map.py b/linux/keyman-config/tests/lang_tags_map.tests.py similarity index 100% rename from linux/keyman-config/tests/test_lang_tags_map.py rename to linux/keyman-config/tests/lang_tags_map.tests.py diff --git a/linux/keyman-config/tests/test_package_install_completion.py b/linux/keyman-config/tests/package_install_completion.tests.py similarity index 100% rename from linux/keyman-config/tests/test_package_install_completion.py rename to linux/keyman-config/tests/package_install_completion.tests.py diff --git a/linux/keyman-config/tests/test_uninstall_kmp.py b/linux/keyman-config/tests/uninstall_kmp.tests.py similarity index 100% rename from linux/keyman-config/tests/test_uninstall_kmp.py rename to linux/keyman-config/tests/uninstall_kmp.tests.py