Thread Previous • Date Previous • Date Next • Thread Next |
Hello,I played around a bit and settled on a quick&easy solution. For running the tests on windows binding to the shared libs is a problem with our default build, because we have separate output directories per target. Only after an install operation are they in one directory for proper library lookup. So I added an option to the kicad cmake script to output all targets to a single shared directory, this option is implicitly activated when unit tests are enabled on windows. It then also adds the boost.test dependency. Everything else is just like I described in the last message: CTest can be used to run all the test executables, if you want boost.test verbosity, you can always run the tests from the command prompt.
Problem left would then be, how we set up the test targets. My initial thought would be to have one target per lib/executable. All tests related to the common library would then be combined to the "common-test" target for example.
Here's a screenshot for the targets, RUN_TESTS (CTest) output, boost.test output and the shared stage dir: https://s17.postimg.org/p5ktjhoe5/kicad_unit_tests.png
Am I making any sense? I might not be aware of all the things you expect from this.
Michael
Thread Previous • Date Previous • Date Next • Thread Next |