; The committed traces are pure source during `dune test` -- the rule that
; rewrites them exists only under REGEN=1, so the upstream agent (and docker)
; are never needed to run the tests.
;
;   REGEN=1 dune build @traces

(rule
 (alias regen)
 (mode promote)
 (enabled_if
  (= %{env:REGEN=0} 1))
 (targets calls.csv)
 (deps
  (source_tree ../scripts)
  ../scripts/record.exe)
 (action
  (run bash ../scripts/generate.sh . ../scripts/record.exe)))
