2017-07-21 07:43:36 -07:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* 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. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2017-11-03 10:52:11 -07:00
|
|
|
(* Helper functions when writing actions *)
|
2017-07-21 07:43:36 -07:00
|
|
|
|
2018-04-27 02:09:48 -07:00
|
|
|
val skip_with_reason : string -> Actions.t
|
|
|
|
|
2018-01-22 07:38:44 -08:00
|
|
|
val pass_or_skip
|
2018-02-04 10:27:15 -08:00
|
|
|
: bool -> string -> string -> out_channel -> Environments.t
|
|
|
|
-> Result.t * Environments.t
|
2018-01-22 07:38:44 -08:00
|
|
|
|
2017-11-03 10:52:11 -07:00
|
|
|
val mkreason : string -> string -> int -> string
|
2017-07-21 07:43:36 -07:00
|
|
|
|
2017-11-03 10:52:11 -07:00
|
|
|
val testfile : Environments.t -> string
|
2017-07-21 07:43:36 -07:00
|
|
|
|
2017-11-03 10:52:11 -07:00
|
|
|
val test_build_directory : Environments.t -> string
|
2017-07-21 07:43:36 -07:00
|
|
|
|
2017-11-03 10:52:11 -07:00
|
|
|
val test_source_directory : Environments.t -> string
|
2017-07-21 07:43:36 -07:00
|
|
|
|
2017-11-03 10:52:11 -07:00
|
|
|
val words_of_variable : Environments.t -> Variables.t -> string list
|
2017-07-21 07:43:36 -07:00
|
|
|
|
2018-02-28 07:24:46 -08:00
|
|
|
val exit_status_of_variable : Environments.t -> Variables.t -> int
|
|
|
|
|
2017-11-03 10:52:11 -07:00
|
|
|
val files : Environments.t -> string list
|
2017-07-21 07:43:36 -07:00
|
|
|
|
2017-11-03 10:52:11 -07:00
|
|
|
val setup_symlinks : string -> string -> string list -> unit
|
2017-07-21 07:43:36 -07:00
|
|
|
|
2017-11-03 10:52:11 -07:00
|
|
|
val setup_build_env : bool -> string list -> Actions.code
|
2017-07-21 07:43:36 -07:00
|
|
|
|
2017-12-08 06:00:48 -08:00
|
|
|
val setup_simple_build_env : bool -> string list -> Actions.code
|
|
|
|
|
2017-11-03 10:52:11 -07:00
|
|
|
val run_cmd :
|
|
|
|
?environment : string array ->
|
|
|
|
?stdin_variable : Variables.t ->
|
|
|
|
?stdout_variable : Variables.t ->
|
|
|
|
?stderr_variable : Variables.t ->
|
|
|
|
?append : bool ->
|
|
|
|
?timeout : int ->
|
|
|
|
out_channel -> Environments.t -> string list -> int
|
2017-07-21 07:43:36 -07:00
|
|
|
|
2017-11-03 10:52:11 -07:00
|
|
|
val run : string -> bool -> bool -> Variables.t
|
|
|
|
-> Variables.t option -> Actions.code
|
|
|
|
|
|
|
|
val run_program : Actions.code
|
|
|
|
|
|
|
|
val run_script : Actions.code
|
|
|
|
|
|
|
|
val run_hook : string -> Actions.code
|
|
|
|
|
|
|
|
val check_output : string -> Variables.t -> Variables.t -> Actions.code
|