diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-07-25 11:43:54 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-07-25 16:07:45 -0500 |
commit | 90fbd6dbb9a1a8d1185fc521ffd2d391e8befcdf (patch) | |
tree | 0e7ee4b49d666f583d93d87708bb10279b532def /test | |
parent | 6e9df6cc577f84cac330065c26ba2ada7bc56a32 (diff) |
add support for old format otp versions
Diffstat (limited to 'test')
-rw-r--r-- | test/rebar_utils_SUITE.erl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/rebar_utils_SUITE.erl b/test/rebar_utils_SUITE.erl index 144b840..24e8afe 100644 --- a/test/rebar_utils_SUITE.erl +++ b/test/rebar_utils_SUITE.erl @@ -150,7 +150,17 @@ valid_otp_version(_Config) -> 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"), + rebar_utils:check_min_otp_version("14"), + + meck:expect(rebar_utils, otp_release, fun() -> "R16B03" end), + rebar_utils:check_min_otp_version("16.0"), + + meck:expect(rebar_utils, otp_release, fun() -> "18.0.1" end), + rebar_utils:check_min_otp_version("17.5.4"), + + meck:expect(rebar_utils, otp_release, fun() -> "18.0-rc1" end), + ?assertException(throw, rebar_abort, rebar_utils:check_min_otp_version("19")), + meck:unload(rebar_utils). valid_otp_version_equal(_Config) -> |