aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKrzysztof Jurewicz <[email protected]>2018-05-30 21:01:33 +0200
committerLoïc Hoguin <[email protected]>2018-05-31 16:09:38 +0200
commitdfe090d1b44771019a59cf79a14e0957d8d5fc16 (patch)
tree67ff7a0f1de03293b831fa14743e537c3662059e /test
parent9fff0a15b957e8dcf768475372e0c959e576d13b (diff)
downloaderlang.mk-dfe090d1b44771019a59cf79a14e0957d8d5fc16.tar.gz
erlang.mk-dfe090d1b44771019a59cf79a14e0957d8d5fc16.tar.bz2
erlang.mk-dfe090d1b44771019a59cf79a14e0957d8d5fc16.zip
Add $(TEST_DIR) to the default value of SHELL_PATHS
Diffstat (limited to 'test')
-rw-r--r--test/plugin_shell.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/plugin_shell.mk b/test/plugin_shell.mk
index 0e9ee39..dea4ca1 100644
--- a/test/plugin_shell.mk
+++ b/test/plugin_shell.mk
@@ -28,3 +28,18 @@ shell-kjell: build clean
$i "Run the shell"
$t $(MAKE) -C $(APP) shell SHELL_OPTS="-eval 'halt()'" $v
+
+shell-test-dir: build clean
+
+ $i "Bootstrap a new OTP library named $(APP)"
+ $t mkdir $(APP)/
+ $t cp ../erlang.mk $(APP)/
+ $t $(MAKE) -C $(APP) -f erlang.mk bootstrap-lib $v
+
+ $i "Generate a module in TEST_DIR"
+ $t mkdir $(APP)/test
+ $t printf "%s\n" \
+ "-module(foo)." > $(APP)/test/foo.erl
+
+ $i "Check that the module is visible"
+ $t $(MAKE) -C $(APP) test-build shell SHELL_OPTS="-eval 'foo:module_info()' -eval 'halt()'" $v