summaryrefslogtreecommitdiffstats
path: root/ci/run-test-slice.sh
blob: ff948e397fcb70b77096b4fe7cafe71469935ec2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
#
# Test Git in parallel
#

. ${0%/*}/lib.sh

TESTS=$(cd t && ./helper/test-tool path-utils slice-tests "$1" "$2" t[0-9]*.sh)

group "Run tests" make --quiet -C t T="$(echo "$TESTS" | 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