diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-12-10 03:37:47 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-12-10 03:37:47 +0300 |
commit | 8bf6fbd00dc74c5c83ff5a20ef9293a9d77845a8 (patch) | |
tree | 2659e4b70c821276276e433e301879d71bcd05da /ci | |
parent | 0946acfb50b77adbe4f9edf5c1d270a00b376e37 (diff) | |
parent | d8f416bbb87c2218ee5e43ec44ab8574a93fe423 (diff) |
Merge branch 'js/doc-unit-tests'
Process to add some form of low-level unit tests has started.
* js/doc-unit-tests:
ci: run unit tests in CI
unit tests: add TAP unit test framework
unit tests: add a project plan document
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/run-build-and-tests.sh | 2 | ||||
-rwxr-xr-x | ci/run-test-slice.sh | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ci/run-build-and-tests.sh b/ci/run-build-and-tests.sh index 2528f25e31..7a1466b868 100755 --- a/ci/run-build-and-tests.sh +++ b/ci/run-build-and-tests.sh @@ -50,6 +50,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 diff --git a/ci/run-test-slice.sh b/ci/run-test-slice.sh index a3c67956a8..ae8094382f 100755 --- a/ci/run-test-slice.sh +++ b/ci/run-test-slice.sh @@ -15,4 +15,9 @@ group "Run tests" make --quiet -C t T="$(cd t && tr '\n' ' ')" || handle_failed_tests +# We only have one unit test at the moment, so run it in the first slice +if [ "$1" == "0" ] ; then + group "Run unit tests" make --quiet -C t unit-tests-prove +fi + check_unignored_build_artifacts |