109 |
. Compile and test with many different config options, and combinations of |
. Compile and test with many different config options, and combinations of |
110 |
options. The maint/ManyConfigTests script now encapsulates this testing. |
options. The maint/ManyConfigTests script now encapsulates this testing. |
111 |
|
|
112 |
. Run perltest.pl on the test data for tests 1, 4, 6, and 11. The first two can |
. Run perltest.pl on the test data for tests 1, 4, 6, and 11. The output should |
113 |
be run with Perl 5.8 or >= 5.10; the last two require Perl >= 5.10. The |
match the PCRE test output, apart from the version identification at the |
114 |
output should match the PCRE test output, apart from the version |
start of each test. The other tests are not Perl-compatible (they use various |
115 |
identification at the start of each test. The other tests are not |
PCRE-specific features or options). |
|
Perl-compatible (they use various PCRE-specific features or options). |
|
116 |
|
|
117 |
. Test with valgrind by running "RunTest valgrind". There is also "RunGrepTest |
. Test with valgrind by running "RunTest valgrind". There is also "RunGrepTest |
118 |
valgrind", though that takes quite a long time. |
valgrind", though that takes quite a long time. |
119 |
|
|
|
. It may also useful to test with Electric Fence, though the fact that it |
|
|
grumbles for missing free() calls can be a nuisance. (A missing free() in |
|
|
pcretest is hardly a big problem.) To build with EF, use: |
|
|
|
|
|
LIBS='/usr/lib/libefence.a -lpthread' with ./configure. |
|
|
|
|
|
Then all normal runs use it to check for buffer overflow. Also run everything |
|
|
with: |
|
|
|
|
|
EF_PROTECT_BELOW=1 <whatever> |
|
|
|
|
|
because there have been problems with lookbehinds that looked too far. |
|
|
|
|
120 |
. Test with the emulated memmove() function by undefining HAVE_MEMMOVE and |
. Test with the emulated memmove() function by undefining HAVE_MEMMOVE and |
121 |
HAVE_BCOPY in config.h. You may see a number of "pcre_memmove defined but not |
HAVE_BCOPY in config.h. You may see a number of "pcre_memmove defined but not |
122 |
used" warnings for the modules in which there is no call to memmove(). These |
used" warnings for the modules in which there is no call to memmove(). These |
315 |
Philip Hazel |
Philip Hazel |
316 |
Email local part: ph10 |
Email local part: ph10 |
317 |
Email domain: cam.ac.uk |
Email domain: cam.ac.uk |
318 |
Last updated: 03 June 2010 |
Last updated: 24 November 2010 |