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

Skip some tests on non-MPTCP kernels. #215

Merged
merged 4 commits into from
Feb 3, 2022

Conversation

ossama-othman
Copy link
Member

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.

Ossama Othman added 2 commits February 2, 2022 13:23
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.
@ossama-othman ossama-othman added the enhancement New feature or request label Feb 2, 2022
@ossama-othman ossama-othman added this to the Q1-2022 milestone Feb 2, 2022
@ossama-othman ossama-othman self-assigned this Feb 2, 2022
@ossama-othman
Copy link
Member Author

@matttbe FYI.

@coveralls
Copy link

coveralls commented Feb 2, 2022

Pull Request Test Coverage Report for Build 1786364577

Warning: 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

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 53.266%

Totals Coverage Status
Change from base Build 1764368853: 0.0%
Covered Lines: 1060
Relevant Lines: 1990

💛 - Coveralls

@ossama-othman
Copy link
Member Author

See Scripts-based Testsuites section in the Automake manual for details on test exit codes.

Copy link
Member

@mjmartineau mjmartineau left a 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

@ossama-othman ossama-othman merged commit 2978999 into multipath-tcp:master Feb 3, 2022
@ossama-othman ossama-othman deleted the skip-tests branch February 3, 2022 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make unit tests working on any kernel hosts
3 participants