Commit d89f0122 authored by norvell's avatar norvell
Browse files

Use scripts and tests from reference

parent 59bd040e
Loading
Loading
Loading
Loading
Loading
+6 −17
Original line number Diff line number Diff line
@@ -1205,39 +1205,28 @@ ivas-conformance:
      - 123
  script:
    - *print-common-info
    # Prepare reference exec, TBD
    # Prepare reference exec, use tests and scripts from reference
    - source_branch_commit_sha=$(git rev-parse HEAD)
    - git checkout 20230815_RC02_SA4#125_delivery
    - make -j
    - cp IVAS_cod IVAS_cod_ref
    - cp IVAS_dec IVAS_dec_ref
    - cp IVAS_rend IVAS_rend_ref
    - cp -r tests tests_ref
    - cp -r scripts scripts_ref
    - git restore .
    - git checkout $source_branch_commit_sha

    # remove unsupported testcases, in reverse row order 
    - sed -i '1623,1625d' scripts/config/self_test.prm
    - sed -i '1307,1321d' scripts/config/self_test.prm
    - sed -i '1205,1213d' scripts/config/self_test.prm
    - sed -i '849,851d' scripts/config/self_test.prm
    - sed -i '805,807d' scripts/config/self_test.prm
    - sed -i '684,686d' scripts/config/self_test.prm
    - sed -i '420,422d' scripts/config/self_test.prm
    - sed -i '377,383d' scripts/config/self_test.prm
    - sed -i '321,329d' scripts/config/self_test.prm
    # Remove unsupported -fr option from renderer tests
    - sed -i '206,207d' tests/renderer/utils.py 
    # Revert to -tf option used in old IVAS_rend
    - sed -i '187s/-T/-tf/' tests/renderer/utils.py 
    - mv tests_ref tests 
    - mv scripts_ref scripts 

    # Reference creation
    - non_be_flag=0
    - exit_code=0
    - python3 -m pytest tests/codec_be_on_mr_nonselection/ -v -n auto --update_ref 1 -m create_ref || exit_code=$?
    - python3 -m pytest tests/codec_be_on_mr_nonselection/ -v -n auto --update_ref 1 -m create_ref_part2 || exit_code=$?
    - python3 -m pytest -q -n auto tests/renderer/test_renderer.py --create_ref || exit_code=$?

    # Output creation
    - exit_code=0
    - python3 -m pytest tests/codec_be_on_mr_nonselection tests/renderer/test_renderer.py -v -n auto --junit-xml=report-junit.xml --html=report.html --self-contained-html || exit_code=$?
    - python3 parse_commands.py report.html Readme_IVAS.txt
    - zero_errors=$(cat report-junit.xml | grep -c 'errors="0"') || true