Skip to content

Commit

Permalink
fix snapshot tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
EclecticGriffin committed Jul 15, 2024
1 parent ec39d7e commit c098ef3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 31 deletions.
9 changes: 2 additions & 7 deletions fud2/tests/snapshots/tests__list_ops.snap
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ source: fud2/tests/tests.rs
),
(
"debug",
"calyx",
"debug",
"cider",
"cider-debug",
),
(
"firrtl",
Expand Down Expand Up @@ -87,11 +87,6 @@ source: fud2/tests/tests.rs
"verilog-refmem-noverify",
"sim",
),
(
"interp",
"calyx",
"dat",
),
(
"mrxl-to-calyx",
"mrxl",
Expand Down
2 changes: 1 addition & 1 deletion fud2/tests/snapshots/tests__list_states.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ source: fud2/tests/tests.rs
[
"calyx",
"cider",
"cider-debug",
"cocotb-axi",
"dahlia",
"dat",
"debug",
"firrtl",
"firrtl-with-primitives",
"mrxl",
Expand Down
13 changes: 2 additions & 11 deletions fud2/tests/snapshots/tests__test@plan_cider.snap
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,9 @@ rule calyx-with-flags

cider-exe = $calyx-base/target/debug/cider
cider-converter = $calyx-base/target/debug/cider-data-converter
rule cider
command = $cider-exe -l $calyx-base --raw --data data.json $in > $out
rule cider-debug
command = $cider-exe -l $calyx-base --data data.json $in debug || true
rule run-cider-debug
command = $cider-exe -l $calyx-base --data data.dump $in debug || true
pool = console
build interp-dat.py: get-rsrc
python = python3
rule dat-to-interp
command = $python interp-dat.py --to-interp $in
rule interp-to-dat
command = $python interp-dat.py --from-interp $in $sim_data > $out
build data.json: dat-to-interp $sim_data | interp-dat.py
rule run-cider
command = $cider-exe -l $calyx-base --data data.dump $in > $out
rule dump-to-interp
Expand Down
15 changes: 3 additions & 12 deletions fud2/tests/snapshots/tests__test@plan_debug.snap
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,9 @@ rule calyx-with-flags

cider-exe = $calyx-base/target/debug/cider
cider-converter = $calyx-base/target/debug/cider-data-converter
rule cider
command = $cider-exe -l $calyx-base --raw --data data.json $in > $out
rule cider-debug
command = $cider-exe -l $calyx-base --data data.json $in debug || true
rule run-cider-debug
command = $cider-exe -l $calyx-base --data data.dump $in debug || true
pool = console
build interp-dat.py: get-rsrc
python = python3
rule dat-to-interp
command = $python interp-dat.py --to-interp $in
rule interp-to-dat
command = $python interp-dat.py --from-interp $in $sim_data > $out
build data.json: dat-to-interp $sim_data | interp-dat.py
rule run-cider
command = $cider-exe -l $calyx-base --data data.dump $in > $out
rule dump-to-interp
Expand All @@ -54,6 +45,6 @@ rule interp-to-dump
command = $cider-converter --to json $in > $out
build data.dump: dump-to-interp $sim_data | $cider-converter

build /output.ext: cider-debug /input.ext | data.json
build /output.ext: run-cider-debug /input.ext | data.dump

default /output.ext

0 comments on commit c098ef3

Please sign in to comment.