Skip to content

Commit a6b25f0

Browse files
committed
test redirection
1 parent e41db8f commit a6b25f0

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

ppx/test/component-without-make.t/run.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Since we generate invalid syntax for the argument of the make fn `(Props : <>)`
22
We need to output ML syntax here, otherwise refmt could not parse it.
3-
$ bash ../ppx.sh --output ml input.re
3+
$ ../run-ppx.sh --output ml input.re
44
module X_as_main_function =
55
struct
66
external xProps : ?key:string -> unit -> < > Js.t = ""[@@mel.obj ]

ppx/test/dune

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
%{bin:jq}
88
%{bin:ocamlmerlin}
99
%{bin:bash}
10-
ppx.sh))
10+
ppx.sh
11+
run-ppx.sh))

ppx/test/ppx.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#!/bin/sh
2-
3-
set -e
1+
set -eo pipefail
42

53
function usage() {
64
echo "Usage: $(basename "$0") --output re [file.re]"

ppx/test/run-ppx.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
root_path=$PWD
3+
4+
bash "$(dirname "$0")/ppx.sh" "$@"
5+
6+
cd "$root_path"

0 commit comments

Comments
 (0)