changed: do not require a "fancy name" for tests

earlier the assumption has been that all test executables have a test_ prefix
which was stripped off. now we just use the full name if the prefix is not
found.
This commit is contained in:
Arne Morten Kvarving 2018-01-24 12:24:18 +01:00
parent 72ca4a4ded
commit bd316fa27f

View File

@ -86,7 +86,9 @@ macro (opm_compile_satellites opm satellite excl_all test_regexp)
foreach (_regexp IN ITEMS ${test_regexp})
if ("${_sat_NAME}" MATCHES "${_regexp}")
string (REGEX REPLACE "${_regexp}" "\\1" _sat_FANCY "${_sat_NAME}")
endif ("${_sat_NAME}" MATCHES "${_regexp}")
else()
set(_sat_FANCY ${_sat_NAME})
endif()
endforeach (_regexp)
get_target_property (_sat_LOC ${_sat_NAME} LOCATION)
# Run tests through mpi-run. Ubuntu 14.04 provided mpi libs will crash