Commit Graph

22 Commits

Author SHA1 Message Date
Nicholas Wilson
0d0ac3aa0f Update EBCDIC support to support testing on normal ASCII systems (#656)
The pcre2test utility needs quite a few changes to accommodate this.
It is simpler to add a new mode to it, than to make it fully
EBCDIC-native. On an ASCII system, pcre2test performs ASCII I/O, but
tranlates the input when passing it to the fully-EBCDIC-supporting
library.
2025-02-12 22:31:00 +00:00
Nicholas Wilson
9a868b0605 Tidy up config.h management (task from README) (#658)
This fortuitously fixes the 16/32-bit 'unity' build.

Also tidy up the ckd_smul macros, for the sake of the Unity build.
2025-01-11 19:01:08 +00:00
Nicholas Wilson
23b4df750b Completely redo the substitute-case-callout work (#638)
Fixes #564

The previous API was not extensible to handle multi-character case rules. It required a fair bit of reworking in order to accommodate this. I had to delay the casing transformations to be done later, by buffering up the string to transform, and then allowing the callback to do an in-place transformation on the entire input to be transformed.
2024-12-26 23:46:21 +00:00
Nicholas Wilson
0ed421c00e Add Bazel build to CI (#623)
Add Bazel to CI using Bazelisk from the GitHub test runners.

Fix many things in the Bazel build file... and also add basic testing which executes pcre2test using RunTest.

---------

Co-authored-by: zaucy <zekewarren@gmail.com>
2024-12-16 11:35:31 +00:00
Nicholas Wilson
29e51cfa53 Add RunGrepTest.bat to CMake (#581) 2024-11-27 13:56:50 +01:00
Carlo Marcelo Arenas Belón
a3011c4378 complete update to Unicode 16 (#513)
UCD 16 makes a lot of changes to scripts, so make sure that we have
sufficient coverage by keeping the original autogenerated tests in
addition.

Complete the code updates for changes to ScriptExtensions.txt which
is no longer sorted by script and allow for multiple unicode property
test files, depending on Unicode version.
2024-10-05 12:39:48 +01:00
Alex Dowad
5e75d9baac Updates to Windows tests (RunTest.bat) (#468)
* Correct condition for creating testout{,jit}32 directories when running Windows tests

* Enable test suites 24-26 on Windows

* ci: add dev Windows job

While at it, fix a couple of issues in RunTest.bat

---------

Co-authored-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
2024-09-13 08:27:19 +01:00
Carlo Marcelo Arenas Belón
3fa0cc4ea7 windows: update CI to make test errors visible (#419)
While at it, cleanup the code to avoid spurious errors and include
all tests configured through cmake.
2024-06-11 16:52:34 +01:00
Philip Hazel
b0b3fc4c4b Update unknown error number test in RunTest.bat 2023-08-06 17:21:17 +01:00
Philip Hazel
ce8eb007d5 Show fc output after test mis-match in RunTest.bat 2023-08-06 17:14:20 +01:00
Carlo Marcelo Arenas Belón
f28e82602d ci: windows support (#105)
Still barebones and only to serve as a starting point and guideline for
how to integrate mostly non autotools environments.

Selects Intel 32-bit specifically as it is the one that has been tested
the most and also has the less number of warnings.

Test should be improved further so it is at least equivalent to what is
done in Linux, but that is orthogonal to having it integrated, and the
tests that were disabled would work locally (albeit in a newer version),
so this at least does the minimum to prevent regressions by validating
both the interpreter and JIT.

Co-authored-by: PhilipHazel <Philip.Hazel@gmail.com>
2022-04-22 10:07:12 +01:00
Philip.Hazel
9e15c97b6d Fix bug in RunTest: not reporting failure in test 2, and fix bugs in RunTest
and RunTest.bat causing test 2 to fail when not building in source directory.
2020-11-22 15:16:05 +00:00
Philip.Hazel
bd2bcb3ade Update to bring list of errors into line with RunTest. 2018-09-01 16:14:16 +00:00
Philip.Hazel
f7187b38c7 Apply some of Daniel Richard G's Windows patches. 2018-04-19 16:52:57 +00:00
Philip.Hazel
66ec3fc62f Remove reference to stack overflow from RunTest.bat. 2017-04-01 09:38:24 +00:00
Philip.Hazel
f18bfd1d93 Fix Windows test script. 2016-12-31 14:04:25 +00:00
Philip.Hazel
517cd43ff6 Fix bug for test 22. 2016-04-22 14:10:51 +00:00
Philip.Hazel
fd008957d5 Patches to fix tests under Windows. 2016-01-29 15:01:17 +00:00
Philip.Hazel
3263d44b97 Implement --never-backslash-C 2015-10-17 13:50:56 +00:00
Philip.Hazel
69af3b39a6 Update for added test 14. 2015-08-24 16:31:30 +00:00
Philip.Hazel
3c8164817e Fix bug in RunTest.bat for new test. 2015-08-24 16:09:39 +00:00
Philip.Hazel
20c75b2f42 Add RunTest.bat for testing under Windows, with appropriate test files. 2015-02-25 17:19:28 +00:00