aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorjuhlig <[email protected]>2018-04-23 17:23:33 +0200
committerLoïc Hoguin <[email protected]>2018-04-25 18:37:58 +0200
commit22b77abb905cd12af7e1b3d5f1d6f8f927da18df (patch)
tree51a3c122401361756b1f0bbded2a3650a9a63fe6 /test
parentb20df2d7fb690181d10393c97d6103bf2fd0aa86 (diff)
downloaderlang.mk-22b77abb905cd12af7e1b3d5f1d6f8f927da18df.tar.gz
erlang.mk-22b77abb905cd12af7e1b3d5f1d6f8f927da18df.tar.bz2
erlang.mk-22b77abb905cd12af7e1b3d5f1d6f8f927da18df.zip
Add gen_statem template
[skip ci]
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 60b9d7e..37ea707 100644
--- a/test/plugin_bootstrap.mk
+++ b/test/plugin_bootstrap.mk
@@ -185,6 +185,7 @@ bootstrap-templates: build clean
$i "Generate one of each template"
$t $(MAKE) -C $(APP) --no-print-directory new t=gen_fsm n=my_fsm
+ $t $(MAKE) -C $(APP) --no-print-directory new t=gen_statem n=my_statem
$t $(MAKE) -C $(APP) --no-print-directory new t=gen_server n=my_server
$t $(MAKE) -C $(APP) --no-print-directory new t=supervisor n=my_sup
$t $(MAKE) -C $(APP) --no-print-directory new t=cowboy_http n=my_http
@@ -201,6 +202,7 @@ bootstrap-templates: build clean
$i "Check that all compiled files exist"
$t test -f $(APP)/ebin/$(APP).app
$t test -f $(APP)/ebin/my_fsm.beam
+ $t test -f $(APP)/ebin/my_statem.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
@@ -208,7 +210,7 @@ bootstrap-templates: build clean
$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_module, 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_statem, my_sup, my_ws]} \
= application:get_key($(APP), modules), \
[{module, M} = code:load_file(M) || M <- Mods], \
halt()"