catala/build_system/dune
Louis Gesbert 5efa61a0ce Clerk: rewrite 'clerk runtest' to use the new lightweight lexer
* Obsolete code for included tests has been removed

* The engine uses a proper lexer and is much simplified

* An inline test in the middle of the file now only "sees" the file up to that
  point. This fixes an issue where we had spurious errors when a type error was
  added at the end of a file, and it would pop up in tests before it. This makes
  files including many tests much more practical.

* diffing and resetting the tests has been reintroduced (done at the moment in
  Ninja, but for more control (count number of failed tests, etc.) we could put it
  back into Clerk at some point

* The Catala CLI can now take an input from stdin (with the possibility to link
  a (possibly fake) on-disk file for error reporting and file locations ; this
  is useful for running tests)
2023-09-27 13:18:18 +02:00

37 lines
597 B
Plaintext

(library
(name ninja_utils)
(public_name ninja_utils)
(modules ninja_utils)
(libraries re))
(library
(name clerk_driver)
(public_name clerk.driver)
(libraries
catala.runtime_ocaml
catala.catala_utils
catala.surface
ninja_utils
cmdliner
re
ocolor)
(modules clerk_scan clerk_runtest clerk_driver))
(rule
(target custom_linking.sexp)
(mode fallback)
(action
(with-stdout-to
%{target}
(echo "()"))))
(executable
(name clerk)
(public_name clerk)
(flags
(:standard
(:include custom_linking.sexp)))
(libraries clerk.driver)
(modules clerk)
(package clerk))