adding the parsing code to the CI.

This commit is contained in:
adelaett 2023-02-28 15:23:19 +01:00
parent 13685b3fce
commit 290e67ea7e
2 changed files with 15 additions and 0 deletions

View File

@ -224,6 +224,16 @@ let run_test_aides_logement () =
exit (-1)
| Runtime.AssertionFailed _ -> ()
let _test =
let _ = run_test_aides_logement () in
let raw_events = Runtime.retrieve_log () in
Runtime.EventParser.parse_raw_events raw_events
let _test =
let _ = run_test_allocations_familiales () in
let raw_events = Runtime.retrieve_log () in
Runtime.EventParser.parse_raw_events raw_events
let _bench =
Random.init (int_of_float (Unix.time ()));
let num_iter = 10000 in

View File

@ -25,3 +25,8 @@
"A collection of functions for computing French taxes and benefits derived from Catala programs")
(libraries catala.runtime_ocaml law_source)
(modules api))
(rule
(alias runtest)
(action
(run ./bench.exe)))