summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonathan Protzenko2022-01-06 10:12:44 -0800
committerJonathan Protzenko2022-01-06 10:12:44 -0800
commitc3c1d91a976fdac52830239adb6429f09ea888a8 (patch)
tree15205f3a6356ad80effdc8b48641fff23a89466c /Makefile
parent9872966d3c7a97ce8cd9ef16ab934ffa09c23e13 (diff)
parenta310c6036568d8f62e09804c67064686d106afd4 (diff)
Merge remote-tracking branch 'refs/remotes/origin/main'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a058bac8..a5bdb4ce 100644
--- a/Makefile
+++ b/Makefile
@@ -9,11 +9,23 @@ build-run:
# of the interpreter didn't change by comparing the newly generated trace
# with a reference.
.PHONY: build-run-check-trace
-build-run-check-trace:
+build-run-check-trace: generate-cfim
dune build src/main.exe && \
dune exec src/main.exe ../charon/charon/tests/test1.cfim > tests/trace_current.txt && \
cmp tests/trace_reference.txt tests/trace_current.txt && \
rm tests/trace_current.txt
+# Build the project and update the trace
+.PHONY: regen-trace
+regen-trace: generate-cfim
+ dune build src/main.exe && \
+ dune exec src/main.exe ../charon/charon/tests/test1.cfim > tests/trace_current.txt && \
+ rm tests/trace_reference.txt && \
+ mv tests/trace_current.txt tests/trace_reference.txt
+
+.PHONY: generate-cfim
+generate-cfim:
+ cd ../charon/charon && cargo run tests/test1.rs
+
doc:
dune build @doc