aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-03-19 12:21:35 +0100
committerLoïc Hoguin <[email protected]>2016-03-19 12:21:35 +0100
commit93ea0c34333d558102572d9a4d8bbec50abca329 (patch)
treea5f344f72b39427b795b3f39c9d53079a01c3f7b /test
parent2cb63605478761b73484d77f5ce18a9c1469266b (diff)
parent8723c2cadaa638db84a8b3c97ded2157cfe6c44e (diff)
downloaderlang.mk-93ea0c34333d558102572d9a4d8bbec50abca329.tar.gz
erlang.mk-93ea0c34333d558102572d9a4d8bbec50abca329.tar.bz2
erlang.mk-93ea0c34333d558102572d9a4d8bbec50abca329.zip
Merge branch 'add_tpl_empty' of https://github.com/ingwinlu/erlang.mk
Diffstat (limited to 'test')
-rw-r--r--test/plugin_bootstrap.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/plugin_bootstrap.mk b/test/plugin_bootstrap.mk
index ebfa6e7..2b62b6f 100644
--- a/test/plugin_bootstrap.mk
+++ b/test/plugin_bootstrap.mk
@@ -190,6 +190,7 @@ bootstrap-templates: build clean
$t $(MAKE) -C $(APP) --no-print-directory new t=cowboy_rest n=my_rest
$t $(MAKE) -C $(APP) --no-print-directory new t=cowboy_ws n=my_ws
$t $(MAKE) -C $(APP) --no-print-directory new t=ranch_protocol n=my_protocol
+ $t $(MAKE) -C $(APP) --no-print-directory new t=module n=my_module
# Here we disable warnings because templates contain missing behaviors.
$i "Build the application"
@@ -200,11 +201,12 @@ bootstrap-templates: build clean
$t test -f $(APP)/ebin/my_fsm.beam
$t test -f $(APP)/ebin/my_server.beam
$t test -f $(APP)/ebin/my_sup.beam
+ $t test -f $(APP)/ebin/my_module.beam
$i "Check that all the modules can be loaded"
$t $(ERL) -pa $(APP)/ebin/ -eval " \
ok = application:start($(APP)), \
- {ok, Mods = [my_fsm, my_http, my_loop, my_protocol, my_rest, my_server, my_sup, my_ws]} \
+ {ok, Mods = [my_fsm, my_http, my_loop, my_module, my_protocol, my_rest, my_server, my_sup, my_ws]} \
= application:get_key($(APP), modules), \
[{module, M} = code:load_file(M) || M <- Mods], \
halt()"