mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-23 15:42:31 -05:00
Because `git subtree` (unlike most other `contrib` modules) is included as part of the standard release of Git for Windows, its stability should be verified as consistently as it is for the rest of git. By including the `git subtree` tests in the CI workflow, these tests are as much of a gate to merging and indicator of stability as the standard test suite. Signed-off-by: Victoria Dye <vdye@github.com>
22 lines
493 B
Bash
Executable File
22 lines
493 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
|
|
|
|
# Run the git subtree tests only if main tests succeeded
|
|
test 0 != "$1" || make -C contrib/subtree test
|
|
|
|
check_unignored_build_artifacts
|