From 8e655f1ada855bcd31afec078c1855e315cafeda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 30 Nov 2018 09:31:47 +0100 Subject: Add test for plugins that include the word rebar Seems that was fixed a while ago. --- test/core_plugins.mk | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'test') diff --git a/test/core_plugins.mk b/test/core_plugins.mk index 7a0e53d..d116900 100644 --- a/test/core_plugins.mk +++ b/test/core_plugins.mk @@ -109,6 +109,27 @@ core-plugins-early-help: build clean $i "Run 'make help' and check that it prints external plugins help" $t test -n "`$(MAKE) -C $(APP) help` | grep WORKING" +core-plugins-early-rebar: 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 "Write external plugin rebar_plugin" + $t mkdir $(APP)/rebar_plugin + $t echo "rebar:: ; touch rebar.config" >> $(APP)/rebar_plugin/early-plugins.mk + + $i "Inject external plugin dependencies into $(APP)" + $t echo 'BUILD_DEPS = rebar_plugin' >> $(APP)/Makefile.tmp + $t echo 'DEP_EARLY_PLUGINS = rebar_plugin' >> $(APP)/Makefile.tmp + $t echo 'dep_rebar_plugin = cp rebar_plugin' >> $(APP)/Makefile.tmp + $t cat $(APP)/Makefile >> $(APP)/Makefile.tmp + $t mv $(APP)/Makefile.tmp $(APP)/Makefile + + $i "Build the application" + $t $(MAKE) -C $(APP) $v + core-plugins-local: build clean $i "Bootstrap a new OTP library named $(APP)" -- cgit v1.2.3