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

feat(linux): add --remote-debug flag to run-tests.sh script 🕷️ #13233

Open
wants to merge 1 commit into
base: beta
Choose a base branch
from

Conversation

ermshiperete
Copy link
Contributor

This allows to run the tests in a VM and debug them remotely. Also document debugging the integration tests, and improve the output if dependencies are missing.

Also some cleanup.

@keymanapp-test-bot skip

@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Feb 13, 2025

linux/ibus-keyman/tests/README.md Outdated Show resolved Hide resolved
get_caps_lock_state(IBusKeymanTestsFixture *fixture) {
return get_capslock_indicator();
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also some cleanup.

Sorry to ask for extra work. Could we split this to a separate PR, so this PR only has --remote-debug changes?

Copy link
Contributor Author

@ermshiperete ermshiperete Feb 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -36,6 +37,7 @@ function help() {
echo " --help, -h, -? Display this help"
echo " --verbose, -v Run tests verbosely"
echo " --debug debug test logging output"
echo " --remote-debug start gdbserver after setup but prior to running the tests"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can --debug and --remote-debug be used at the same time?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. --remote-debug allows to attach a debugger, --debug outputs more log messages.

@ermshiperete ermshiperete force-pushed the chore/linux/improve-tests branch 2 times, most recently from c60e1f6 to 1621685 Compare February 14, 2025 15:24
This allows to run the tests in a VM and debug them remotely.

Co-authored-by: Darcy Wong <[email protected]>
@ermshiperete ermshiperete force-pushed the chore/linux/improve-tests branch from 1621685 to 051e6c7 Compare February 14, 2025 15:36
@ermshiperete ermshiperete changed the title feat(linux): add --remote-debug flag to run-tests.sh script feat(linux): add --remote-debug flag to run-tests.sh script 🕷️ Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants