Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rachitnigam committed Nov 5, 2024
1 parent 2e8af7e commit 2a547c3
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
6 changes: 5 additions & 1 deletion fud2/tests/snapshots/tests__list_ops.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
source: fud2/tests/tests.rs
snapshot_kind: text
---
[
(
Expand Down Expand Up @@ -48,6 +47,11 @@ snapshot_kind: text
"dahlia",
"calyx",
),
(
"dat_to_jq",
"dat",
"jq",
),
(
"debug",
"cider",
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
@@ -1,6 +1,5 @@
---
source: fud2/tests/tests.rs
snapshot_kind: text
---
[
"calyx",
Expand All @@ -12,6 +11,7 @@ snapshot_kind: text
"firrtl",
"firrtl-with-primitives",
"flamegraph",
"jq",
"mrxl",
"primitive-uses-json",
"sim",
Expand Down
19 changes: 19 additions & 0 deletions fud2/tests/snapshots/tests__test@plan_dat_to_jq.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
source: fud2/tests/tests.rs
description: "emit plan: dat_to_jq"
---
build-tool = fud2
rule get-rsrc
command = $build-tool get-rsrc $out

jq.expr = .
jq.exe = jq
jq.flags =
rule dat_to_jq_rule_1
command = ${jq.exe} '${jq.expr}' ${jq.flags} -j $i0 > $o0
build _dat_to_jq_rule_1.fake $o0: dat_to_jq_rule_1 $i0
i0 = /input.ext
o0 = /output.ext


default /output.ext
1 change: 1 addition & 0 deletions fud2/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ impl InstaTest for Plan {
.merge(("xilinx.vitis", "/test/xilinx/vitis"))
.merge(("xilinx.xrt", "/test/xilinx/xrt"))
.merge(("dahlia", "/test/bin/dahlia"))
.merge(("jq.expr", "."))
.merge(("c0", "v1"));
let run = Run::with_config(driver, self, config);
let mut buf = vec![];
Expand Down

0 comments on commit 2a547c3

Please sign in to comment.