summaryrefslogtreecommitdiff
path: root/ci/run-build-and-tests.sh
diff options
context:
space:
mode:
authorJosh Steadmon <steadmon@google.com>2023-11-09 18:50:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2023-11-09 23:15:32 (GMT)
commitd8f416bbb87c2218ee5e43ec44ab8574a93fe423 (patch)
treecea26ca86f1f332263eb5ca9f7d3fa983c7f706a /ci/run-build-and-tests.sh
parente137fe3b2913898ebc9fac0cef8bfe402686d9b1 (diff)
downloadgit-d8f416bbb87c2218ee5e43ec44ab8574a93fe423.zip
git-d8f416bbb87c2218ee5e43ec44ab8574a93fe423.tar.gz
git-d8f416bbb87c2218ee5e43ec44ab8574a93fe423.tar.bz2
ci: run unit tests in CI
Run unit tests in both Cirrus and GitHub CI. For sharded CI instances (currently just Windows on GitHub), run only on the first shard. This is OK while we have only a single unit test executable, but we may wish to distribute tests more evenly when we add new unit tests in the future. We may also want to add more status output in our unit test framework, so that we can do similar post-processing as in ci/lib.sh:handle_failed_tests(). Signed-off-by: Josh Steadmon <steadmon@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ci/run-build-and-tests.sh')
-rwxr-xr-xci/run-build-and-tests.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/ci/run-build-and-tests.sh b/ci/run-build-and-tests.sh
index a18b13a..6c166b0 100755
--- a/ci/run-build-and-tests.sh
+++ b/ci/run-build-and-tests.sh
@@ -49,6 +49,8 @@ if test -n "$run_tests"
then
group "Run tests" make test ||
handle_failed_tests
+ group "Run unit tests" \
+ make DEFAULT_UNIT_TEST_TARGET=unit-tests-prove unit-tests
fi
check_unignored_build_artifacts