Skip to content

Delete the Windows batch scripts and switch to Bash - #971

Open
NWilson wants to merge 2 commits into
mainfrom
user/niwilson/runtest-kill-batch
Open

Delete the Windows batch scripts and switch to Bash#971
NWilson wants to merge 2 commits into
mainfrom
user/niwilson/runtest-kill-batch

Conversation

@NWilson

@NWilson NWilson commented Sep 3, 2026

Copy link
Copy Markdown
Member

On Windows, this PR now requires either WSL Bash or Git-for-Windows bash if you want to run the tests.

The harness is a little brittle; but the old batch scripts were fragile too.

There a little risk with this: people on Windows might run into issues with failing tests and complain.

I do have some fallback options. However, I would like to try this first.

Fixes #652

On Windows, we now require either WSL Bash or Git-for-Windows bash if
you want to run the tests.

The harness is a little brittle; but the old batch scripts were fragile
too.
Comment thread maint/UpdateAlways
@@ -261,8 +260,6 @@ txt_files=(
)

crlf_files=(

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, RunShell.bat was meant to have been added here.

Comment thread RunShell.bat
set "RUNSHELL_SCRIPT=%~1"
)

if exist "%SystemRoot%\System32\wsl.exe" (

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah. Just because wsl.exe exists doesn't mean it's usable. We should query for whether an installation exists firs.

Comment thread RunGrepTest
# Set up the srcdir-relative paths for testing from the srcdir.

builddir_from_srcdir="`realpath --relative-to="$srcdir" "$builddir"`"
pcre2grep_from_srcdir="`realpath --relative-to="$srcdir" "$pcre2grep"`"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--relative-to isn't in POSIX. I'll need a replacement for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace RunTest.bat and RunGrepTest.bat with Powershell

1 participant