diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2018-03-30 10:45:50 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2018-03-30 10:45:50 -0400 |
commit | 8b061497e2db39b17323c35dc8c020b67c5032fc (patch) | |
tree | 31fbc73c149b61705b48dd846fbaa093457867e7 /systest/all_SUITE.erl | |
parent | 02a02d729545fa08d20402fec6e295a53caae43e (diff) | |
parent | b5330f5e90811710f48cf63f73a0272f9d2f1551 (diff) |
Merge branch 'hommeabeil-fix_skip_compile_dep'
Diffstat (limited to 'systest/all_SUITE.erl')
-rw-r--r-- | systest/all_SUITE.erl | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/systest/all_SUITE.erl b/systest/all_SUITE.erl index 6d2f14f..083fae9 100644 --- a/systest/all_SUITE.erl +++ b/systest/all_SUITE.erl @@ -12,7 +12,7 @@ init_per_suite(Config) -> ["rebar", Vsn | _] -> %% Copy all base cases to priv_dir rebar_file_utils:cp_r([?config(data_dir, Config)], - ?config(priv_dir, Config)), + ?config(priv_dir, Config)), Config; _ -> {skip, "expected current version "++Vsn++" in path " @@ -29,7 +29,7 @@ end_per_testcase(_Name, Config) -> Config. all() -> - [noop, resource_plugins, alias_clash, grisp_explode]. + [noop, resource_plugins, alias_clash, grisp_explode, compile_deps]. %groups() -> % [{plugins, [shuffle], []}, @@ -79,6 +79,19 @@ grisp_explode(Config) -> ), ok. +compile_deps() -> + [{doc, "When compiling a project multiple times, the deps should always be built event if refetched"}]. +compile_deps(Config) -> + rebar3("compile", Config), + rebar3("compile", Config), + + PrivDir = ?config(path, Config), + EbinDir = filename:join([PrivDir, "_build", "default", "lib", "fake_dep", "ebin"]), + + {ok, Beams} = file:list_dir(EbinDir), + ?assert(length(Beams) > 1). + + %%%%%%%%%%%%%%% %%% Helpers %%% %%%%%%%%%%%%%%% |