38 lines
1.5 KiB
OCaml
38 lines
1.5 KiB
OCaml
(**************************************************************************)
|
|
(* *)
|
|
(* OCaml *)
|
|
(* *)
|
|
(* Sebastien Hinderer, projet Gallium, INRIA Paris *)
|
|
(* *)
|
|
(* Copyright 2016 Institut National de Recherche en Informatique et *)
|
|
(* en Automatique. *)
|
|
(* *)
|
|
(* All rights reserved. This file is distributed under the terms of *)
|
|
(* the GNU Lesser General Public License version 2.1, with the *)
|
|
(* special exception on linking described in the file LICENSE. *)
|
|
(* *)
|
|
(**************************************************************************)
|
|
|
|
(* Run programs and log their stdout/stderr, with a timer... *)
|
|
|
|
type settings = {
|
|
progname : string;
|
|
argv : string array;
|
|
envp : string array;
|
|
stdin_filename : string;
|
|
stdout_filename : string;
|
|
stderr_filename : string;
|
|
append : bool;
|
|
timeout : int;
|
|
log : out_channel;
|
|
}
|
|
|
|
val settings_of_commandline :
|
|
?stdout_fname:string ->
|
|
?stderr_fname:string ->
|
|
string -> settings
|
|
|
|
val run : settings -> int
|
|
|
|
val run_commandline : string -> int
|