diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/core_app.mk | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/core_app.mk b/test/core_app.mk index 9c30efe..3ab6c72 100644 --- a/test/core_app.mk +++ b/test/core_app.mk @@ -378,6 +378,31 @@ core-app-erlc-opts-filter: init false = proplists:is_defined(debug_info, proplists:get_value(options, girl:module_info(compile))), \ halt()" +core-app-erlc-symlink: init + + $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 "Generate .erl files" + $t echo "-module(boy)." > $(APP)/src/boy.erl + $t echo "-module(girl)." > $(APP)/girl.erl + + $i "Symlink .erl file" + $t ln -s ../girl.erl $(APP)/src/girl.erl + + $i "Build the application" + $t $(MAKE) -C $(APP) $v + + $i "Check that the application was compiled correctly" + $t $(ERL) -pa $(APP)/ebin/ -eval " \ + ok = application:start($(APP)), \ + {ok, Mods = [boy, girl]} \ + = application:get_key($(APP), modules), \ + [{module, M} = code:load_file(M) || M <- Mods], \ + halt()" + core-app-error: init $i "Bootstrap a new OTP library named $(APP)" |