Skip to content

Commit 6fd607d

Browse files
committed
fix: resolve conflicts after rebase
1 parent bdf735d commit 6fd607d

4 files changed

Lines changed: 39 additions & 30 deletions

File tree

DeeployTest/deeployRunner_magia.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env python
2+
# SPDX-FileCopyrightText: 2025 ETH Zurich and University of Bologna
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
import sys
7+
8+
from testUtils.deeployRunner import main
9+
10+
if __name__ == "__main__":
11+
12+
# Define parser setup callback to add Siracusa-specific arguments
13+
def setup_parser(parser):
14+
parser.add_argument('--tiles', type=int, default=4, help='Number of mesh tiles (default: 4)')
15+
16+
sys.exit(
17+
main(
18+
default_platform="Magia",
19+
default_simulator="none",
20+
tiling_enabled=False,
21+
parser_setup_callback=setup_parser,
22+
)
23+
)

DeeployTest/testRunner_magia.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

DeeployTest/testUtils/core/execution.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def run_simulation(config: DeeployTestConfig, skip: bool = False) -> TestResult:
199199
return test_result
200200

201201

202-
def run_complete_test(config: DeeployTestConfig, skipgen: bool = False, skipsim: bool = False) -> TestResult:
202+
def run_complete_test(config: DeeployTestConfig, skipgen: bool = False, skipbuild: bool = False, skipsim: bool = False) -> TestResult:
203203
"""
204204
Run a complete test: generate, configure, build, and simulate.
205205
"""
@@ -208,11 +208,14 @@ def run_complete_test(config: DeeployTestConfig, skipgen: bool = False, skipsim:
208208
# Step 1: Generate network
209209
generate_network(config, skip = skipgen)
210210

211-
# Step 2: Configure CMake
212-
configure_cmake(config)
211+
if skipbuild:
212+
log.info(f"Skipping cmake configuration and binary building for {config.test_name}")
213+
else:
214+
# Step 2: Configure CMake
215+
configure_cmake(config)
213216

214-
# Step 3: Build binary
215-
build_binary(config)
217+
# Step 3: Build binary
218+
build_binary(config)
216219

217220
# Step 4: Run simulation
218221
result = run_simulation(config, skip = skipsim)

DeeployTest/testUtils/deeployRunner.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ def __init__(self,
8383
action = 'store_true',
8484
default = False,
8585
help = 'Skip network generation (reuse existing generated code)\n')
86+
self.add_argument('--skipbuild',
87+
dest = 'skipbuild',
88+
action = 'store_true',
89+
default = False,
90+
help = 'Skip network simulation\n')
8691
self.add_argument('--skipsim',
8792
dest = 'skipsim',
8893
action = 'store_true',
@@ -347,6 +352,7 @@ def main(default_platform: Optional[str] = None,
347352
"snitch": "Snitch",
348353
"chimera": "Chimera",
349354
"softhier": "SoftHier",
355+
"magia": "Magia",
350356
}
351357

352358
if args.platform:
@@ -387,6 +393,7 @@ def main(default_platform: Optional[str] = None,
387393
"Snitch": "gvsoc",
388394
"Chimera": "gvsoc",
389395
"SoftHier": "gvsoc",
396+
"Magia": "none",
390397
}
391398
simulator = simulator_map.get(platform, "host")
392399
log.info(f"No simulator specified, using default for {platform}: {simulator}")
@@ -409,7 +416,7 @@ def main(default_platform: Optional[str] = None,
409416
print_configuration(config)
410417

411418
try:
412-
result = run_complete_test(config, skipgen = args.skipgen, skipsim = args.skipsim)
419+
result = run_complete_test(config, skipgen=args.skipgen, skipbuild=args.skipbuild, skipsim=args.skipsim)
413420

414421
print_colored_result(result, config.test_name)
415422

0 commit comments

Comments
 (0)