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

teporarily use short test files in renderer_short test for BINAURAL_ROOM_IR

parent bfee5ea3
Loading
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -67,6 +67,7 @@ from pyaudio3dtools.audiofile import readfile
from ..cmp_pcm import cmp_pcm
from ..conftest import get_split_idx, parse_properties


def _run_cmd(cmd, test_info=None, env=None):
    """
    Helper function for running some command.
@@ -106,6 +107,7 @@ def run_ivas_isar_enc_cmd(cmd, test_info=None, env=None):
    logging.info(f"\nRunning IVAS ISAR encoder command\n{' '.join(cmd)}\n")
    _run_cmd(cmd, test_info=test_info, env=env)


def run_ivas_isar_dec_cmd(cmd, test_info=None, env=None):
    if BIN_SUFFIX_MERGETARGET in cmd[0]:
        logging.info(f"\nREF decoder command:\n\t{' '.join(cmd)}\n")
@@ -113,6 +115,7 @@ def run_ivas_isar_dec_cmd(cmd, test_info=None, env=None):
        logging.info(f"\nDUT decoder command:\n\t{' '.join(cmd)}\n")
    _run_cmd(cmd, test_info=test_info, env=env)


def run_isar_post_rend_cmd(cmd, test_info=None, env=None):
    logging.info(f"\nRunning ISAR post renderer command\n{' '.join(cmd)}\n")
    _run_cmd(cmd, test_info=test_info, env=env)
@@ -237,6 +240,9 @@ def run_renderer(
    # if in REF or CUT creation mode use the comparetestv
    if test_info.config.option.create_ref or test_info.config.option.create_cut:
        format_to_file = FORMAT_TO_FILE_COMPARETEST
        # TODO: temporary change to reduce runtime for BINAURAL_ROOM_IR modes
        if out_fmt == "BINAURAL_ROOM_IR":
            format_to_file = FORMAT_TO_FILE_SMOKETEST
    else:
        format_to_file = FORMAT_TO_FILE_SMOKETEST