aboutsummaryrefslogtreecommitdiffstats
path: root/test/rlx_release_SUITE.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2014-01-18 10:34:36 -0600
committerTristan Sloughter <[email protected]>2014-01-21 21:43:13 -0600
commit18bb4dc9173afa281c5e164ac995aa5377426f4d (patch)
treeb206549ed5db8167ea48f36f6b8387654db03948 /test/rlx_release_SUITE.erl
parentefecde83481e6603f2ccfd4a5e608c006296ffc4 (diff)
downloadrelx-18bb4dc9173afa281c5e164ac995aa5377426f4d.tar.gz
relx-18bb4dc9173afa281c5e164ac995aa5377426f4d.tar.bz2
relx-18bb4dc9173afa281c5e164ac995aa5377426f4d.zip
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"]))).
%%%===================================================================