From 85f809c42bf032b0bc3a635eee0c5d6c92e5be52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Tue, 29 Jun 2021 16:33:19 +0200 Subject: [PATCH] Separate Test Command Line Arguments from Runner Arguments When passing parameters to test runners based on Boost.Test we need to distinguish the parameters that are intended for the test case and those that are intended for the Boost.Test framework (e.g., "--run_test="). --- ExtraTests.cmake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ExtraTests.cmake b/ExtraTests.cmake index 476a15c9c..58fdd12dc 100644 --- a/ExtraTests.cmake +++ b/ExtraTests.cmake @@ -18,13 +18,13 @@ set(_testdir ${PROJECT_SOURCE_DIR}/tests/parser/data) opm_add_test(ParserTests SOURCES tests/parser/ParserTests.cpp LIBRARIES ${TEST_LIBS} - TEST_ARGS ${_testdir}/) + TEST_ARGS -- ${_testdir}/) list(APPEND EXTRA_TESTS ParserTests) opm_add_test(ParserIncludeTests SOURCES tests/parser/ParserIncludeTests.cpp LIBRARIES ${TEST_LIBS} - TEST_ARGS ${_testdir}/parser/) + TEST_ARGS -- ${_testdir}/parser/) target_compile_definitions(ParserIncludeTests PRIVATE -DHAVE_CASE_SENSITIVE_FILESYSTEM=${HAVE_CASE_SENSITIVE_FILESYSTEM}) list(APPEND EXTRA_TESTS ParserIncludeTests) @@ -32,13 +32,13 @@ list(APPEND EXTRA_TESTS ParserIncludeTests) opm_add_test(PvtxTableTests SOURCES tests/parser/PvtxTableTests.cpp LIBRARIES ${TEST_LIBS} - TEST_ARGS ${_testdir}/integration_tests/) + TEST_ARGS -- ${_testdir}/integration_tests/) list(APPEND EXTRA_TESTS PvtxTableTests) opm_add_test(EclipseStateTests SOURCES tests/parser/EclipseStateTests.cpp LIBRARIES ${TEST_LIBS} - TEST_ARGS ${_testdir}/integration_tests/) + TEST_ARGS -- ${_testdir}/integration_tests/) list(APPEND EXTRA_TESTS EclipseStateTests) foreach (test BoxTest @@ -55,7 +55,7 @@ foreach (test BoxTest opm_add_test(${test} SOURCES tests/parser/integration/${test}.cpp LIBRARIES ${TEST_LIBS} - TEST_ARGS ${_testdir}/integration_tests/) + TEST_ARGS -- ${_testdir}/integration_tests/) list(APPEND EXTRA_TESTS ${test}) endforeach ()