pr-1579/dscho/doc-unit-tests-and-cmake-v2
tagged this
18 Sep 20:54
The recent patch series that adds proper unit testing to Git requires a couple of add-on patches to make it work with the CMake build on Windows (Visual C). This patch series aims to provide that support. This patch series is based on js/doc-unit-tests. Changes since v1: * The code added to test-lib.c now avoids using a strbuf. * The unit tests are now also handled via CTest. * While at it, I cleaned up a little in the CTest-related definitions. Johannes Schindelin (7): cmake: also build unit tests unit-tests: do not mistake `.pdb` files for being executable unit-tests: do show relative file paths artifacts-tar: when including `.dll` files, don't forget the unit-tests cmake: fix typo in variable name cmake: use test names instead of full paths cmake: handle also unit tests Makefile | 2 +- contrib/buildsystems/CMakeLists.txt | 38 ++++++++++++++++++--- t/Makefile | 2 +- t/unit-tests/test-lib.c | 52 ++++++++++++++++++++++++++--- 4 files changed, 84 insertions(+), 10 deletions(-) base-commit: 03f9bc407975bba86d1d1807519d76e1693ff66f Submitted-As: https://lore.kernel.org/git/pull.1579.v2.git.1695070468.gitgitgadget@gmail.com In-Reply-To: https://lore.kernel.org/git/pull.1579.git.1693462532.gitgitgadget@gmail.com
Assets 2
-
2023-09-18T20:54:28Z -
2023-09-18T20:54:28Z - Loading