diff options
author | Loïc Hoguin <[email protected]> | 2015-10-19 15:59:36 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-10-19 15:59:36 +0200 |
commit | 77afa66836f92a1f1f2052e1a7d9ace9fd4cee57 (patch) | |
tree | 58d5ed314261aae842a061e1d7ac9c3adc25fe4d /test | |
parent | 5408a2add0538ce76f5a1d987f7ea84fcabbc504 (diff) | |
download | erlang.mk-77afa66836f92a1f1f2052e1a7d9ace9fd4cee57.tar.gz erlang.mk-77afa66836f92a1f1f2052e1a7d9ace9fd4cee57.tar.bz2 erlang.mk-77afa66836f92a1f1f2052e1a7d9ace9fd4cee57.zip |
Fix creating modules from templates when using apps/ only
Diffstat (limited to 'test')
-rw-r--r-- | test/core_deps.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/core_deps.mk b/test/core_deps.mk index aef7adb..e2e5be7 100644 --- a/test/core_deps.mk +++ b/test/core_deps.mk @@ -342,6 +342,9 @@ core-deps-apps-only: build clean-core-deps-apps-only $i "Create a new application my_app" $t $(MAKE) -C $(APP) new-app in=my_app $v + $i "Create a module my_server from gen_server template in my_app" + $t $(MAKE) -C $(APP) new t=gen_server n=my_server in=my_app $v + $i "Add Cowlib to the list of dependencies" $t perl -ni.bak -e 'print;if ($$.==1) {print "DEPS = cowlib\n"}' $(APP)/apps/my_app/Makefile @@ -353,12 +356,13 @@ core-deps-apps-only: build clean-core-deps-apps-only $t test -f $(APP)/apps/my_app/ebin/my_app.app $t test -f $(APP)/apps/my_app/ebin/my_app_app.beam $t test -f $(APP)/apps/my_app/ebin/my_app_sup.beam + $t test -f $(APP)/apps/my_app/ebin/my_server.beam $t test -d $(APP)/deps/cowlib/ $i "Check that the application was compiled correctly" $t $(ERL) -pa $(APP)/apps/*/ebin/ -eval " \ ok = application:load(my_app), \ - {ok, Mods = [my_app_app, my_app_sup]} = application:get_key(my_app, modules), \ + {ok, Mods = [my_app_app, my_app_sup, my_server]} = application:get_key(my_app, modules), \ [{module, M} = code:load_file(M) || M <- Mods], \ halt()" @@ -373,6 +377,7 @@ core-deps-apps-only: build clean-core-deps-apps-only $t test ! -e $(APP)/apps/my_app/ebin/my_app.app $t test ! -e $(APP)/apps/my_app/ebin/my_app_app.beam $t test ! -e $(APP)/apps/my_app/ebin/my_app_sup.beam + $t test ! -e $(APP)/apps/my_app/ebin/my_server.beam $i "Distclean the application" $t $(MAKE) -C $(APP) distclean $v |