From a51b1890eb36494c8f64ae8a72fb0121e9b48d61 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Wed, 13 May 2026 10:12:54 +0200 Subject: [PATCH] add option to use development simulator binaries in parallel tests --- compareECLFiles.cmake | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/compareECLFiles.cmake b/compareECLFiles.cmake index 106fe9d56a..cd9e47ff5b 100644 --- a/compareECLFiles.cmake +++ b/compareECLFiles.cmake @@ -244,7 +244,17 @@ endfunction() # - This test class compares the output from a parallel simulation # to the output from the serial instance of the same model. function(add_test_compare_parallel_simulation) - set(oneValueArgs CASENAME FILENAME SIMULATOR ABS_TOL REL_TOL DIR POSTFIX MPI_PROCS) + set(oneValueArgs + CASENAME + FILENAME + DEV_SIMULATOR + SIMULATOR + ABS_TOL + REL_TOL + DIR + POSTFIX + MPI_PROCS + ) set(multiValueArgs TEST_ARGS) cmake_parse_arguments(PARAM "$" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} ) @@ -264,6 +274,10 @@ function(add_test_compare_parallel_simulation) set(MPI_PROCS 4) endif() + if(USE_DEV_SIMULATOR_IN_TESTS AND PARAM_DEV_SIMULATOR) + set(PARAM_SIMULATOR ${PARAM_DEV_SIMULATOR}) + endif() + if(MPIEXEC_MAX_NUMPROCS GREATER_EQUAL MPI_PROCS) # Local computer system has at least ${MPI_PROCS} CPUs. Register test. set(RESULT_PATH ${BASE_RESULT_PATH}/parallel/${PARAM_SIMULATOR}+${PARAM_CASENAME})