]> git.ipfire.org Git - thirdparty/git.git/blob - ci/run-test-slice.sh
Merge branch 'js/doc-unit-tests'
[thirdparty/git.git] / ci / run-test-slice.sh
1 #!/bin/sh
2 #
3 # Test Git in parallel
4 #
5
6 . ${0%/*}/lib.sh
7
8 case "$CI_OS_NAME" in
9 windows*) cmd //c mklink //j t\\.prove "$(cygpath -aw "$cache_dir/.prove")";;
10 *) ln -s "$cache_dir/.prove" t/.prove;;
11 esac
12
13 group "Run tests" make --quiet -C t T="$(cd t &&
14 ./helper/test-tool path-utils slice-tests "$1" "$2" t[0-9]*.sh |
15 tr '\n' ' ')" ||
16 handle_failed_tests
17
18 # We only have one unit test at the moment, so run it in the first slice
19 if [ "$1" == "0" ] ; then
20 group "Run unit tests" make --quiet -C t unit-tests-prove
21 fi
22
23 check_unignored_build_artifacts