-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make testing against reference results easy.
Move common macros to root CMakeLists.txt.
- Loading branch information
Showing
4 changed files
with
28 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
echo "$*" | ||
|
||
mpiexec="$1" | ||
mpi_np="$2" | ||
refout="$3" | ||
name="$4" | ||
shift 4 | ||
|
||
tmpout="${name}.tmp" | ||
echo PWD: $PWD | ||
echo TMPOUT: $tmpout | ||
echo REFOUT: $refout | ||
"${mpiexec}" -n ${mpi_np} "./${name}" "$@" > "${tmpout}" || exit 1 | ||
diff -u ${refout} ${tmpout} || exit 1 | ||
rm "${tmpout}" |
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 |
---|---|---|
@@ -1,4 +1,2 @@ | ||
add_executable (jacobi-ex1 ex1.c) | ||
target_link_libraries(jacobi-ex1 ${Dohp_LIBRARIES}) | ||
|
||
dohp_link_executable(jacobi-ex1 ex1.c) | ||
add_test (jacobi1 jacobi-ex1 -min_rdeg 11 -max_rdeg 12 -max_bdeg 11) |