From dfe090d1b44771019a59cf79a14e0957d8d5fc16 Mon Sep 17 00:00:00 2001 From: Krzysztof Jurewicz Date: Wed, 30 May 2018 21:01:33 +0200 Subject: Add $(TEST_DIR) to the default value of SHELL_PATHS --- test/plugin_shell.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test') 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 -- cgit v1.2.3