diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 82f826e6ff37085fa48b687d41e41c011948e034..82c39305a00c2149dc3543b0c3200d6bd05b1eb7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -135,6 +135,36 @@ codec-smoke-test: - out/logs +# code selftest testvectors with memory-sanitizer binaries +msan-on-merge-request-linux: + extends: .test-job-linux + stage: test + needs: [ "build-codec-sanitizers-linux" ] + rules: + - if: $CI_PIPELINE_SOURCE == 'merge_request_event' + script: + - make clean + - make -j CLANG=1 + - python3 scripts/self_test.py --create | tee test_output.txt + - run_errors=$(cat test_output.txt | grep -ic "run errors") || true + - if [ $run_errors != 0 ] ; then echo "Run errors in self_test.py with Clang memory-sanitizer"; exit 1; fi + + +# code selftest testvectors with address-sanitizer binaries +asan-on-merge-request-linux: + extends: .test-job-linux + stage: test + needs: [ "build-codec-sanitizers-linux" ] + rules: + - if: $CI_PIPELINE_SOURCE == 'merge_request_event' + script: + - make clean + - make -j CLANG=2 + - python3 scripts/self_test.py --create | tee test_output.txt + - run_errors=$(cat test_output.txt | grep -ic "run errors") || true + - if [ $run_errors != 0 ] ; then echo "Run errors in self_test.py with Clang address-sanitizer"; exit 1; fi + + # compare bit exactness between target and source branch self-test-on-merge-request: extends: .test-job-linux