Loading .gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -2214,7 +2214,7 @@ sanitizer-test-osba-planar-hoa3-ism4: - if: $MANUAL_PIPELINE_TYPE == "coverage" timeout: 6 hours before_script: - !reference [.job-linux, before_script] - !reference [.test-job-linux-needs-testv-dir, before_script] - set -e - 'trap ''echo "Command failed at line $LINENO: $BASH_COMMAND"'' ERR' - bash "${CI_PROJECT_DIR}"/ivas-codec-ci/snippets/print-common-info.sh Loading tests/hrtf_binary_loading/utils.py +58 −31 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ import os import sys import uuid from typing import Optional from pathlib import Path import pytest Loading Loading @@ -306,7 +307,12 @@ def compare_rom_vs_binary( input_path = TESTV_DIR.joinpath(in_file).with_suffix(".wav") bitstream_path = BITSTREAM_DIR.joinpath(in_file + file_ext) run_encoder( test_info, bitrate, in_fs, input_path, bitstream_path, add_option_list=option_list_enc test_info, bitrate, in_fs, input_path, bitstream_path, add_option_list=option_list_enc, ) if trj_file is not None: Loading @@ -316,7 +322,12 @@ def compare_rom_vs_binary( option_list_dec = None out_rom_path = DEC_ROM_DIR.joinpath(in_file + file_ext).with_suffix(".wav") run_decoder( test_info, out_fmt, out_fs, bitstream_path, out_rom_path, add_option_list=option_list_dec test_info, out_fmt, out_fs, bitstream_path, out_rom_path, add_option_list=option_list_dec, ) out_rom, out_rom_fs = pyaudio3dtools.audiofile.readfile(out_rom_path) Loading @@ -328,7 +339,12 @@ def compare_rom_vs_binary( out_bin_path = DEC_BINARY_DIR.joinpath(in_file + file_ext).with_suffix(".wav") run_decoder( test_info, out_fmt, out_fs, bitstream_path, out_bin_path, add_option_list=option_list_dec test_info, out_fmt, out_fs, bitstream_path, out_bin_path, add_option_list=option_list_dec, ) out_bin, out_bin_fs = pyaudio3dtools.audiofile.readfile(out_bin_path) Loading @@ -344,6 +360,10 @@ def compare_rom_vs_binary( pytest.fail( f"CuT not BE to REF! SNR : {snr:3.2f} dB, Gain CuT: {gain_b:1.3f}, Max Diff = {int(max_diff)}" ) elif diff_found and xfail: pytest.xfail( f"Expected CuT not BE to REF! SNR : {snr:3.2f} dB, Gain CuT: {gain_b:1.3f}, Max Diff = {int(max_diff)}" ) elif not diff_found and xfail: pytest.fail("Difference expected, but none found.") else: Loading Loading @@ -430,6 +450,13 @@ def compare_renderer_vs_renderer_with_binary_hrir( pytest.fail( f"CuT not BE to REF! SNR : {snr:3.2f} dB, Gain CuT: {gain_b:1.3f}, Max Diff = {int(max_diff)}" ) elif diff_found and xfail: if keep_file != "if failed": os.remove(ref_out) os.remove(cut_out) pytest.xfail( f"Expected CuT not BE to REF! SNR : {snr:3.2f} dB, Gain CuT: {gain_b:1.3f}, Max Diff = {int(max_diff)}" ) elif not diff_found and xfail: if keep_file != "if failed": os.remove(ref_out) Loading Loading
.gitlab-ci.yml +1 −1 Original line number Diff line number Diff line Loading @@ -2214,7 +2214,7 @@ sanitizer-test-osba-planar-hoa3-ism4: - if: $MANUAL_PIPELINE_TYPE == "coverage" timeout: 6 hours before_script: - !reference [.job-linux, before_script] - !reference [.test-job-linux-needs-testv-dir, before_script] - set -e - 'trap ''echo "Command failed at line $LINENO: $BASH_COMMAND"'' ERR' - bash "${CI_PROJECT_DIR}"/ivas-codec-ci/snippets/print-common-info.sh Loading
tests/hrtf_binary_loading/utils.py +58 −31 Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ import os import sys import uuid from typing import Optional from pathlib import Path import pytest Loading Loading @@ -306,7 +307,12 @@ def compare_rom_vs_binary( input_path = TESTV_DIR.joinpath(in_file).with_suffix(".wav") bitstream_path = BITSTREAM_DIR.joinpath(in_file + file_ext) run_encoder( test_info, bitrate, in_fs, input_path, bitstream_path, add_option_list=option_list_enc test_info, bitrate, in_fs, input_path, bitstream_path, add_option_list=option_list_enc, ) if trj_file is not None: Loading @@ -316,7 +322,12 @@ def compare_rom_vs_binary( option_list_dec = None out_rom_path = DEC_ROM_DIR.joinpath(in_file + file_ext).with_suffix(".wav") run_decoder( test_info, out_fmt, out_fs, bitstream_path, out_rom_path, add_option_list=option_list_dec test_info, out_fmt, out_fs, bitstream_path, out_rom_path, add_option_list=option_list_dec, ) out_rom, out_rom_fs = pyaudio3dtools.audiofile.readfile(out_rom_path) Loading @@ -328,7 +339,12 @@ def compare_rom_vs_binary( out_bin_path = DEC_BINARY_DIR.joinpath(in_file + file_ext).with_suffix(".wav") run_decoder( test_info, out_fmt, out_fs, bitstream_path, out_bin_path, add_option_list=option_list_dec test_info, out_fmt, out_fs, bitstream_path, out_bin_path, add_option_list=option_list_dec, ) out_bin, out_bin_fs = pyaudio3dtools.audiofile.readfile(out_bin_path) Loading @@ -344,6 +360,10 @@ def compare_rom_vs_binary( pytest.fail( f"CuT not BE to REF! SNR : {snr:3.2f} dB, Gain CuT: {gain_b:1.3f}, Max Diff = {int(max_diff)}" ) elif diff_found and xfail: pytest.xfail( f"Expected CuT not BE to REF! SNR : {snr:3.2f} dB, Gain CuT: {gain_b:1.3f}, Max Diff = {int(max_diff)}" ) elif not diff_found and xfail: pytest.fail("Difference expected, but none found.") else: Loading Loading @@ -430,6 +450,13 @@ def compare_renderer_vs_renderer_with_binary_hrir( pytest.fail( f"CuT not BE to REF! SNR : {snr:3.2f} dB, Gain CuT: {gain_b:1.3f}, Max Diff = {int(max_diff)}" ) elif diff_found and xfail: if keep_file != "if failed": os.remove(ref_out) os.remove(cut_out) pytest.xfail( f"Expected CuT not BE to REF! SNR : {snr:3.2f} dB, Gain CuT: {gain_b:1.3f}, Max Diff = {int(max_diff)}" ) elif not diff_found and xfail: if keep_file != "if failed": os.remove(ref_out) Loading