Skip to content

Commit d81d56c

Browse files
committed
tools/ci: Add UBSan to longlong CI build.
Also rewrite the sanitizer argument variables to not assume a variant. longlong variant currently fails in this config, due to a bug fixed in follow-up commit. Signed-off-by: Angus Gratton <angus@redyak.com.au>
1 parent 020eeba commit d81d56c

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tools/ci.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -518,13 +518,11 @@ CI_UNIX_OPTS_QEMU_RISCV64=(
518518
)
519519

520520
CI_UNIX_OPTS_SANITIZE_ADDRESS=(
521-
VARIANT=coverage
522521
CFLAGS_EXTRA="-fsanitize=address --param asan-use-after-return=0"
523522
LDFLAGS_EXTRA="-fsanitize=address --param asan-use-after-return=0"
524523
)
525524

526525
CI_UNIX_OPTS_SANITIZE_UNDEFINED=(
527-
VARIANT=coverage
528526
CFLAGS_EXTRA="-fsanitize=undefined -fno-sanitize=nonnull-attribute"
529527
LDFLAGS_EXTRA="-fsanitize=undefined -fno-sanitize=nonnull-attribute"
530528
)
@@ -699,7 +697,7 @@ function ci_unix_nanbox_run_tests {
699697
}
700698

701699
function ci_unix_longlong_build {
702-
ci_unix_build_helper VARIANT=longlong
700+
ci_unix_build_helper VARIANT=longlong "${CI_UNIX_OPTS_SANITIZE_UNDEFINED[@]}"
703701
}
704702

705703
function ci_unix_longlong_run_tests {
@@ -765,23 +763,23 @@ function ci_unix_settrace_stackless_run_tests {
765763
function ci_unix_sanitize_undefined_build {
766764
make ${MAKEOPTS} -C mpy-cross
767765
make ${MAKEOPTS} -C ports/unix submodules
768-
make ${MAKEOPTS} -C ports/unix "${CI_UNIX_OPTS_SANITIZE_UNDEFINED[@]}"
766+
make ${MAKEOPTS} -C ports/unix VARIANT=coverage "${CI_UNIX_OPTS_SANITIZE_UNDEFINED[@]}"
769767
ci_unix_build_ffi_lib_helper gcc
770768
}
771769

772770
function ci_unix_sanitize_undefined_run_tests {
773-
MICROPY_TEST_TIMEOUT=60 ci_unix_run_tests_full_helper coverage "${CI_UNIX_OPTS_SANITIZE_UNDEFINED[@]}"
771+
MICROPY_TEST_TIMEOUT=60 ci_unix_run_tests_full_helper coverage VARIANT=coverage "${CI_UNIX_OPTS_SANITIZE_UNDEFINED[@]}"
774772
}
775773

776774
function ci_unix_sanitize_address_build {
777775
make ${MAKEOPTS} -C mpy-cross
778776
make ${MAKEOPTS} -C ports/unix submodules
779-
make ${MAKEOPTS} -C ports/unix "${CI_UNIX_OPTS_SANITIZE_ADDRESS[@]}"
777+
make ${MAKEOPTS} -C ports/unix VARIANT=coverage "${CI_UNIX_OPTS_SANITIZE_ADDRESS[@]}"
780778
ci_unix_build_ffi_lib_helper gcc
781779
}
782780

783781
function ci_unix_sanitize_address_run_tests {
784-
MICROPY_TEST_TIMEOUT=60 ci_unix_run_tests_full_helper coverage "${CI_UNIX_OPTS_SANITIZE_ADDRESS[@]}"
782+
MICROPY_TEST_TIMEOUT=60 ci_unix_run_tests_full_helper coverage VARIANT=coverage "${CI_UNIX_OPTS_SANITIZE_ADDRESS[@]}"
785783
}
786784

787785
function ci_unix_macos_build {

0 commit comments

Comments
 (0)