Skip to content

Commit

Permalink
Fail test, if MPI is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Joroks committed Sep 4, 2024
1 parent 9341c86 commit 8b6bb40
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,6 @@ end
end

@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
@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

0 comments on commit 8b6bb40

Please sign in to comment.