From fc4b21213914a1e544614320d755a8686c7481c0 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 7 Sep 2024 12:15:28 -0700 Subject: [PATCH] compile all tests before running them, so the outputs are grouped --- tasks.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tasks.py b/tasks.py index e532d6f..78627e9 100644 --- a/tasks.py +++ b/tasks.py @@ -214,6 +214,7 @@ def synth(c, target): @task def test(c, target): + to_run = [] for target in expand_test_target(target): out_info, out_sim, out_bsc = ensure_build_dirs(target, "info", "sim", "bsc") libdirs = bluespec_libdirs(target, "sim") @@ -226,8 +227,11 @@ def test(c, target): testdata_tgt = testdata_tgt.relative_to(out_sim, walk_up=True) testdata.unlink(missing_ok=True) testdata.symlink_to(testdata_tgt, target_is_directory=True) - with c.cd(out_sim): - c.run(f"./TB -V {target.stem}.vcd") + to_run.append((out_sim, f"./TB -V {target.stem}.vcd")) + for d, cmd in to_run: + print("") + with c.cd(d): + c.run(cmd) @task def clean(c):