Loading tests/codec_be_to_accepted_release/decoder/__init__.py +37 −4 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ the United Nations Convention on Contracts on the International Sales of Goods. import numpy as np import pytest import platform from contextlib import contextmanager from typing import Union from pathlib import Path Loading Loading @@ -140,9 +141,25 @@ def get_bitstream_and_options( bitstream_out = Path(tmp_dir).joinpath(bitstream.stem + f".{processing}.192") if processing == BS_PROC_FER_15: ep_path = TESTV_PATH.joinpath("ltv_ep_015.192") # get the pathname to the eid-xor tool respecting the running platform if platform.system() == "Windows": eid_xor_binary = [ HERE.joinpath( "../../scripts/tools/Win32/eid-xor.exe" ) ] elif platform.system() in ["Linux", "Darwin"]: eid_xor_binary = [ HERE.joinpath( "../../scripts/tools/Linux/eid-xor" ) ] else: assert False, f"eid-xor not available for {platform.system()}" cmd = [ # TODO: adapt for windows "eid-xor", str(eid_xor_binary), "-fer", "-vbr", str(bitstream), Loading @@ -156,10 +173,26 @@ def get_bitstream_and_options( "../../scripts/dly_error_profiles/dly_error_profile_5.dat" ) tracefile_path = Path(tmp_dir).joinpath(bitstream_out.with_suffix(".trace")) # TODO: adapt for windows # get the pathname to the networkSimulator_g192 tool respecting the running platform if platform.system() == "Windows": networkSimulator_g192_binary = [ HERE.joinpath( "../../scripts/tools/Win32/networkSimulator_g192.exe" ) ] elif platform.system() in ["Linux", "Darwin"]: networkSimulator_g192_binary = [ HERE.joinpath( "../../scripts/tools/Linux/networkSimulator_g192" ) ] else: assert False, f"networkSimulator_g192 not available for {platform.system()}" # TODO: get number of frames per packet from error profile name cmd = [ "networkSimulator_g192", str(networkSimulator_g192_binary), str(dly_profile_path), str(bitstream), str(bitstream_out), Loading Loading
tests/codec_be_to_accepted_release/decoder/__init__.py +37 −4 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ the United Nations Convention on Contracts on the International Sales of Goods. import numpy as np import pytest import platform from contextlib import contextmanager from typing import Union from pathlib import Path Loading Loading @@ -140,9 +141,25 @@ def get_bitstream_and_options( bitstream_out = Path(tmp_dir).joinpath(bitstream.stem + f".{processing}.192") if processing == BS_PROC_FER_15: ep_path = TESTV_PATH.joinpath("ltv_ep_015.192") # get the pathname to the eid-xor tool respecting the running platform if platform.system() == "Windows": eid_xor_binary = [ HERE.joinpath( "../../scripts/tools/Win32/eid-xor.exe" ) ] elif platform.system() in ["Linux", "Darwin"]: eid_xor_binary = [ HERE.joinpath( "../../scripts/tools/Linux/eid-xor" ) ] else: assert False, f"eid-xor not available for {platform.system()}" cmd = [ # TODO: adapt for windows "eid-xor", str(eid_xor_binary), "-fer", "-vbr", str(bitstream), Loading @@ -156,10 +173,26 @@ def get_bitstream_and_options( "../../scripts/dly_error_profiles/dly_error_profile_5.dat" ) tracefile_path = Path(tmp_dir).joinpath(bitstream_out.with_suffix(".trace")) # TODO: adapt for windows # get the pathname to the networkSimulator_g192 tool respecting the running platform if platform.system() == "Windows": networkSimulator_g192_binary = [ HERE.joinpath( "../../scripts/tools/Win32/networkSimulator_g192.exe" ) ] elif platform.system() in ["Linux", "Darwin"]: networkSimulator_g192_binary = [ HERE.joinpath( "../../scripts/tools/Linux/networkSimulator_g192" ) ] else: assert False, f"networkSimulator_g192 not available for {platform.system()}" # TODO: get number of frames per packet from error profile name cmd = [ "networkSimulator_g192", str(networkSimulator_g192_binary), str(dly_profile_path), str(bitstream), str(bitstream_out), Loading