[CMake] Split Build and Test Pipelines

Dustyn Blasig dustyn at blasig.us
Fri May 10 13:06:35 EDT 2019


Hi All,

I'm curious if anyone has had success allowing two testing paths to coexist
well.

Currently, we are using CTest to run our test executables with `make test`.
However, on our Jenkins system, the build machines have the whole
development stack but the test machines do not. So we need a way to package
up the tests in a way that the test machines can simply run some generated
script to do the equivalent of what CTest would do.

My current thought is to generate OS specific scripts `make test` depends
on and runs. These scripts can get installed through `make install` if
ENABLE_TEST_INSTALL is set, and then the test machine can run the installed
scripts. The tricky part is building up the hierarchy of scripts in such a
way that the tester just needs to run "test.sh" or "test.bat" at the
top-level of the install hierarchy.

Any comments and suggestions greatly appreciated!

Cheers!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190510/fac59b68/attachment.html>


More information about the CMake mailing list