diff options
author | Loïc Hoguin <[email protected]> | 2018-11-30 21:19:20 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-11-30 21:19:20 +0100 |
commit | f1ebd11d44f1ea131b536df661b6a17caa405cbc (patch) | |
tree | fb436270e547deb3f02cc24fe0da742e82dc037a /test | |
parent | fe225610451e5a56c1bcee220e55c45fd95bc9aa (diff) | |
download | erlang.mk-f1ebd11d44f1ea131b536df661b6a17caa405cbc.tar.gz erlang.mk-f1ebd11d44f1ea131b536df661b6a17caa405cbc.tar.bz2 erlang.mk-f1ebd11d44f1ea131b536df661b6a17caa405cbc.zip |
Validate the .app file after generating it
Diffstat (limited to 'test')
-rw-r--r-- | test/core_app.mk | 13 |
1 files changed, 13 insertions, 0 deletions
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 |