Commit 7ca4acab authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

extend prerendering tests for MASA, remove restriction to MASA2 only, extend...

extend prerendering tests for MASA, remove restriction to MASA2 only, extend custom LS output tests as well
parent de2c3937
Loading
Loading
Loading
Loading
Loading
+60 −3
Original line number Diff line number Diff line
@@ -584,12 +584,61 @@ def test_masa_binaural_headrotation(
    )


@pytest.mark.parametrize("in_fmt", METADATA_SCENES_TO_TEST_MASA_PREREND)
@pytest.mark.parametrize("out_fmt", INPUT_FORMATS_MASA)
@pytest.mark.parametrize(
    "in_fmt",
    [
        *INPUT_FORMATS_AMBI,
        *INPUT_FORMATS_MC,
        *INPUT_FORMATS_ISM,
        *INPUT_FORMATS_MASA,
        *INPUT_FORMATS_OSBA,
        *INPUT_FORMATS_OMASA,
    ],
)
@pytest.mark.parametrize("frame_size", FRAMING_TO_TEST)
def test_masa_prerend(
    record_property,
    props_to_record,
    test_info,
    in_fmt,
    out_fmt,
    frame_size,
    get_mld,
    get_mld_lim,
    get_ssnr,
    get_odg,
    get_odg_bin,
    split_comparison,
):
    run_renderer(
        record_property,
        props_to_record,
        test_info,
        in_fmt,
        out_fmt,
        metadata_input=TEST_VECTOR_DIR.joinpath(f"{in_fmt}.txt"),
        binary_suffix=EXE_SUFFIX,
        frame_size=frame_size,
        get_mld=get_mld,
        mld_lim=get_mld_lim,
        get_ssnr=get_ssnr,
        get_odg=get_odg,
        get_odg_bin=get_odg_bin,
        split_comparison=split_comparison,
    )


@pytest.mark.parametrize("out_fmt", INPUT_FORMATS_MASA)
@pytest.mark.parametrize("in_fmt", METADATA_SCENES_TO_TEST_MASA_PREREND)
@pytest.mark.parametrize("frame_size", FRAMING_TO_TEST)
def test_masa_prerend_scenes(
    record_property,
    props_to_record,
    test_info,
    in_fmt,
    out_fmt,
    frame_size,
    get_mld,
    get_mld_lim,
    get_ssnr,
@@ -602,9 +651,10 @@ def test_masa_prerend(
        props_to_record,
        test_info,
        "META",
        "MASA2",
        out_fmt,
        metadata_input=TEST_VECTOR_DIR.joinpath(f"{in_fmt}.txt"),
        binary_suffix=EXE_SUFFIX,
        frame_size=frame_size,
        get_mld=get_mld,
        mld_lim=get_mld_lim,
        get_ssnr=get_ssnr,
@@ -870,7 +920,14 @@ def test_custom_ls_input(
@pytest.mark.parametrize("out_fmt", CUSTOM_LS_TO_TEST)
@pytest.mark.parametrize(
    "in_fmt",
    [*INPUT_FORMATS_AMBI, *INPUT_FORMATS_MC, *INPUT_FORMATS_ISM, *INPUT_FORMATS_MASA],
    [
        *INPUT_FORMATS_AMBI,
        *INPUT_FORMATS_MC,
        *INPUT_FORMATS_ISM,
        *INPUT_FORMATS_MASA,
        *INPUT_FORMATS_OMASA,
        *INPUT_FORMATS_OSBA,
    ],
)
def test_custom_ls_output(
    record_property,