summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSon Ho2022-01-06 16:30:20 +0100
committerSon Ho2022-01-06 16:30:20 +0100
commit335de855331a424c35b577907eb504c198990c0b (patch)
tree7364993229f8ff3a01d944992310d22be7694c3b /Makefile
parent0d330faa8a71712c8d7242d49c74dfb209092d81 (diff)
Update the trace
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a058bac8..21b77658 100644
--- a/Makefile
+++ b/Makefile
@@ -15,5 +15,13 @@ build-run-check-trace:
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:
+ 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
+
doc:
dune build @doc