Easy enough. ADD_TEST can run whatever you want. I created a simple cmake function Function(RUN_REMOTE_TEST testname, other_args) # insert useful code here… add_test(${testname} remote_run_test ${binary_dir}/${testname} other test runner script args… ) End_function()
You will have to figure out how to make the above work for your needs, but the idea is simple enough. One useful thing I do in our function is create a custom target to run the test as part of the build as well, that way the TDD cycle runs all the tests. From: CMake <cmake-boun...@cmake.org> On Behalf Of Stefan Seefeld Sent: Tuesday, November 5, 2019 8:06 PM To: CMake <cmake@cmake.org> Subject: [CMake] cross-testing support in cmake Hello, I'm looking for ways to enable cross-testing with cmake. I imagine some helper script that, during test execution, copies the test binary to a test platform, runs the binary there, and reports back the test result. Does cmake have support for such a scenario ? Thanks, [Stefan] -- ...ich hab' noch einen Koffer in Berlin...
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake