forked from ocaml-flambda/flambda-backend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathactions_helpers.mli
62 lines (43 loc) · 2.33 KB
/
actions_helpers.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
(**************************************************************************)
(* *)
(* 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. *)
(* *)
(**************************************************************************)
(* Helper functions when writing actions *)
val skip_with_reason : string -> Actions.t
val pass_or_skip
: bool -> string -> string -> out_channel -> Environments.t
-> Result.t * Environments.t
val mkreason : string -> string -> int -> string
val testfile : Environments.t -> string
val test_build_directory : Environments.t -> string
val test_source_directory : Environments.t -> string
val words_of_variable : Environments.t -> Variables.t -> string list
val exit_status_of_variable : Environments.t -> Variables.t -> int
val readonly_files : Environments.t -> string list
val setup_symlinks : string -> string -> string list -> unit
val setup_build_env : bool -> string list -> Actions.code
val setup_simple_build_env : bool -> string list -> Actions.code
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
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