-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bhourahine/ctest' into main
- Loading branch information
Showing
5 changed files
with
123 additions
and
17 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
!> Helper routines for testers | ||
module testhelper | ||
use libmpifx_module, only : mpifx_comm, mpifx_barrier, mpifx_finalize | ||
implicit none | ||
|
||
private | ||
public :: testReturn | ||
|
||
contains | ||
|
||
!> Return expected labels for ctest | ||
subroutine testReturn(mycomm, tPassed) | ||
|
||
type(mpifx_comm), intent(in) :: mycomm | ||
|
||
logical, intent(in) :: tPassed | ||
|
||
call mpifx_barrier(mycomm) | ||
|
||
if (tPassed) then | ||
if (mycomm%rank == 0) then | ||
! label for ctest regex | ||
write(*,*)'TestPASSED' | ||
end if | ||
else | ||
if (mycomm%rank == 0) then | ||
! label for ctest regex | ||
write(*,*)'TestFAILED' | ||
end if | ||
call mpifx_finalize() | ||
stop | ||
end if | ||
|
||
end subroutine testReturn | ||
|
||
end module testhelper |