From b6b3111b338b7e1d3ad9a1476e90ea106b7d73ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 6 Feb 2020 12:18:38 +0100 Subject: Copy src/$(PROJECT).appup to ebin/ on build if any --- test/core_app.mk | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'test/core_app.mk') diff --git a/test/core_app.mk b/test/core_app.mk index 3ab6c72..553f331 100644 --- a/test/core_app.mk +++ b/test/core_app.mk @@ -27,6 +27,31 @@ core-app-appsrc-change: init $t rm $(APP)/EXPECT endif +core-app-appup: 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 a .appup file" + $t touch $(APP)/src/$(APP).appup + + $i "Build the application" + $t $(MAKE) -C $(APP) $v + + $i "Check that the appup file was copied into ebin/" + $t test -f $(APP)/ebin/$(APP).appup + + $i "Clean the application" + $t $(MAKE) -C $(APP) clean $v + + $i "Check that the source file still exists" + $t test -f $(APP)/src/$(APP).appup + + $i "Check that the file copied into ebin/ was removed" + $t test ! -e $(APP)/ebin/$(APP).appup + core-app-asn1: init $i "Bootstrap a new OTP library named $(APP)" -- cgit v1.2.3