Skip to content

Commit

Permalink
Test for MPI
Browse files Browse the repository at this point in the history
  • Loading branch information
Joroks authored Sep 3, 2024
1 parent 147c015 commit 7ba920d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -351,4 +351,11 @@ end
end
end

@test success(pipeline(`$(MPI.mpiexec()) -n 2 $(Base.julia_cmd()) mpitest.jl`, stderr=stderr, stdout=stdout))
@testset "MPI" begin
if Sys.iswindows()
@test LAMMPS.API.lammps_config_has_mpi_support() == 0
else
@test LAMMPS.API.lammps_config_has_mpi_support() != 0
@test success(pipeline(`$(MPI.mpiexec()) -n 2 $(Base.julia_cmd()) mpitest.jl`, stderr=stderr, stdout=stdout))
end
end

0 comments on commit 7ba920d

Please sign in to comment.