Commit b63c0bef authored by norvell's avatar norvell
Browse files

Add .exe suffix for Windows in renderer tests

parent 36a6fb1c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@
"""

from pathlib import Path
import platform

""" Set up paths """
TESTS_DIR = Path(__file__).parent
@@ -46,6 +47,12 @@ TESTV_DIR = SCRIPTS_DIR.joinpath("testv")

BIN_SUFFIX_MERGETARGET = "_ref"

if platform.system() == "Windows":
    EXE_SUFFIX = ".exe"
elif platform.system() in ["Linux", "Darwin"]:
    EXE_SUFFIX = ""
else:
    assert False, f"Unsupported platform {platform.system()}"

""" Renderer commandline template """
RENDERER_CMD = [
+21 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@ def test_ambisonics(record_property, test_info, in_fmt, out_fmt, frame_size, get
        test_info,
        in_fmt,
        out_fmt,
        binary_suffix=EXE_SUFFIX,
        frame_size=frame_size,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
@@ -68,6 +69,7 @@ def test_ambisonics_binaural_static(record_property, test_info, in_fmt, out_fmt,
        test_info,
        in_fmt,
        out_fmt,
        binary_suffix=EXE_SUFFIX,
        frame_size=frame_size,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
@@ -88,6 +90,7 @@ def test_ambisonics_binaural_headrotation(
        in_fmt,
        out_fmt,
        trj_file=HR_TRAJECTORY_DIR.joinpath(f"{trj_file}.csv"),
        binary_suffix=EXE_SUFFIX,
        frame_size=frame_size,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
@@ -107,6 +110,7 @@ def test_multichannel(record_property, test_info, in_fmt, out_fmt, frame_size, g
        test_info,
        in_fmt,
        out_fmt,
        binary_suffix=EXE_SUFFIX,
        frame_size=frame_size,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
@@ -126,6 +130,7 @@ def test_multichannel_binaural_static(record_property, test_info, in_fmt, out_fm
        test_info,
        in_fmt,
        out_fmt,
        binary_suffix=EXE_SUFFIX,
        frame_size=frame_size,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
@@ -149,6 +154,7 @@ def test_multichannel_binaural_headrotation(
        in_fmt,
        out_fmt,
        trj_file=HR_TRAJECTORY_DIR.joinpath(f"{trj_file}.csv"),
        binary_suffix=EXE_SUFFIX,
        frame_size=frame_size,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,
@@ -169,6 +175,7 @@ def test_ism(record_property, test_info, in_fmt, out_fmt, frame_size, get_mld, g
        in_fmt,
        out_fmt,
        in_meta_files=FORMAT_TO_METADATA_FILES[in_fmt],
        binary_suffix=EXE_SUFFIX,
        frame_size=frame_size,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,
@@ -191,6 +198,7 @@ def test_ism_binaural_static(record_property, test_info, in_fmt, out_fmt, frame_
        in_fmt,
        out_fmt,
        in_meta_files=in_meta_files,
        binary_suffix=EXE_SUFFIX,
        frame_size=frame_size,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
@@ -215,6 +223,7 @@ def test_ism_binaural_headrotation(record_property, test_info, in_fmt, out_fmt,
        out_fmt,
        trj_file=HR_TRAJECTORY_DIR.joinpath(f"{trj_file}.csv"),
        in_meta_files=in_meta_files,
        binary_suffix=EXE_SUFFIX,
        frame_size=frame_size,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
@@ -235,6 +244,7 @@ def test_masa(record_property, test_info, in_fmt, out_fmt, frame_size, get_mld,
        in_fmt,
        out_fmt,
        in_meta_files=FORMAT_TO_METADATA_FILES[in_fmt],
        binary_suffix=EXE_SUFFIX,
        frame_size=frame_size,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
@@ -255,6 +265,7 @@ def test_masa_binaural_static(record_property, test_info, in_fmt, out_fmt, frame
        in_fmt,
        out_fmt,
        in_meta_files=FORMAT_TO_METADATA_FILES[in_fmt],
        binary_suffix=EXE_SUFFIX,
        frame_size=frame_size,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
@@ -277,6 +288,7 @@ def test_masa_binaural_headrotation(record_property, test_info, in_fmt, out_fmt,
        out_fmt,
        trj_file=HR_TRAJECTORY_DIR.joinpath(f"{trj_file}.csv"),
        in_meta_files=FORMAT_TO_METADATA_FILES[in_fmt],
        binary_suffix=EXE_SUFFIX,
        frame_size=frame_size,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
@@ -292,6 +304,7 @@ def test_masa_prerend(record_property, test_info, in_fmt, get_mld, get_mld_lim):
        "META",
        "MASA2",
        metadata_input=TEST_VECTOR_DIR.joinpath(f"{in_fmt}.txt"),
        binary_suffix=EXE_SUFFIX,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
    )
@@ -310,6 +323,7 @@ def test_custom_ls_input(record_property, test_info, in_layout, out_fmt, frame_s
        test_info,
        CUSTOM_LAYOUT_DIR.joinpath(f"{in_layout}.txt"),
        out_fmt,
        binary_suffix=EXE_SUFFIX,
        frame_size=frame_size,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
@@ -325,6 +339,7 @@ def test_custom_ls_output(record_property, test_info, in_fmt, out_fmt, get_mld,
        test_info,
        in_fmt,
        CUSTOM_LAYOUT_DIR.joinpath(f"{out_fmt}.txt"),
        binary_suffix=EXE_SUFFIX,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
    )
@@ -339,6 +354,7 @@ def test_custom_ls_input_output(record_property, test_info, in_fmt, out_fmt, get
        test_info,
        CUSTOM_LAYOUT_DIR.joinpath(f"{in_fmt}.txt"),
        CUSTOM_LAYOUT_DIR.joinpath(f"{out_fmt}.txt"),
        binary_suffix=EXE_SUFFIX,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
    )
@@ -354,6 +370,7 @@ def test_custom_ls_input_binaural(record_property, test_info, in_layout, out_fmt
        test_info,
        CUSTOM_LAYOUT_DIR.joinpath(f"{in_layout}.txt"),
        out_fmt,
        binary_suffix=EXE_SUFFIX,
        frame_size=frame_size,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
@@ -374,6 +391,7 @@ def test_custom_ls_input_binaural_headrotation(
        CUSTOM_LAYOUT_DIR.joinpath(f"{in_layout}.txt"),
        out_fmt,
        trj_file=HR_TRAJECTORY_DIR.joinpath(f"{trj_file}.csv"),
        binary_suffix=EXE_SUFFIX,
        frame_size=frame_size,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
@@ -394,6 +412,7 @@ def test_metadata(record_property, test_info, in_fmt, out_fmt, frame_size, get_m
        "META",
        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,        
@@ -414,6 +433,7 @@ def test_non_diegetic_pan_static(record_property, test_info, in_fmt, out_fmt, no
        in_fmt,
        out_fmt,
        non_diegetic_pan=non_diegetic_pan,
        binary_suffix=EXE_SUFFIX,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
    )
@@ -430,6 +450,7 @@ def test_non_diegetic_pan_ism_static(record_property, test_info, in_fmt, out_fmt
        in_fmt,
        out_fmt,
        non_diegetic_pan=non_diegetic_pan,
        binary_suffix=EXE_SUFFIX,
        get_mld=get_mld, 
        mld_lim=get_mld_lim,        
    )