mirror of
https://github.com/git/git.git
synced 2024-12-04 15:34:05 +08:00
b121eed8d5
Although the previous commit changed t/Makefile to run unit tests alongside shell tests, the Windows CI still needs a separate unit-tests step due to how the test sharding works. We want to avoid using `prove` as a test running on Windows due to performance issues [1], so use the new test-tool runner instead. [1] https://lore.kernel.org/git/850ea42c-f103-68d5-896b-9120e2628686@gmx.de/ Signed-off-by: Josh Steadmon <steadmon@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
24 lines
554 B
Bash
Executable File
24 lines
554 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Test Git in parallel
|
|
#
|
|
|
|
. ${0%/*}/lib.sh
|
|
|
|
case "$CI_OS_NAME" in
|
|
windows*) cmd //c mklink //j t\\.prove "$(cygpath -aw "$cache_dir/.prove")";;
|
|
*) ln -s "$cache_dir/.prove" t/.prove;;
|
|
esac
|
|
|
|
group "Run tests" make --quiet -C t T="$(cd t &&
|
|
./helper/test-tool path-utils slice-tests "$1" "$2" t[0-9]*.sh |
|
|
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-test-tool
|
|
fi
|
|
|
|
check_unignored_build_artifacts
|