Commit d2d5f416 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

run a full matrix of tests skipping unsupported configs

parent f5317dfe
Loading
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -184,6 +184,7 @@ def test_rtp_bitstream_ivas_dtx(
@pytest.mark.parametrize("framesPerPacket", [8])
@pytest.mark.parametrize("splitRenderingCodec", ["LCLD", "LC3PLUS"])
@pytest.mark.parametrize("dof", [0, 1])
@pytest.mark.parametrize("isarFrameSize", [5, 10, 20])
@pytest.mark.parametrize("codecFrameSize", [5, 10, 20])
@pytest.mark.parametrize("splitRendering_format", ["BINAURAL_SPLIT_CODED"])
def test_rtp_bitstream_isar(
@@ -198,8 +199,12 @@ def test_rtp_bitstream_isar(
    dut_postrend_frontend: PostRendFrontend,
    splitRenderingCodec: str,
    dof: int,
    isarFrameSize: int,
    codecFrameSize: int,
):
    if codecFrameSize > isarFrameSize:
        pytest.skip("Codec frame size cannot be larger than the ISAR frame size")

    run_rtp_bitstream_tests(
        CODECS.IVAS,
        bitrate,
@@ -214,6 +219,7 @@ def test_rtp_bitstream_isar(
        dut_postrend_frontend,
        splitRenderingCodec,
        dof,
        isarFrameSize,
        codecFrameSize,
    )

@@ -653,6 +659,7 @@ def run_rtp_bitstream_tests(
    dut_postrend_frontend: Optional[PostRendFrontend] = None,
    splitRenderingCodec: Optional[str] = None,
    dof: Optional[int] = None,
    isarFrameSize: Optional[int] = None,
    codecFrameSize: Optional[int] = None,
):
    tvArgs = TVARGS()
@@ -672,10 +679,7 @@ def run_rtp_bitstream_tests(
    ):
        pytest.skip()
        
    if dof == 0:
        dut_decoder_frontend.fr = codecFrameSize
    else:
        dut_decoder_frontend.fr = 20
    dut_decoder_frontend.fr = isarFrameSize
    
    renderConfigFile = tvArgs.renderConfigFile(splitRenderingCodec, dof, codecFrameSize)
    if not renderConfigFile.exists():