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