Loading tests/renderer/constants.py +9 −2 Original line number Diff line number Diff line Loading @@ -94,7 +94,6 @@ FORMAT_TO_FILE_SMOKETEST = { "ISM2": NCHAN_TO_FILE[2], "ISM3": NCHAN_TO_FILE[3], "ISM4": NCHAN_TO_FILE[4], "NDP_ISM4": NCHAN_TO_FILE[4], # "ISM1": TEST_VECTOR_DIR.joinpath("spectral_test_ism1.txt"), # "ISM2": TEST_VECTOR_DIR.joinpath("spectral_test_ism2.txt"), # "ISM3": TEST_VECTOR_DIR.joinpath("spectral_test_ism3.txt"), Loading Loading @@ -159,11 +158,19 @@ FORMAT_TO_METADATA_FILES = { "MASA2": [str(TESTV_DIR.joinpath("stv2MASA2TC48c.met"))], } FORMAT_TO_METADATA_WITH_NON_DIEGETIC_PAN_FILES = { "ISM4": [ str(TESTV_DIR.joinpath("stvISM1.csv")), str(TESTV_DIR.joinpath("stvISM_with_non_diegetic_switch.csv")), str(TESTV_DIR.joinpath("stvISM3.csv")), str(TESTV_DIR.joinpath("stvISM4.csv")), ] } """ Input formats """ INPUT_FORMATS_AMBI = ["FOA", "HOA2", "HOA3"] INPUT_FORMATS_MC = ["MONO", "STEREO", "5_1", "5_1_2", "5_1_4", "7_1", "7_1_4"] INPUT_FORMATS_ISM = ["ISM1", "ISM2", "ISM3", "ISM4", "NDP_ISM4"] INPUT_FORMATS_ISM = ["ISM1", "ISM2", "ISM3", "ISM4"] INPUT_FORMATS_MASA = [ "MASA2" ] # ["MASA1", "MASA2"] # Disable MASA1 tests until MASA1 can be implemented properly Loading tests/renderer/test_renderer.py +13 −0 Original line number Diff line number Diff line Loading @@ -458,3 +458,16 @@ def test_non_diegetic_pan_static(test_info, in_fmt, out_fmt, non_diegetic_pan): @pytest.mark.parametrize("non_diegetic_pan", ["0", "-30", "45", "90", "-90"]) def test_non_diegetic_pan_ism_static(test_info, in_fmt, out_fmt, non_diegetic_pan): run_renderer(in_fmt, out_fmt, non_diegetic_pan=non_diegetic_pan) @pytest.mark.parametrize("out_fmt", ["BINAURAL"]) @pytest.mark.parametrize("in_fmt", ["ISM4"]) def test_ism_with_non_diegetic_pan_binaural_static(test_info, in_fmt, out_fmt): try: in_meta_files = FORMAT_TO_METADATA_WITH_NON_DIEGETIC_PAN_FILES[in_fmt] except: in_meta_files = None if out_fmt == "BINAURAL": run_renderer(in_fmt, out_fmt, in_meta_files=in_meta_files) else: run_renderer(in_fmt, out_fmt, in_meta_files=in_meta_files) tests/renderer/utils.py +2 −1 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ def test_info(request): def run_cmd(cmd): logging.info(f"\nRunning command\n{' '.join(cmd)}\n") cmdStr = " ".join(cmd) try: sp.run(cmd, check=True, capture_output=True, text=True) except sp.CalledProcessError as e: Loading Loading
tests/renderer/constants.py +9 −2 Original line number Diff line number Diff line Loading @@ -94,7 +94,6 @@ FORMAT_TO_FILE_SMOKETEST = { "ISM2": NCHAN_TO_FILE[2], "ISM3": NCHAN_TO_FILE[3], "ISM4": NCHAN_TO_FILE[4], "NDP_ISM4": NCHAN_TO_FILE[4], # "ISM1": TEST_VECTOR_DIR.joinpath("spectral_test_ism1.txt"), # "ISM2": TEST_VECTOR_DIR.joinpath("spectral_test_ism2.txt"), # "ISM3": TEST_VECTOR_DIR.joinpath("spectral_test_ism3.txt"), Loading Loading @@ -159,11 +158,19 @@ FORMAT_TO_METADATA_FILES = { "MASA2": [str(TESTV_DIR.joinpath("stv2MASA2TC48c.met"))], } FORMAT_TO_METADATA_WITH_NON_DIEGETIC_PAN_FILES = { "ISM4": [ str(TESTV_DIR.joinpath("stvISM1.csv")), str(TESTV_DIR.joinpath("stvISM_with_non_diegetic_switch.csv")), str(TESTV_DIR.joinpath("stvISM3.csv")), str(TESTV_DIR.joinpath("stvISM4.csv")), ] } """ Input formats """ INPUT_FORMATS_AMBI = ["FOA", "HOA2", "HOA3"] INPUT_FORMATS_MC = ["MONO", "STEREO", "5_1", "5_1_2", "5_1_4", "7_1", "7_1_4"] INPUT_FORMATS_ISM = ["ISM1", "ISM2", "ISM3", "ISM4", "NDP_ISM4"] INPUT_FORMATS_ISM = ["ISM1", "ISM2", "ISM3", "ISM4"] INPUT_FORMATS_MASA = [ "MASA2" ] # ["MASA1", "MASA2"] # Disable MASA1 tests until MASA1 can be implemented properly Loading
tests/renderer/test_renderer.py +13 −0 Original line number Diff line number Diff line Loading @@ -458,3 +458,16 @@ def test_non_diegetic_pan_static(test_info, in_fmt, out_fmt, non_diegetic_pan): @pytest.mark.parametrize("non_diegetic_pan", ["0", "-30", "45", "90", "-90"]) def test_non_diegetic_pan_ism_static(test_info, in_fmt, out_fmt, non_diegetic_pan): run_renderer(in_fmt, out_fmt, non_diegetic_pan=non_diegetic_pan) @pytest.mark.parametrize("out_fmt", ["BINAURAL"]) @pytest.mark.parametrize("in_fmt", ["ISM4"]) def test_ism_with_non_diegetic_pan_binaural_static(test_info, in_fmt, out_fmt): try: in_meta_files = FORMAT_TO_METADATA_WITH_NON_DIEGETIC_PAN_FILES[in_fmt] except: in_meta_files = None if out_fmt == "BINAURAL": run_renderer(in_fmt, out_fmt, in_meta_files=in_meta_files) else: run_renderer(in_fmt, out_fmt, in_meta_files=in_meta_files)
tests/renderer/utils.py +2 −1 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ def test_info(request): def run_cmd(cmd): logging.info(f"\nRunning command\n{' '.join(cmd)}\n") cmdStr = " ".join(cmd) try: sp.run(cmd, check=True, capture_output=True, text=True) except sp.CalledProcessError as e: Loading