]>
Commit | Line | Data |
---|---|---|
b819f1d2 JS |
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 | ||
dab73aeb | 13 | group "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' ' ')" || |
16 | handle_failed_tests | |
b819f1d2 | 17 | |
d8f416bb JS |
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 | ||
b819f1d2 | 23 | check_unignored_build_artifacts |