Skip to content

pcre2-test runs upstream's RunTest in With, not bash - #2593

Merged
ehartford merged 1 commit into
mainfrom
pcre2-runtest
Oct 23, 2026
Merged

ehartford merged 1 commit into
mainfrom
pcre2-runtest

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

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.w now 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 -error run, 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-smoke 2.5 s, "All tests passed"; :pcre2-test with 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.

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

Copy link
Copy Markdown
Contributor Author

Battery GREEN on d6d25ea (the amended commit: Unit-returning helpers after the unit-return review, no str clone calls after the census), under the pinned darwin seed. Through the port on win10 (bridge 02da64d): 28 of 30 tests pass; tests 2 and 3 are the Windows findings of #2592.

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.

1 participant