Change test execution dir

parent 3a12edd5
Pipeline #118493 passed with stages
in 27 minutes and 9 seconds
......@@ -142,7 +142,7 @@ public final class TestsGeneratorCPP {
String executeTestTplt = "\n# execute tests\n" +
"add_custom_target(run_<name>_StreamTests ALL\n" +
" COMMAND <name>_StreamTests\n" +
" WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})";
" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})";
cmake.addCMakeCommandEnd(executeTestTplt.replace("<name>",compName));
}
......
......@@ -33,4 +33,4 @@ set_target_properties(test_basicPortsMath_StreamTests PROPERTIES LINKER_LANGUAG
# execute tests
add_custom_target(run_test_basicPortsMath_StreamTests ALL
COMMAND test_basicPortsMath_StreamTests
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
......@@ -33,4 +33,4 @@ set_target_properties(test_math_floatDivisionTest_StreamTests PROPERTIES LINKER
# execute tests
add_custom_target(run_test_math_floatDivisionTest_StreamTests ALL
COMMAND test_math_floatDivisionTest_StreamTests
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment