Skip to content

Conversation

@csegarragonz
Copy link
Collaborator

@csegarragonz csegarragonz commented Jun 9, 2021

In this PR I implement three test fixtures for MPI-related tests:

  1. MpiBaseTestFixture: which defines the usual variables but does not initialise a world.
  2. MpiTestFixture: inherits from 1, and initialises a world.
  3. RemoteMpiTestFixture: useful for testing remote messaging locally, it sets the resources in each host as desired, but for this reason can't initialise the worlds transparently.

I have also added a separate file to hold the remote messaging tests. I am aware this is a great example of something that can be tested using dist-tests but I think there's still value in mocking for single-host tests (?).

Next step will be to add more remote messaging tests, as with #108 they will use a different mechanism than local messages.

@csegarragonz csegarragonz added the mpi Related to the MPI implementation label Jun 9, 2021
@csegarragonz csegarragonz self-assigned this Jun 9, 2021
@csegarragonz csegarragonz requested review from Shillaker and removed request for Shillaker June 9, 2021 07:53
Copy link
Collaborator

@Shillaker Shillaker left a comment

Choose a reason for hiding this comment

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

Nice, much cleaner.

@csegarragonz csegarragonz merged commit d6dda2c into master Jun 9, 2021
@csegarragonz csegarragonz deleted the mpi-test-fixtures branch June 9, 2021 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mpi Related to the MPI implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants