Skip to content

Commit

Permalink
Add function to help test Git for Windows on msys
Browse files Browse the repository at this point in the history
  • Loading branch information
torbiak committed Oct 17, 2023
1 parent 05ad006 commit 754cd34
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions release
Original file line number Diff line number Diff line change
Expand Up @@ -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%/*}"
"$@"

0 comments on commit 754cd34

Please sign in to comment.