aboutsummaryrefslogtreecommitdiffstats
path: root/test/plugin_shell.mk
diff options
context:
space:
mode:
Diffstat (limited to 'test/plugin_shell.mk')
-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