+9
-12
test/external_only_erlang/test.sh
+9
-12
test/external_only_erlang/test.sh
···
5
5
GLEAM_COMMAND=${GLEAM_COMMAND:-"cargo run --quiet --"}
6
6
7
7
g() {
8
-
echo "Running: $GLEAM_COMMAND $@"
9
-
$GLEAM_COMMAND "$@"
8
+
echo "Running: $GLEAM_COMMAND $@"
9
+
$GLEAM_COMMAND "$@"
10
10
}
11
11
12
12
echo Resetting the build directory to get to a known state
···
21
21
g build --target=erlang
22
22
g run --target=erlang
23
23
24
-
# TODO: FIXME: Re-enable this one the compiler understand that the previous build
25
-
# cache cannot be used here.
26
-
#
27
-
# echo Building for JavaScript should fail, even if previously a JavaScript dependency was built
28
-
# if g build --target=javascript; then
29
-
# echo "Expected build to fail"
30
-
# exit 1
31
-
# fi
24
+
echo Building for JavaScript should fail, even if previously a JavaScript dependency was built
25
+
if g build --target=javascript; then
26
+
echo "Expected build to fail"
27
+
exit 1
28
+
fi
32
29
33
30
echo Running for JavaScript should fail, even if previously a JavaScript dependency was built
34
31
if g run --target=javascript; then
35
-
echo "Expected run to fail"
36
-
exit 1
32
+
echo "Expected run to fail"
33
+
exit 1
37
34
fi
38
35
39
36
echo
+9
-12
test/external_only_javascript/test.sh
+9
-12
test/external_only_javascript/test.sh
···
5
5
GLEAM_COMMAND=${GLEAM_COMMAND:-"cargo run --quiet --"}
6
6
7
7
g() {
8
-
echo "Running: $GLEAM_COMMAND $@"
9
-
$GLEAM_COMMAND "$@"
8
+
echo "Running: $GLEAM_COMMAND $@"
9
+
$GLEAM_COMMAND "$@"
10
10
}
11
11
12
12
echo Resetting the build directory to get to a known state
···
21
21
g build --target=javascript
22
22
g run --target=javascript
23
23
24
-
# TODO: FIXME: Re-enable this one the compiler understand that the previous build
25
-
# cache cannot be used here.
26
-
#
27
-
# echo Building for Erlang should fail, even if previously a Erlang dependency was built
28
-
# if g build --target=erlang; then
29
-
# echo "Expected build to fail"
30
-
# exit 1
31
-
# fi
24
+
echo Building for Erlang should fail, even if previously a Erlang dependency was built
25
+
if g build --target=erlang; then
26
+
echo "Expected build to fail"
27
+
exit 1
28
+
fi
32
29
33
30
echo Running for Erlang should fail, even if previously a Erlang dependency was built
34
31
if g run --target=erlang; then
35
-
echo "Expected run to fail"
36
-
exit 1
32
+
echo "Expected run to fail"
33
+
exit 1
37
34
fi
38
35
39
36
echo