-
Notifications
You must be signed in to change notification settings - Fork 39
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
Skip some tests on non-MPTCP kernels. #215
Conversation
The mptcpd unit tests test-commands, test-path-manager and test-mptcpwrap require a MPTCP capable kernel to run. Make those tests return with an exit status (77) that causes the Automake test driver script, i.e. `test-driver' to treat the tests as skipped. This allows the test suite to succeed when MPTCP is not available in the kernel. The test summary from a `make check' run would look similar to the following when run on a non-MPTCP capable kernel: ... PASS: test-network-monitor SKIP: test-path-manager SKIP: test-commands PASS: test-configuration ... SKIP: test-mptcpwrap ========================================================================= Testsuite summary for mptcpd 0.9 ========================================================================= # TOTAL: 17 # PASS: 14 # SKIP: 3 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR: 0 ========================================================================= Fixes #204.
@matttbe FYI. |
Pull Request Test Coverage Report for Build 1786364577Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
See Scripts-based Testsuites section in the Automake manual for details on test exit codes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok to me, might want confirmation from @matttbe before merging
The mptcpd unit tests test-commands, test-path-manager and test-mptcpwrap require a MPTCP capable kernel to run. Make those tests return with an exit status (77) that causes the Automake test driver script, i.e. `test-driver' to treat the tests as skipped. This allows the test suite to succeed when MPTCP is not available in the kernel.
The test summary from a `make check' run would look similar to the following when run on a non-MPTCP capable kernel:
Fixes #204.