Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(linux): rename test files #12706

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion linux/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ debianpackage/
*.tar.xz
*.tar.gz
*.dsc
help/reference/
docs/help/reference/

# Cached/auto-compiled Python bytecode
*.pyc
Expand Down
4 changes: 2 additions & 2 deletions linux/ibus-keyman/src/test/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
keymanutil_sources = [
'keymanutil_tests.c',
'keymanutil.tests.c',
util_files,
]

Expand Down Expand Up @@ -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 ],
Expand Down
12 changes: 6 additions & 6 deletions linux/keyman-config/run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/bin/bash
PYTHONPATH=.:$PYTHONPATH
PYTHONPATH=.:${PYTHONPATH}

XDG_CONFIG_HOME=$(mktemp --directory)
export XDG_CONFIG_HOME

if [ -f /usr/libexec/ibus-memconf ]; then
if [[ -f /usr/libexec/ibus-memconf ]]; then
export GSETTINGS_BACKEND=keyfile
fi

if [ "$1" == "--coverage" ]; then
if [[ "$1" == "--coverage" ]]; then
coverage="-m coverage run --source=. --data-file=build/.coverage"
fi

if [ -n "$TEAMCITY_VERSION" ]; then
if [[ -n "${TEAMCITY_VERSION}" ]]; then
if ! pip3 list --format=columns | grep -q teamcity-messages; then
pip3 install teamcity-messages
fi
Expand All @@ -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"
rm -rf "${XDG_CONFIG_HOME}"