Skip to content

Commit

Permalink
(undocumented) option to pass EC arguments via runtest
Browse files Browse the repository at this point in the history
  • Loading branch information
strub committed May 25, 2024
1 parent 3c9a7e0 commit 945c4e0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/ec.ml
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,9 @@ let main () =
(Format.sprintf "--jobs=%d")
input.runo_jobs
)
@ List.map (Format.sprintf "--bin-args=%s") ecargs
@ List.map
(Format.sprintf "--bin-args=%s")
(ecargs @ input.runo_rawargs)
@ [input.runo_input]
@ input.runo_scenarios
in
Expand Down
5 changes: 4 additions & 1 deletion src/ecOptions.ml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ and run_option = {
runo_report : string option;
runo_provers : prv_options;
runo_jobs : int option;
runo_rawargs : string list;
}

and prv_options = {
Expand Down Expand Up @@ -354,6 +355,7 @@ let specs = {
`Group "provers";
`Spec ("report", `String, "dump result to <report>");
`Spec ("jobs", `Int, "number of parallel jobs to run");
`Spec ("raw-args", `String, "<internal>");
]);

("why3config", "Configure why3", []);
Expand Down Expand Up @@ -511,7 +513,8 @@ let runtest_options_of_values ini values (input, scenarios) =
runo_scenarios = scenarios;
runo_report = get_string "report" values;
runo_provers = prv_options_of_values ini values;
runo_jobs = get_int "jobs" values; }
runo_jobs = get_int "jobs" values;
runo_rawargs = get_strings "raw-args" values; }

(* -------------------------------------------------------------------- *)
let parse getini argv =
Expand Down
1 change: 1 addition & 0 deletions src/ecOptions.mli
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ and run_option = {
runo_report : string option;
runo_provers : prv_options;
runo_jobs : int option;
runo_rawargs : string list;
}

and prv_options = {
Expand Down

0 comments on commit 945c4e0

Please sign in to comment.