Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #272: cmake: Report skipped tests properly
4d77971 fixup! cmake: Create test suite for `ctest` (Hennadii Stepanov) 16ac373 fixup! cmake: Build `test_bitcoin` executable (Hennadii Stepanov) Pull request description: CMake allows to report about skipped tests properly instead of passing dummy test cases. For instance, on Windows: ``` > ctest --build-config Release -R compilerbug Test project C:/Users/hebasto/source/repos/bitcoin/build Start 26: compilerbug_tests 1/1 Test #26: compilerbug_tests ................***Skipped 0.02 sec 100% tests passed, 0 tests failed out of 1 Total Test time (real) = 0.04 sec The following tests did not run: 26 - compilerbug_tests (Skipped) ``` We have 3 such cases: - `src/test/compilerbug_tests.cpp` - `src/test/raii_event_tests.cpp` - `src/test/system_tests.cpp` This PR handles the first two cases. Once bitcoin#30454 is merged, the following lines can be deleted: https://github.com/hebasto/bitcoin/blob/9b4aa929b0e84e64472402e594ebb13648bac878/src/test/system_tests.cpp#L19-L25 Top commit has no ACKs. Tree-SHA512: e4be4fd2469163fa4b3a36afb90f6186204f0151f668490305b6a7e632a6922cc4982233a6fc4bf2b1f7049658b42916a20e766197969aedd28f2eb097c4674d
- Loading branch information