Commit 7aef28fa authored by norvell's avatar norvell
Browse files

Add job encoder-parameter-log-test

parent c7b43a06
Loading
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ variables:
      - 'sanitizer-stv'
      - 'pytest-renderer'
      - 'complexity'
      - 'encoder-parameter-log-test'


default:
@@ -81,6 +82,9 @@ workflow:
    - if: $CI_PIPELINE_SOURCE == 'web' && $MANUAL_PIPELINE_TYPE == 'complexity'
      variables:
        IVAS_PIPELINE_NAME: 'Complexity Measurement on $CI_COMMIT_BRANCH'
    - if: $CI_PIPELINE_SOURCE == 'web' && $MANUAL_PIPELINE_TYPE == 'encoder-parameter-log-test'
      variables:
        IVAS_PIPELINE_NAME: 'Encoder parameter log test on $CI_COMMIT_BRANCH'
    - if: $CI_PIPELINE_SOURCE == 'schedule' # Scheduled in any branch
      variables:
        IVAS_PIPELINE_NAME: 'Scheduled pipeline: $CI_COMMIT_BRANCH'        
@@ -785,6 +789,33 @@ ivas-pytest-dec-usan-short:
    - DUT_ENCODER_PATH=./$REF_ENCODER_PATH
  <<: *ivas-pytest-sanitizers-anchor

encoder-parameter-log-test:
  extends:
    - .test-job-linux
  script:
    - *print-common-info
    - *update-scripts-repo
    - *build-reference-and-dut-binaries
    - exit_code_ref=0
    - exit_code_dut=0
    - python3 -m pytest -v --update_ref 1 --enc_stats --encoder_only -n auto $SHORT_TEST_SUITE || exit_code_ref=$?
    - python3 -m pytest -v --enc_stats --encoder_only -n auto $SHORT_TEST_SUITE --html=report.html --self-contained-html --junit-xml=report-junit.xml || exit_code_dut=$?

    - if [ $exit_code_ref -eq 1 ]; then echo "Run error in reference!"; exit $EXIT_CODE_FAIL; fi
    - if [ $exit_code_dut -eq 1 ]; then echo "Run error in DuT!"; exit $EXIT_CODE_FAIL; fi

artifacts:
    name: "$CI_JOB_NAME--sha-$CI_COMMIT_SHORT_SHA--results"
    expire_in: 4 weeks
    when: always
    paths:
      - report-junit.xml
      - report.html
    expose_as: "pytest compare results"
    reports:
      junit:
        - report-junit.xml

# ---------------------------------------------------------------
# Long test jobs 
# ---------------------------------------------------------------