Browse Source

Move some sanitizer tests in release.sh

Both ASan and MSan suggest optimization, so I moved them to the reldebug
section. I also set the ASan afl build to a higher optimization.
rand
Gavin Howard 2 years ago
parent
commit
1e2686cd78
Signed by: gavin GPG Key ID: C08038BDF280D33E
  1. 9
      release.sh

9
release.sh

@ -327,9 +327,7 @@ debug() {
runtests "$debug" "$_debug_CC" "-g" "$_debug_run_tests"
if [ "$_debug_CC" = "clang" -a "$run_sanitizers" -ne 0 ]; then
runtests "$debug -fsanitize=address" "$_debug_CC" "-g" "$_debug_run_tests"
runtests "$debug -fsanitize=undefined" "$_debug_CC" "-g" "$_debug_run_tests"
runtests "$debug -fsanitize=memory" "$_debug_CC" "-g" "$_debug_run_tests"
fi
}
@ -353,6 +351,11 @@ reldebug() {
shift
runtests "$debug" "$_reldebug_CC" "-gO3" "$_reldebug_run_tests"
if [ "$_reldebug_CC" = "clang" -a "$run_sanitizers" -ne 0 ]; then
runtests "$debug -fsanitize=address" "$_debug_CC" "-g" "$_debug_run_tests"
runtests "$debug -fsanitize=memory" "$_debug_CC" "-g" "$_debug_run_tests"
fi
}
minsize() {
@ -480,7 +483,7 @@ if [ "$run_tests" -ne 0 ]; then
printf '\n'
printf 'Then run ASan on the fuzzer test cases with the following build:\n'
printf '\n'
printf ' CFLAGS="-fsanitize=address -fno-omit-frame-pointer" ./configure.sh -gO1\n'
printf ' CFLAGS="-fsanitize=address -fno-omit-frame-pointer" ./configure.sh -gO3\n'
printf ' make\n'
printf '\n'
printf 'Then run the GitHub release script as follows:\n'

Loading…
Cancel
Save