Commit f65775c0 authored by Jan Kiene's avatar Jan Kiene
Browse files

add also asan test to MR pipeline

parent e7f7a16f
Loading
Loading
Loading
Loading
Loading
+17 −1
Original line number Diff line number Diff line
@@ -135,7 +135,8 @@ codec-smoke-test:
      - out/logs


run-selftest-with-msan:
# code selftest testvectors with memory-sanitizer binaries
msan-on-merge-request-linux:
  extends: .test-job-linux
  stage: test
  needs: [ "build-codec-sanitizers-linux" ]
@@ -149,6 +150,21 @@ run-selftest-with-msan:
    - if [ $run_errors != 0 ] ; then echo "Run errors in self_test.py with Clang memory-sanitizer"; exit $EXIT_CODE_FAIL; 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 -c "test conditions had run errors") || true
    - if [ $run_errors != 0 ] ; then echo "Run errors in self_test.py with Clang address-sanitizer"; exit $EXIT_CODE_FAIL; fi


# compare bit exactness between target and source branch
self-test-on-merge-request:
  extends: .test-job-linux