From 33a93d705b88d56557c89b96323e86f2aea628ed Mon Sep 17 00:00:00 2001 From: Akash Dhiraj Date: Mon, 11 Nov 2024 19:43:50 -0500 Subject: [PATCH] Fix fud2 tests --- fud2/tests/snapshots/tests__list_ops.snap | 6 ++++++ fud2/tests/snapshots/tests__list_states.snap | 2 ++ .../tests__test@plan_calyx_py-to-calyx.snap | 16 ++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 fud2/tests/snapshots/tests__test@plan_calyx_py-to-calyx.snap diff --git a/fud2/tests/snapshots/tests__list_ops.snap b/fud2/tests/snapshots/tests__list_ops.snap index ed1652224d..8f90035352 100644 --- a/fud2/tests/snapshots/tests__list_ops.snap +++ b/fud2/tests/snapshots/tests__list_ops.snap @@ -1,5 +1,6 @@ --- source: fud2/tests/tests.rs +assertion_line: 251 --- [ ( @@ -37,6 +38,11 @@ source: fud2/tests/tests.rs "calyx", "yxi", ), + ( + "calyx_py-to-calyx", + "calyx_py", + "calyx", + ), ( "cider", "cider", diff --git a/fud2/tests/snapshots/tests__list_states.snap b/fud2/tests/snapshots/tests__list_states.snap index 8872d6c337..de09a7c58e 100644 --- a/fud2/tests/snapshots/tests__list_states.snap +++ b/fud2/tests/snapshots/tests__list_states.snap @@ -1,8 +1,10 @@ --- source: fud2/tests/tests.rs +assertion_line: 229 --- [ "calyx", + "calyx_py", "cider", "cider-debug", "cocotb-axi", diff --git a/fud2/tests/snapshots/tests__test@plan_calyx_py-to-calyx.snap b/fud2/tests/snapshots/tests__test@plan_calyx_py-to-calyx.snap new file mode 100644 index 0000000000..a2879431e0 --- /dev/null +++ b/fud2/tests/snapshots/tests__test@plan_calyx_py-to-calyx.snap @@ -0,0 +1,16 @@ +--- +source: fud2/tests/tests.rs +assertion_line: 66 +description: "emit plan: calyx_py-to-calyx" +--- +build-tool = fud2 +rule get-rsrc + command = $build-tool get-rsrc $out + +py_args = +rule calyx_py-to-calyx + command = python3 $in $py_args > $out + +build /output.ext: calyx_py-to-calyx /input.ext + +default /output.ext