aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-11-30 09:31:47 +0100
committerLoïc Hoguin <[email protected]>2018-11-30 09:31:47 +0100
commit8e655f1ada855bcd31afec078c1855e315cafeda (patch)
treee357da13cb98bed84c2eb08258e4d68ac74d9216 /test
parent8f15684726c7016ca7037ffd66790083c897592c (diff)
downloaderlang.mk-8e655f1ada855bcd31afec078c1855e315cafeda.tar.gz
erlang.mk-8e655f1ada855bcd31afec078c1855e315cafeda.tar.bz2
erlang.mk-8e655f1ada855bcd31afec078c1855e315cafeda.zip
Add test for plugins that include the word rebar
Seems that was fixed a while ago.
Diffstat (limited to 'test')
-rw-r--r--test/core_plugins.mk21
1 files changed, 21 insertions, 0 deletions
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)"