From 754cd34f85133025b5fcb609578020fd971c118f Mon Sep 17 00:00:00 2001 From: Jordan Torbiak Date: Tue, 17 Oct 2023 14:33:24 -0600 Subject: [PATCH] Add function to help test Git for Windows on msys --- release | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/release b/release index b048dbd..e144872 100755 --- a/release +++ b/release @@ -41,5 +41,17 @@ release() { upload "App-Git-Autofixup-${version%%000}.tar.gz" } +# This is a simplistic script to help test Git for Windows on msys, since +# prove(1perl) doesn't ship with it. +test_msys() { + exit_code=0 + for f in xt/*.t t/*.t; do + logfile=${f%.t}.log + perl -Ilib "$f" &>"$logfile" || true + grep -E "^not ok" "$logfile" && exit_code=1 || true + done + return "$exit_code" +} + cd "${BASH_SOURCE%/*}" "$@"