summaryrefslogtreecommitdiff
path: root/test/rebar_dialyzer_SUITE.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-06-08 09:49:58 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-06-08 09:49:58 -0400
commit1972f1f85a25e15ccf13a6400dcb48183ae63624 (patch)
treea24a361e055efcabbd976aca96f671ae540e2d7c /test/rebar_dialyzer_SUITE.erl
parent21c5eb6fbe65879ad64f5c55d5528ab05604859d (diff)
parente1f7c8c5f93ce6088122016c9558db13557bd9af (diff)
Merge pull request #507 from fishcakez/rebar2_compat_config
Use the same dialyzer rebar.config options as rebar
Diffstat (limited to 'test/rebar_dialyzer_SUITE.erl')
-rw-r--r--test/rebar_dialyzer_SUITE.erl19
1 files changed, 10 insertions, 9 deletions
diff --git a/test/rebar_dialyzer_SUITE.erl b/test/rebar_dialyzer_SUITE.erl
index 724d8f0..1160d2d 100644
--- a/test/rebar_dialyzer_SUITE.erl
+++ b/test/rebar_dialyzer_SUITE.erl
@@ -25,15 +25,16 @@ end_per_suite(_Config) ->
init_per_testcase(Testcase, Config) ->
PrivDir = ?config(priv_dir, Config),
Prefix = ec_cnv:to_list(Testcase),
- Plt = filename:join(PrivDir, Prefix ++ ".project.plt"),
- BasePlt = Prefix ++ "base.plt",
- RebarConfig = [{dialyzer_plt, Plt},
- {dialyzer_base_plt, BasePlt},
- {dialyzer_base_plt_dir, PrivDir},
- {dialyzer_base_plt_apps, [erts]}],
- [{plt, Plt},
- {base_plt, filename:join(PrivDir, BasePlt)},
- {rebar_config, RebarConfig} |
+ BasePrefix = Prefix ++ "_base",
+ Opts = [{plt_prefix, Prefix},
+ {plt_location, PrivDir},
+ {base_plt_prefix, BasePrefix},
+ {base_plt_location, PrivDir},
+ {base_plt_apps, [erts]}],
+ Suffix = "_" ++ rebar_utils:otp_release() ++ "_plt",
+ [{plt, filename:join(PrivDir, Prefix ++ Suffix)},
+ {base_plt, filename:join(PrivDir, BasePrefix ++ Suffix)},
+ {rebar_config, [{dialyzer, Opts}]} |
rebar_test_utils:init_rebar_state(Config)].
all() ->