• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:disable

13 # -noasan         skip the test that uses -fsanitize=address
14 # -nousan skip the test that uses -fsanitize=undefined
15 # -nodebug skip the test that uses --enable-debug
16 # -nojit skip all JIT tests
17 # -nojitmain skip non-valgrind JIT tests
18 # -nojitvalgrind skip JIT tests with valgrind
19 # -nomain skip all the main (non-JIT) set of tests
20 # -nomainvalgrind skip the main (non-JIT) valgrind tests
21 # -notmp skip the tests in a temporary directory
22 # -notmpjit skip the JIT test in a temporary directory
23 # -novalgrind skip all the valgrind tests
25 # Alternatively, if any of those names are given with '+' instead of '-no',
26 # only those groups named with '+' are run (e.g. +jit). If -dummy is given,
27 # no tests are actually run - this provides a means of testing the selectors.
29 # The -v option causes a call to 'pcre2test -C' to happen for each
47 while [ $# -gt 0 ] ; do
49 +*) if [ $seenplus -eq 0 ]; then
65 -dummy) dummy=1;;
66 -v) verbose=1;;
67 -noasan) useasan=0;;
68 -nousan) useusan=0;;
69 -nodebug) usedebug=0;;
70 -nojit) usejit=0; usejitvalgrind=0; usetmpjit=0;;
71 -nojitmain) usejit=0;;
72 -nojitvalgrind) usejitvalgrind=0;;
73 -nomain) usemain=0; usemainvalgrind=0;;
74 -nomainvalgrind) usemainvalgrind=0;;
75 -notmp) usetmp=0; usetmpjit=0;;
76 -notmpjit) usetmpjit=0;;
77 -novalgrind) usevalgrind=0;;
94 if [ $usejitvalgrind -eq 0 -a $usemainvalgrind -eq 0 ] ; then
98 # This is in case the caller has set aliases (as I do - PH)
102 # This is a temporary directory for testing out-of-line builds
111 CFLAGS="-g"
112 OFLAGS="-O0"
117 cc --version >/tmp/pcre2ccversion 2>/dev/null
118 if [ $? -eq 0 ] && grep GCC /tmp/pcre2ccversion >/dev/null; then
120 CFLAGS="$CFLAGS -Wall"
121 CFLAGS="$CFLAGS -Wno-overlength-strings"
122 CFLAGS="$CFLAGS -Wpointer-arith"
123 CFLAGS="$CFLAGS -Wwrite-strings"
124 CFLAGS="$CFLAGS -Wundef -Wshadow"
125 CFLAGS="$CFLAGS -Wmissing-field-initializers"
126 CFLAGS="$CFLAGS -Wunused-parameter"
127 CFLAGS="$CFLAGS -Wextra -Wformat"
128 CFLAGS="$CFLAGS -Wbad-function-cast"
129 CFLAGS="$CFLAGS -Wmissing-declarations"
130 CFLAGS="$CFLAGS -Wnested-externs"
131 CFLAGS="$CFLAGS -pedantic"
132 CFLAGS="$CFLAGS -Wuninitialized"
133 CFLAGS="$CFLAGS -Wmaybe-uninitialized"
134 CFLAGS="$CFLAGS -Wmissing-prototypes"
135 CFLAGS="$CFLAGS -Wstrict-prototypes"
136 CFKAGS="$CFLAGS -Warray-bounds"
137 CFLAGS="$CFLAGS -Wformat-overflow=2"
139 rm -f /tmp/pcre2ccversion
148 rm -f $srcdir/pcre2test $srcdir/pcre2grep $srcdir/pcre2_jit_test $srcdir/pcre2posix_test
158 if [ $dummy -eq 1 ]; then return; fi
162 if [ $? -ne 0 ]; then
181 make -j >/dev/null 2>teststderrM
183 if command -v sed >/dev/null 2>&1 ; then
186 mv -f teststderrMM teststderrM
188 if [ $makeRC -ne 0 -o -s teststderrM ]; then
196 if [ $verbose -eq 1 ]; then
197 ./pcre2test -C
200 ./pcre2test -C jit >/dev/null
202 ./pcre2test -C pcre2-8 >/dev/null
208 if [ $? -ne 0 -o -s teststderrM ]; then
211 if [ -s teststderrM ] ; then
219 if [ $pcre2_8 -gt 0 ]; then
222 if [ $? -ne 0 -o -s teststderrM ]; then
232 if [ $? -ne 0 ]; then
238 echo "Skipping pcre2grep and pcre2posix tests: 8-bit library not compiled"
241 if [ "$jit" -gt 0 ]; then
244 if [ $? -ne 0 -o -s teststderrM ]; then
271 if [ $testtotal -eq 0 ] ; then
282 if [ $usejit -ne 0 ]; then
283 enable_jit=--enable-jit
288 # If gcc is in use, run a maximally configured test with -O2, because that can
289 # throw up warnings that are not detected with -O0. Then run a second test with
290 # -fsanitize=address, which also may throw up new warnings as well as checking
291 # things at runtime. Finally, run another test using -fsanitize=undefined
292 # -std-gnu99 to check for runtime actions that are not well defined.
294 if [ $ISGCC -ne 0 -a $usemain -ne 0 ]; then
295 echo "---------- Maximally configured test with -O2 ----------"
297 CFLAGS="-O2 $CFLAGS"
299 opts="--disable-shared $enable_jit --enable-pcre2-16 --enable-pcre2-32"
301 if [ $useasan -ne 0 ]; then
302 echo "---------- Maximally configured test with -fsanitize=address ----------"
305 CFLAGS="$OFLAGS $SAVECFLAGS -no-pie -fno-PIE -fsanitize=address"
307 opts="--disable-shared $enable_jit --enable-pcre2-16 --enable-pcre2-32"
311 if [ $useusan -ne 0 ]; then
312 …echo "------- Maximally configured test with -fsanitize=undefined -fno-sanitize=alignment -std=gnu…
313 …CFLAGS="$OFLAGS $SAVECFLAGS -no-pie -fno-PIE -fsanitize=undefined -fno-sanitize=alignment -std=gnu…
315 opts="--disable-shared $enable_jit --enable-pcre2-16 --enable-pcre2-32"
324 # use --disable-shared or --disable-static except for the default test (which
328 echo "---------- CFLAGS for the remaining tests ----------"
332 if [ $usemain -ne 0 ]; then
333 if [ $usedebug -ne 0 ]; then
334 echo "---------- Maximally configured test with --enable-debug ----------"
335 opts="--disable-shared $enable_jit --enable-pcre2-16 --enable-pcre2-32 --enable-debug"
339 echo "---------- Non-JIT tests in the current directory ----------"
342 "--disable-static" \
343 "--disable-shared" \
344 "--disable-unicode --disable-shared --enable-never-backslash-C" \
345 "--with-link-size=3 --disable-shared --disable-pcre2grep-callout" \
346 "--disable-unicode --enable-rebuild-chartables --disable-shared" \
347 "--disable-unicode --enable-newline-is-any --disable-shared" \
348 "--disable-unicode --enable-newline-is-cr --disable-shared" \
349 "--disable-unicode --enable-newline-is-crlf --disable-shared" \
350 "--disable-unicode --enable-newline-is-anycrlf --enable-bsr-anycrlf --disable-shared" \
351 "--enable-newline-is-any --disable-static" \
352 "--disable-unicode --enable-pcre2-16" \
353 "--enable-pcre2-16 --disable-shared" \
354 "--disable-unicode --enable-pcre2-32" \
355 "--enable-pcre2-32 --disable-shared" \
356 "--disable-unicode --enable-pcre2-32 --enable-pcre2-16 --disable-shared" \
357 "--disable-unicode --enable-pcre2-32 --enable-pcre2-16 --disable-pcre2-8 --disable-shared"
365 if [ $usejit -ne 0 ]; then
366 echo "---------- JIT tests in the current directory ----------"
368 "--disable-unicode --enable-jit --disable-shared" \
369 "--enable-jit --disable-shared" \
370 "--enable-jit --with-link-size=3 --disable-shared" \
371 "--enable-jit --enable-pcre2-16 --disable-shared" \
372 "--disable-unicode --enable-jit --enable-pcre2-16 --disable-pcre2-8 --disable-shared" \
373 "--enable-jit --enable-pcre2-16 --disable-pcre2-8 --disable-shared" \
374 "--enable-jit --enable-pcre2-16 --with-link-size=3 --disable-shared" \
375 "--enable-jit --enable-pcre2-16 --with-link-size=4 --disable-shared" \
376 "--enable-jit --enable-pcre2-32 --disable-shared" \
377 "--disable-unicode --enable-jit --enable-pcre2-32 --disable-pcre2-8 --disable-shared" \
378 "--enable-jit --enable-pcre2-32 --disable-pcre2-8 --disable-shared" \
379 "--enable-jit --enable-pcre2-32 --with-link-size=4 --disable-shared" \
380 …"--enable-jit --enable-pcre2-32 --enable-pcre2-16 --disable-pcre2-8 --enable-newline-is-anycrlf --
386 # Now re-run some of the tests under valgrind.
388 if [ $usevalgrind -ne 0 ]; then
389 echo "---------- Tests in the current directory using valgrind ----------"
393 if [ $usemainvalgrind -ne 0 ]; then
395 "--disable-shared" \
396 "--with-link-size=3 --enable-pcre2-16 --enable-pcre2-32 --disable-shared"
398 opts="--enable-valgrind $opts"
403 if [ $usejitvalgrind -ne 0 ]; then
404 …jrvalgrind="valgrind --tool=memcheck -q --smc-check=all-non-file --suppressions=$srcdir/testdata/v…
406 "--enable-jit --disable-shared" \
407 "--enable-jit --enable-pcre2-16 --enable-pcre2-32"
409 opts="--enable-valgrind $opts"
423 if [ -f Makefile ]; then
426 if [ $? -ne 0 ]; then
432 echo "---------- End of tests in the source directory ----------"
434 rm -rf teststdoutM teststderrM
436 if [ $usetmp -ne 0 -o $usetmpjit -ne 0 ]; then
440 if [ ! -e $tmp ]; then
444 if [ ! -d $tmp ]; then
450 if [ $? -ne 0 ]; then
455 if [ $usetmp -ne 0 ]; then
456 echo "---------- Tests in the $tmp directory ----------"
458 "--disable-shared"
464 if [ $usetmpjit -ne 0 ]; then
465 echo "---------- JIT tests in the $tmp directory ----------"
467 "--enable-jit --disable-shared"
474 rm -rf $tmp
477 echo "---------- All done ----------"