Commit 0fcd1f1f authored by Adam Mills's avatar Adam Mills
Browse files

Fixing tests scripts so that get_mld_lim is passed to all

parent d75ba4cd
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -107,6 +107,7 @@ def test_sba_plc_system(

    # dec
    sba_dec_plc(
        record_property,
        dut_decoder_frontend,
        test_vector_path,
        reference_path,
@@ -129,6 +130,7 @@ def test_sba_plc_system(
#########################################################
# -------------------- test function --------------------
def sba_dec_plc(
    record_property,
    decoder_frontend,
    test_vector_path,
    reference_path,
+14 −1
Original line number Diff line number Diff line
@@ -136,6 +136,7 @@ def test_pca_enc(

    # dec
    sba_dec(
        record_property,
        dut_decoder_frontend,
        ref_decoder_frontend,
        reference_path,
@@ -232,6 +233,7 @@ def test_sba_enc_system(

    # dec
    sba_dec(
        record_property,
        dut_decoder_frontend,
        ref_decoder_frontend,
        reference_path,
@@ -255,6 +257,7 @@ def test_sba_enc_system(
@pytest.mark.parametrize("ivas_br", ivas_br_HOA2)
@pytest.mark.parametrize("tag", tag_list_HOA2)
def test_spar_hoa2_enc_system(
    record_property,
    dut_encoder_frontend: EncoderFrontend,
    dut_decoder_frontend: DecoderFrontend,
    test_vector_path,
@@ -299,6 +302,7 @@ def test_spar_hoa2_enc_system(

    # dec
    sba_dec(
        record_property,
        dut_decoder_frontend,
        ref_decoder_frontend,
        reference_path,
@@ -322,6 +326,7 @@ def test_spar_hoa2_enc_system(
@pytest.mark.parametrize("ivas_br", ivas_br_HOA3)
@pytest.mark.parametrize("tag", tag_list_HOA3)
def test_spar_hoa3_enc_system(
    record_property,
    dut_encoder_frontend: EncoderFrontend,
    dut_decoder_frontend: DecoderFrontend,
    test_vector_path,
@@ -334,6 +339,7 @@ def test_spar_hoa3_enc_system(
    ivas_br,
    tag,
    get_mld,
    get_mld_lim,
):
    fs = "48"
    dtx = "0"
@@ -365,6 +371,7 @@ def test_spar_hoa3_enc_system(

    # dec
    sba_dec(
        record_property,
        dut_decoder_frontend,
        ref_decoder_frontend,
        reference_path,
@@ -379,7 +386,8 @@ def test_spar_hoa3_enc_system(
        update_ref,
        gain_flag,
        keep_files,
        get_mld=get_mld
        get_mld=get_mld,
        get_mld_lim=get_mld_lim,
    )


@@ -389,6 +397,7 @@ def test_spar_hoa3_enc_system(
@pytest.mark.parametrize("tag", tag_list_bw_force)
@pytest.mark.parametrize("sample_rate_bw_idx", sample_rate_bw_idx_list)
def test_sba_enc_BWforce_system(
    record_property,
    dut_encoder_frontend: EncoderFrontend,
    dut_decoder_frontend: DecoderFrontend,
    test_vector_path,
@@ -403,6 +412,7 @@ def test_sba_enc_BWforce_system(
    tag,
    sample_rate_bw_idx,
    get_mld,
    get_mld_lim,
):
    if dtx == "1" and ivas_br not in ["32000", "64000"]:
        # skip high bitrates for DTX until DTX issue is resolved
@@ -440,6 +450,7 @@ def test_sba_enc_BWforce_system(

    # dec
    sba_dec(
        record_property,
        dut_decoder_frontend,
        ref_decoder_frontend,
        reference_path,
@@ -455,6 +466,7 @@ def test_sba_enc_BWforce_system(
        gain_flag,
        keep_files,
        get_mld=get_mld,
        get_mld_lim=get_mld_lim,
    )


@@ -602,6 +614,7 @@ def sba_enc(


def sba_dec(
    record_property,
    decoder_frontend,
    ref_decoder_frontend,
    reference_path,