added: ability to run hdf5 tests in parallel

This commit is contained in:
Arne Morten Kvarving committed 2018-11-02 12:32:52 +01:00
1 parent 158fbbdf1b
commit 6494f32908
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -22,6 +22,7 @@ tmpold=`mktemp -t ifemlogXXXXXX`
output=`mktemp -t ifemXXXXXX.$3`
if [ "$3" == "hdf5" ]
then
test -n "$4" && mysim="mpirun -n $4 $mysim"
$mysim $MAPFILE -hdf5 $output 2>&1 | tee $tmplog
else
$mysim $MAPFILE -vtf 0 -vtffile $output 2>&1 | tee $tmplog
+1 -1
View File
@@ -150,7 +150,7 @@ function(IFEM_add_hdf5_test name binary)
else()
set(test-name "hdf5+${binary}+${name}")
endif()
add_test("${test-name}" iotest.sh ${EXECUTABLE_OUTPUT_PATH}/${binary} ${PROJECT_SOURCE_DIR}/${TEST_SUBDIR}/Test/${name} hdf5)
add_test("${test-name}" iotest.sh ${EXECUTABLE_OUTPUT_PATH}/${binary} ${PROJECT_SOURCE_DIR}/${TEST_SUBDIR}/Test/${name} hdf5 ${ARGN})
endfunction()
macro(add_check_target)