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

add small sanitizer test run to MR pipeline

parent ca31cb52
Loading
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -135,6 +135,20 @@ codec-smoke-test:
      - out/logs


run-selftest-with-msan:
  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 -c "test conditions had run errors") || true
    - if [ $run_errors != 0 ] ; then echo "Run errors in self_test.py with Clang memory-sanitizer"; exit $EXIT_CODE_FAIL; fi


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