aboutsummaryrefslogtreecommitdiffstats
path: root/test/rlx_command_SUITE.erl
diff options
context:
space:
mode:
authorEric <[email protected]>2013-05-09 17:13:06 -0700
committerEric <[email protected]>2013-05-10 11:09:49 -0700
commitc5f0a8c9175b2d152c69f72da15e7ceff411f86b (patch)
tree1ae9a327feeb420983f9a85fdb6c800900369480 /test/rlx_command_SUITE.erl
parentefbdfbe117939cd50d0252a210b9b7634de42bb4 (diff)
downloadrelx-c5f0a8c9175b2d152c69f72da15e7ceff411f86b.tar.gz
relx-c5f0a8c9175b2d152c69f72da15e7ceff411f86b.tar.bz2
relx-c5f0a8c9175b2d152c69f72da15e7ceff411f86b.zip
internal rename completion of all relcool to relx calls
Diffstat (limited to 'test/rlx_command_SUITE.erl')
-rw-r--r--test/rlx_command_SUITE.erl30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/rlx_command_SUITE.erl b/test/rlx_command_SUITE.erl
index 05da548..6f726b4 100644
--- a/test/rlx_command_SUITE.erl
+++ b/test/rlx_command_SUITE.erl
@@ -17,7 +17,7 @@
%%%-------------------------------------------------------------------
%%% @author Eric Merrit <[email protected]>
%%% @copyright (C) 2012, Eric Merrit
--module(rclt_command_SUITE).
+-module(rlx_command_SUITE).
-export([suite/0,
init_per_suite/1,
@@ -48,8 +48,8 @@ normal_passing_case(Config) ->
Lib1 = filename:join([DataDir, <<"lib1">>]),
Lib2 = filename:join([DataDir, <<"lib2">>]),
Outdir = filename:join([DataDir, "outdir"]),
- ok = rcl_util:mkdir_p(Lib1),
- ok = rcl_util:mkdir_p(Lib2),
+ ok = rlx_util:mkdir_p(Lib1),
+ ok = rlx_util:mkdir_p(Lib2),
Goal1 = "app1<=33.33+build4",
Goal2 = "app2:btwn:33.22,45.22+build.21",
@@ -58,40 +58,40 @@ normal_passing_case(Config) ->
RelVsn = "33.222",
CmdLine = ["-V", LogLevel, "-g",Goal1,"-g",Goal2, "-l", Lib1, "-l", Lib2,
"-n", RelName, "-v", RelVsn, "-o", Outdir],
- {ok, {Opts, Targets}} = getopt:parse(relcool:opt_spec_list(), CmdLine),
- {ok, State} = rcl_cmd_args:args2state(Opts, Targets),
+ {ok, {Opts, Targets}} = getopt:parse(relx:opt_spec_list(), CmdLine),
+ {ok, State} = rlx_cmd_args:args2state(Opts, Targets),
?assertMatch([Lib1, Lib2],
- rcl_state:lib_dirs(State)),
- ?assertMatch(Outdir, rcl_state:output_dir(State)),
+ rlx_state:lib_dirs(State)),
+ ?assertMatch(Outdir, rlx_state:output_dir(State)),
?assertMatch([{app1,{{33,33},{[],[<<"build4">>]}},lte},
{app2,
{{33,22},{[],[]}},
{{45,22},{[],[<<"build">>,21]}}, between}],
- rcl_state:goals(State)).
+ rlx_state:goals(State)).
lib_fail_case(Config) ->
DataDir = proplists:get_value(data_dir, Config),
Lib1 = filename:join([DataDir, "lib1"]),
Lib2 = filename:join([DataDir, "lib3333"]),
- ok = rcl_util:mkdir_p(Lib1),
+ ok = rlx_util:mkdir_p(Lib1),
CmdLine = ["-l", Lib1, "-l", Lib2],
- {ok, {Opts, Targets}} = getopt:parse(relcool:opt_spec_list(), CmdLine),
+ {ok, {Opts, Targets}} = getopt:parse(relx:opt_spec_list(), CmdLine),
?assertMatch({error, {_, {not_directory, Lib2}}},
- rcl_cmd_args:args2state(Opts, Targets)).
+ rlx_cmd_args:args2state(Opts, Targets)).
spec_parse_fail_case(_Config) ->
Spec = "aaeu:3333:33.22a44",
CmdLine = ["-g", Spec],
- {ok, {Opts, Targets}} = getopt:parse(relcool:opt_spec_list(), CmdLine),
+ {ok, {Opts, Targets}} = getopt:parse(relx:opt_spec_list(), CmdLine),
?assertMatch({error, {_, {failed_to_parse, _Spec}}},
- rcl_cmd_args:args2state(Opts, Targets)).
+ rlx_cmd_args:args2state(Opts, Targets)).
config_fail_case(_Config) ->
ConfigFile = "does-not-exist",
CmdLine = ["-c", ConfigFile],
- {ok, {Opts, Targets}} = getopt:parse(relcool:opt_spec_list(), CmdLine),
+ {ok, {Opts, Targets}} = getopt:parse(relx:opt_spec_list(), CmdLine),
?assertMatch({error, {_, {invalid_config_file, ConfigFile}}},
- rcl_cmd_args:args2state(Opts, Targets)).
+ rlx_cmd_args:args2state(Opts, Targets)).