Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Place all unit test executables in the same build subdirectory (#2658)
Use existing CMake function `add_boost_test` to instruct CMake to place all executables in build/tests. This should help developers easily locate tests to run them individually for debugging purposes. ## Before ``` cd build-debug ctest . test_feature1...OK test_feature2...OK test_feature3...FAILED find -name test_feature3 # Developer copies the path # Developer pastes the path [gdb|valgrind] extremely/long/path/to/test_feature3 ``` ## After ``` cd build-debug ctest . test_feature1...OK test_feature2...OK test_feature3...FAILED # Developer pushes tab a few times [gdb|valgrind] tests/test_feature3 ``` ## Collisions Two tests should never have the same name, or else the executable might be overwritten. Since the executable name is the same as the target name, there should be no collision. If there was any collision CMake would tell us something along the lines of "target XX already defined in YYY".
- Loading branch information