compile all tests before running them, so the outputs are grouped
This commit is contained in:
parent
6e84e9c689
commit
fc4b212139
8
tasks.py
8
tasks.py
|
@ -214,6 +214,7 @@ def synth(c, target):
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def test(c, target):
|
def test(c, target):
|
||||||
|
to_run = []
|
||||||
for target in expand_test_target(target):
|
for target in expand_test_target(target):
|
||||||
out_info, out_sim, out_bsc = ensure_build_dirs(target, "info", "sim", "bsc")
|
out_info, out_sim, out_bsc = ensure_build_dirs(target, "info", "sim", "bsc")
|
||||||
libdirs = bluespec_libdirs(target, "sim")
|
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_tgt = testdata_tgt.relative_to(out_sim, walk_up=True)
|
||||||
testdata.unlink(missing_ok=True)
|
testdata.unlink(missing_ok=True)
|
||||||
testdata.symlink_to(testdata_tgt, target_is_directory=True)
|
testdata.symlink_to(testdata_tgt, target_is_directory=True)
|
||||||
with c.cd(out_sim):
|
to_run.append((out_sim, f"./TB -V {target.stem}.vcd"))
|
||||||
c.run(f"./TB -V {target.stem}.vcd")
|
for d, cmd in to_run:
|
||||||
|
print("")
|
||||||
|
with c.cd(d):
|
||||||
|
c.run(cmd)
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def clean(c):
|
def clean(c):
|
||||||
|
|
Loading…
Reference in New Issue