-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor algorithm tests to take transport parameter
This is required to run the same algorithm tests against multiple transports. The test suite is comprised of both class algorithms and function algorithms. The former require fixed buffers, which are only supported on the tcp backend (and will be phased out). The latter require the unbound buffers, which are supported on both the tcp and uv (not yet merged) transports. This means we can't set the transport globally and forget about it, since it depends on the test whether or not it works with the selected transport. Instead, by parameterizing the tests we allow for multiple transports to be tested in the same test run. If a transport is not available (e.g. not compiled) then those tests can be skipped. Side notes: * There are a series of small modifications included here as well, including more consistent variable naming, and a more consistent usage of test parameterization generator functions. * Because this commit touches many lines anyway, I also ran clang-format on all files under `gloo/test` to make the style consistent. ghstack-source-id: 46122ee90d31cd486e5fba23165d0b1d3f952a42 Pull Request resolved: #208
- Loading branch information
Showing
21 changed files
with
1,104 additions
and
1,099 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.