summaryrefslogtreecommitdiff
path: root/test/rebar_utils_SUITE.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-07-24 21:40:43 -0500
committerTristan Sloughter <t@crashfast.com>2015-07-24 21:40:43 -0500
commit6e9df6cc577f84cac330065c26ba2ada7bc56a32 (patch)
treeb647a7f2c02c9607659d1ae57d0c7767876f4d2a /test/rebar_utils_SUITE.erl
parent04fedc7422c26002785f6e7cb6e814fdb8a2f0dd (diff)
parse old format of OTP versions
Diffstat (limited to 'test/rebar_utils_SUITE.erl')
-rw-r--r--test/rebar_utils_SUITE.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/rebar_utils_SUITE.erl b/test/rebar_utils_SUITE.erl
index d766af4..144b840 100644
--- a/test/rebar_utils_SUITE.erl
+++ b/test/rebar_utils_SUITE.erl
@@ -25,6 +25,7 @@
task_with_multiple_flags/1,
special_task_do/1,
valid_otp_version/1,
+ valid_old_format_otp_version/1,
valid_otp_version_equal/1,
invalid_otp_version/1,
nonblacklisted_otp_version/1,
@@ -65,6 +66,7 @@ groups() ->
task_with_multiple_flags,
special_task_do,
valid_otp_version,
+ valid_old_format_otp_version,
valid_otp_version_equal,
invalid_otp_version,
nonblacklisted_otp_version,
@@ -145,6 +147,12 @@ valid_otp_version(_Config) ->
rebar_utils:check_min_otp_version("42.3"),
meck:unload(rebar_utils).
+valid_old_format_otp_version(_Config) ->
+ meck:new(rebar_utils, [passthrough]),
+ meck:expect(rebar_utils, otp_release, fun() -> "R15B03-1" end),
+ rebar_utils:check_min_otp_version("R15"),
+ meck:unload(rebar_utils).
+
valid_otp_version_equal(_Config) ->
meck:new(rebar_utils, [passthrough]),
meck:expect(rebar_utils, otp_release, fun() -> "42.3" end),