aboutsummaryrefslogtreecommitdiffstats
path: root/test/rlx_release_SUITE.erl
diff options
context:
space:
mode:
authorEric Merritt <[email protected]>2014-01-22 07:22:24 -0800
committerEric Merritt <[email protected]>2014-01-22 07:22:24 -0800
commit62f620967c4df2fa81b7c4d116208d0b61b90dbc (patch)
tree97575a347db587bc5151235c1fb76f86590a3504 /test/rlx_release_SUITE.erl
parent3ff19b1f7854f9e11a6120a7d956532e778c8f05 (diff)
parent18bb4dc9173afa281c5e164ac995aa5377426f4d (diff)
downloadrelx-62f620967c4df2fa81b7c4d116208d0b61b90dbc.tar.gz
relx-62f620967c4df2fa81b7c4d116208d0b61b90dbc.tar.bz2
relx-62f620967c4df2fa81b7c4d116208d0b61b90dbc.zip
Merge pull request #113 from tsloughter/dev_mode_sys_config
properly handle config files and switching on/off dev_mode
Diffstat (limited to 'test/rlx_release_SUITE.erl')
-rw-r--r--test/rlx_release_SUITE.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/rlx_release_SUITE.erl b/test/rlx_release_SUITE.erl
index c2ed984..8f27050 100644
--- a/test/rlx_release_SUITE.erl
+++ b/test/rlx_release_SUITE.erl
@@ -900,10 +900,14 @@ make_dev_mode_release(Config) ->
SysConfig = filename:join([LibDir1, "config", "sys.config"]),
write_config(SysConfig, [{this_is_a_test, "yup it is"}]),
+ VmArgs = filename:join([LibDir1, "config", "vm.args"]),
+ ec_file:write(VmArgs, ""),
+
ConfigFile = filename:join([LibDir1, "relx.config"]),
write_config(ConfigFile,
[{dev_mode, true},
{sys_config, SysConfig},
+ {vm_args, VmArgs},
{release, {foo, "0.0.1"},
[goal_app_1,
goal_app_2]}]),
@@ -919,7 +923,9 @@ make_dev_mode_release(Config) ->
?assert(ec_file:is_symlink(filename:join([OutputDir, "lib", "goal_app_2-0.0.1"]))),
?assert(ec_file:is_symlink(filename:join([OutputDir, "lib", "lib_dep_1-0.0.1"]))),
?assert(ec_file:is_symlink(filename:join([OutputDir, "releases", "0.0.1",
- "sys.config"]))).
+ "sys.config"]))),
+ ?assert(ec_file:is_symlink(filename:join([OutputDir, "releases", "0.0.1",
+ "vm.args"]))).
%%%===================================================================