Repository navigation
pcre2-test runs upstream's RunTest in With, not bash - #2593
Merged
Merged
Conversation
RunTest is a bash script, and the build spawned `/bin/bash RunTest`: a Windows host has no bash, so pcre2-test could never run there (#2592), and a self-hosting build layer runs no shell. build/pcre2.w now carries RunTest's logic for the 8-bit library: the capability probes (`pcre2test -C <name>` answers in its exit code), tests 0 to 29 with the same skips, option passes (-jit, -dfa) and output files, test 0's argument checks, test 2's appended `-error` run, test 3's locale search over upstream's alternative outputs, and a byte comparison of each output against upstream's testdata. Every pcre2test run's captures land in the run directory under the run's tag; the suite's lines in stdout.txt. The smoke target runs tests 0 to 5 the same way; the heap test stays as it was.
ehartford
force-pushed
the
pcre2-runtest
branch
from
October 23, 2026 21:32
7e40547 to
d6d25ea
Compare
Contributor
Author
ehartford
marked this pull request as ready for review
October 23, 2026 21:37
This was referenced Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ruling (Eric, 2026-10-23): pcre2-test must not depend on bash; the build layer is self-hosting. The build spawned
/bin/bash RunTest, so pcre2-test could never run on a Windows host (#2592).build/pcre2.wnow carries RunTest's logic for the 8-bit library (Pcre2Suite,pcre2_run_upstream_tests): the capability probes (pcre2test -C <name>answers in its exit code), tests 0 to 29 with the same skips, option passes (-jit, -dfa) and output files, test 0's argument checks, test 2's appended-errorrun, test 3's locale search over upstream's alternative outputs, and a byte comparison of each output against testdata. Every pcre2test run's captures land in the run directory under the run's tag; the suite's lines in stdout.txt. The smoke target runs tests 0 to 5 the same way; the heap test is unchanged.Evidence on darwin:
:pcre2-test-smoke2.5 s, "All tests passed";:pcre2-testwith its dependencies 291 s, every test OK or skipped exactly as RunTest skips it (JIT, \C, 16/32-bit, EBCDIC), "VERIFIED: migrated pcre2test passes upstream RunTest for the 8-bit corpus". Draft until the battery is green. The Windows findings of #2592 (test 2's 6.5 GB allocation, test 3 under the Windows fr_FR locale) are what the port will report there next.