Commit c005cc69 authored by norvell's avatar norvell
Browse files

Add ivas-conformance to BASOP

parent 3d5e9cd3
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
@@ -3171,6 +3171,37 @@ complexity-osba-in-binaural_room_ir-out:
    - *complexity-measurements-report-summary
    - exit $ret_val

ivas-conformance:
  tags:
    - ivas-windows
  stage: test
  timeout: "6 hours"
  rules:
    - if: ($CI_PIPELINE_SOURCE == 'web' || $CI_PIPELINE_SOURCE == 'trigger') && $MANUAL_PIPELINE_TYPE == 'ivas-conformance'
  allow_failure:
    exit_codes:
      - 123
  script:
    - *print-common-info-windows
    - bash "${CI_PROJECT_DIR}"/ivas-codec-ci/snippets/ivas-conformance.ps1
  artifacts:
    name: "ivas-conformance-$CI_COMMIT_SHORT_SHA"
    expire_in: 1 week
    when: always
    paths:
      - report_cmd.html
      - report-junit.xml
      - report.html
      - Readme_IVAS_dec.txt
      - Readme_IVAS_enc.txt
      - Readme_IVAS_rend.txt
      - Readme_IVAS_JBM_dec.txt
      - Readme_IVAS_ISAR_dec.txt
      - Readme_IVAS_ISAR_post_rend.txt
    expose_as: "Draft IVAS conformance"
    reports:
      junit: report-junit.xml

# job that sets up gitlab pages website
pages:
  stage: deploy
+59 −0
Original line number Diff line number Diff line
MSBuild.exe -maxcpucount .\Workspace_msvc\Workspace_msvc.sln /property:Configuration=Debug
cp -force IVAS_cod.exe IVAS_cod_ref.exe
cp -force IVAS_dec.exe IVAS_dec_ref.exe
cp -force IVAS_rend.exe IVAS_rend_ref.exe
cp -force ISAR_post_rend.exe ISAR_post_rend_ref.exe

# Reference creation
python scripts/prepare_combined_format_inputs.py
$TEST_SET = "tests/codec_be_on_mr_nonselection", "tests/renderer_short/test_renderer.py", "tests/split_rendering/test_split_rendering.py"
python -m pytest -q $TEST_SET -v -n auto --update_ref 1 --create_ref --keep_files --html=report_cmd.html --self-contained-html
python scripts/parse_commands.py report_cmd.html Readme_IVAS.txt

# Copy input data and output ref data
if (Test-Path testvec) {rm -r -force testvec}
if (Test-Path TMP_DEC) {rm -r -force TMP_DEC}
if (Test-Path TMP_ENC) {rm -r -force TMP_ENC}
if (Test-Path TMP_JBM) {rm -r -force TMP_JBM}
if (Test-Path TMP_REND) {rm -r -force TMP_REND}
if (Test-Path TMP_ISAR_POST_REND) {rm -r -force TMP_ISAR_POST_REND}
if (Test-Path TMP_DEC_ISAR) {rm -r -force TMP_DEC_ISAR}
mkdir testvec
mkdir testvec/binauralRenderer_interface
mkdir testvec/testv
mkdir testvec/testv/renderer_short
mkdir testvec/testv/split_rendering
mkdir testvec/bin
cp    -force -ErrorAction Ignore scripts/testv/* testvec/testv
cp -r -force -ErrorAction Ignore scripts/ls_layouts testvec
cp -r -force -ErrorAction Ignore scripts/object_edit testvec
cp -r -force -ErrorAction Ignore scripts/switchPaths testvec
cp -r -force -ErrorAction Ignore scripts/trajectories testvec
cp -r -force -ErrorAction Ignore scripts/binauralRenderer_interface/binaural_renderers_hrtf_data testvec/binauralRenderer_interface
cp -r -force -ErrorAction Ignore tests/ref testvec/testv/ref
cp -r -force -ErrorAction Ignore tests/renderer_short/ref testvec/testv/renderer_short/ref
cp -r -force -ErrorAction Ignore tests/split_rendering/ref testvec/testv/split_rendering/ref
cp -r -force -ErrorAction Ignore tests/split_rendering/renderer_configs testvec/testv/split_rendering/renderer_configs
cp -r -force -ErrorAction Ignore tests/split_rendering/error_patterns testvec/testv/split_rendering/error_patterns

# Remove redundant files
python scripts/cleanup_26252.py

# Copy test script files
cp -r -force -ErrorAction Ignore tests/conformance-test testvec/
cp Readme_IVAS_dec.txt testvec
cp Readme_IVAS_enc.txt testvec
cp Readme_IVAS_rend.txt testvec
cp Readme_IVAS_JBM_dec.txt testvec
cp Readme_IVAS_ISAR_dec.txt testvec
cp Readme_IVAS_ISAR_post_rend.txt testvec
cp IVAS_cod.exe testvec/bin
cp IVAS_dec.exe testvec/bin
cp IVAS_rend.exe testvec/bin
cp ISAR_post_rend.exe testvec/bin

# Test run generated scripts in testvec
cd testvec
python -m pytest conformance-test/test_26252.py --junit-xml=report-junit.xml --html=report.html --self-contained-html
mv report.html ..
mv report-junit.xml ..