Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost Test with multiple processes (MPI)
From: Richard (legalize+jeeves_at_[hidden])
Date: 2010-07-01 15:23:43


[Please do not mail me a copy of your followup]

boost-users_at_[hidden] spake the secret code
<4C2CC1C6.6000603_at_[hidden]> thusly:

>Does anyone have a solution for writing unit tests with Boost Test that
>run in multiple processes?

Sounds a little too high-level for a unit test; I would probably use
FitNesse for something that high-level.

// do something that sets should_be_unity to 1.0
// in process 0, and 1.1 in process 1.

I would write two unit tests for these cases: one that checks each
scenario where should_be_unity is set to different values.

I would assume that MPI (or any other high-level
multiprocess/multithreaded framework) works as advertised and that I
don't need to test MPI. I would write tests around my stuff and not
MPI. This may require that you create a way to fake out MPI in your
unit test, which is no big deal.

-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
 <http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>
      Legalize Adulthood! <http://legalizeadulthood.wordpress.com>

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net