Fit Mini Repeater with approved optional service cuts
This commit is contained in:
1 parent
7a9d099039
commit
55f67f9062
30 files changed
+1259
-34
No files matched your search
@@ -1,5 +1,6 @@
|
||||
"""Run the production shared profile command parser and persistence with a memory FS."""
|
||||
from pathlib import Path
|
||||
import itertools
|
||||
import shutil
|
||||
import subprocess
|
||||
import tempfile
|
||||
@@ -14,10 +15,11 @@ class RadioProfileCLITest(unittest.TestCase):
|
||||
with tempfile.TemporaryDirectory() as work:
|
||||
# Compact STM32 images omit fleet staging. Both paths must preserve
|
||||
# local schedules, persistence retries and temporary lease bounds.
|
||||
for fleet_enabled in (False, True):
|
||||
exe = Path(work) / f'profiles-{int(fleet_enabled)}.exe'
|
||||
for fleet_enabled, carrier_enabled in itertools.product((False, True), repeat=2):
|
||||
exe = Path(work) / f'profiles-{int(fleet_enabled)}-{int(carrier_enabled)}.exe'
|
||||
subprocess.run([compiler, '-std=c++17', '-Wall', '-Wextra',
|
||||
f'-DMESH_ENABLE_FLEET_CONTROL={int(fleet_enabled)}',
|
||||
f'-DMESH_ENABLE_CARRIER_TOOLS={int(carrier_enabled)}',
|
||||
'-I', str(ROOT/'test/fixtures/radio_profiles/mocks'),
|
||||
'-I', str(ROOT/'test/mocks'), '-I', str(ROOT/'src'),
|
||||
str(ROOT/'src/helpers/RadioProfileCLI.cpp'),
|
||||
@@ -26,7 +28,8 @@ class RadioProfileCLITest(unittest.TestCase):
|
||||
for scenario in (None, 'permanent_order', 'temporary_boundary', 'lease_creation',
|
||||
'save_failure', 'schedule_permutations', 'storage_isolation',
|
||||
'relative_schedule'):
|
||||
with self.subTest(fleet=fleet_enabled, scenario=scenario or 'commands_persistence_and_timers'):
|
||||
with self.subTest(fleet=fleet_enabled, carrier=carrier_enabled,
|
||||
scenario=scenario or 'commands_persistence_and_timers'):
|
||||
subprocess.run([str(exe)] + ([scenario] if scenario else []), check=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in new issue
Block a user