mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
cc75e4a08f
Add a wrapper script to allow `prove` to run both shell tests and unit tests from a single invocation. This avoids issues around running prove twice in CI, as discussed in [1]. Additionally, this moves the unit tests into the main dev workflow, so that errors can be spotted more quickly. Accordingly, we remove the separate unit tests step for Linux CI. (We leave the Windows CI unit-test step as-is, because the sharding scheme there involves selecting specific test files rather than running `make test`.) [1] https://lore.kernel.org/git/pull.1613.git.1699894837844.gitgitgadget@gmail.com/ Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Josh Steadmon <steadmon@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
18 lines
288 B
Bash
Executable file
18 lines
288 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# A simple wrapper to run shell tests via TEST_SHELL_PATH,
|
|
# or exec unit tests directly.
|
|
|
|
case "$1" in
|
|
*.sh)
|
|
if test -z "${TEST_SHELL_PATH}"
|
|
then
|
|
echo >&2 "ERROR: TEST_SHELL_PATH is empty or not set"
|
|
exit 1
|
|
fi
|
|
exec "${TEST_SHELL_PATH}" "$@"
|
|
;;
|
|
*)
|
|
exec "$@"
|
|
;;
|
|
esac
|