From f1ebd11d44f1ea131b536df661b6a17caa405cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 30 Nov 2018 21:19:20 +0100 Subject: Validate the .app file after generating it --- test/core_app.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/core_app.mk') diff --git a/test/core_app.mk b/test/core_app.mk index 4c32178..eaa059d 100644 --- a/test/core_app.mk +++ b/test/core_app.mk @@ -281,6 +281,19 @@ core-app-env: build clean {ok, \"\\\"test_\\tvalue\\\"\"} = application:get_env($(APP), test_key), \ {ok, '\\\$$test'} = application:get_env($(APP), test_atom), \ halt()" + +core-app-env-invalid: build clean + + $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 "Define an invalid PROJECT_ENV" + $t echo "PROJECT_ENV = [{test_key, test_value" >> $(APP)/Makefile + + $i "Build the application" + $t ! $(MAKE) -C $(APP) $v endif core-app-erlc-exclude: build clean -- cgit v1.2.3