summaryrefslogtreecommitdiff
path: root/test/rebar_utils_SUITE.erl
diff options
context:
space:
mode:
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),