Commit 3adbd6fb authored by Jan Kiene's avatar Jan Kiene
Browse files

use ignorelist in USAN job

parent b4a8a48f
Loading
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -553,9 +553,15 @@ stages:
    - *copy-ltv-files-to-testv-dir
    - python3 ci/remove_unsupported_testcases.py $PRM_FILES
    - *build-reference-and-dut-binaries

    - make_args="CLANG=$CLANG_NUM"
    - if [[ $CLANG_NUM == 3 ]]; then
    -   export UBSAN_OPTIONS="suppressions=scripts/ubsan_basop.supp,report_error_type=1"
    -   python3 scripts/basop_create_ignorelist_for_ubsan.py
    -   make_args="$make_args IGNORELIST=1"
    - fi
    - make clean
    - make -j CLANG=$CLANG_NUM
    - if [[ $CLANG_NUM == 3 ]]; then export UBSAN_OPTIONS="suppressions=scripts/ubsan_basop.supp,report_error_type=1"; fi
    - make -j $make_args
    - testcase_timeout=$TESTCASE_TIMEOUT_LTV_SANITIZERS
    - python3 -m pytest $TEST_SUITE -v --tb=no --update_ref 1 --html=report.html --self-contained-html --junit-xml=report-junit.xml --testcase_timeout $testcase_timeout --ref_encoder_path $DUT_ENCODER_PATH --ref_decoder_path $DUT_DECODER_PATH
  artifacts:
+5 −1
Original line number Diff line number Diff line
@@ -86,6 +86,10 @@ CFLAGS += -fsanitize=$(usan_checks)
CFLAGS  += -fsanitize-recover=$(usan_checks) 
LDFLAGS += -fsanitize=$(usan_checks)
LDFLAGS += -fsanitize-recover=$(usan_checks)

ifeq "$(IGNORELIST)" "1"
CFLAGS  += -fsanitize-ignorelist=ubsan_ignorelist.txt
LDFLAGS += -fsanitize-ignorelist=ubsan_ignorelist.txt
endif

ifeq "$(RELEASE)" "1"