|
@ -55,19 +55,19 @@ src_dirs(Config) -> |
|
|
RebarConfig = [{erl_opts, [{src_dirs, ["foo", "bar", "baz"]}]}], |
|
|
RebarConfig = [{erl_opts, [{src_dirs, ["foo", "bar", "baz"]}]}], |
|
|
{ok, State} = rebar_test_utils:run_and_check(Config, RebarConfig, ["compile"], return), |
|
|
{ok, State} = rebar_test_utils:run_and_check(Config, RebarConfig, ["compile"], return), |
|
|
|
|
|
|
|
|
["foo", "bar", "baz"] = rebar_dir:src_dirs(rebar_state:opts(State)). |
|
|
|
|
|
|
|
|
["bar", "baz", "foo"] = rebar_dir:src_dirs(rebar_state:opts(State)). |
|
|
|
|
|
|
|
|
extra_src_dirs(Config) -> |
|
|
extra_src_dirs(Config) -> |
|
|
RebarConfig = [{erl_opts, [{extra_src_dirs, ["foo", "bar", "baz"]}]}], |
|
|
RebarConfig = [{erl_opts, [{extra_src_dirs, ["foo", "bar", "baz"]}]}], |
|
|
{ok, State} = rebar_test_utils:run_and_check(Config, RebarConfig, ["compile"], return), |
|
|
{ok, State} = rebar_test_utils:run_and_check(Config, RebarConfig, ["compile"], return), |
|
|
|
|
|
|
|
|
["foo", "bar", "baz"] = rebar_dir:extra_src_dirs(rebar_state:opts(State)). |
|
|
|
|
|
|
|
|
["bar", "baz", "foo"] = rebar_dir:extra_src_dirs(rebar_state:opts(State)). |
|
|
|
|
|
|
|
|
all_src_dirs(Config) -> |
|
|
all_src_dirs(Config) -> |
|
|
RebarConfig = [{erl_opts, [{src_dirs, ["foo", "bar"]}, {extra_src_dirs, ["baz", "qux"]}]}], |
|
|
RebarConfig = [{erl_opts, [{src_dirs, ["foo", "bar"]}, {extra_src_dirs, ["baz", "qux"]}]}], |
|
|
{ok, State} = rebar_test_utils:run_and_check(Config, RebarConfig, ["compile"], return), |
|
|
{ok, State} = rebar_test_utils:run_and_check(Config, RebarConfig, ["compile"], return), |
|
|
|
|
|
|
|
|
["foo", "bar", "baz", "qux"] = rebar_dir:all_src_dirs(rebar_state:opts(State)). |
|
|
|
|
|
|
|
|
["bar", "baz", "foo", "qux"] = rebar_dir:all_src_dirs(rebar_state:opts(State)). |
|
|
|
|
|
|
|
|
profile_src_dirs(Config) -> |
|
|
profile_src_dirs(Config) -> |
|
|
RebarConfig = [ |
|
|
RebarConfig = [ |
|
@ -79,7 +79,7 @@ profile_src_dirs(Config) -> |
|
|
{ok, State} = rebar_test_utils:run_and_check(Config, RebarConfig, ["as", "more", "compile"], return), |
|
|
{ok, State} = rebar_test_utils:run_and_check(Config, RebarConfig, ["as", "more", "compile"], return), |
|
|
|
|
|
|
|
|
R = lists:sort(["foo", "bar", "baz", "qux"]), |
|
|
R = lists:sort(["foo", "bar", "baz", "qux"]), |
|
|
R = lists:sort(rebar_dir:src_dirs(rebar_state:opts(State))). |
|
|
|
|
|
|
|
|
R = rebar_dir:src_dirs(rebar_state:opts(State)). |
|
|
|
|
|
|
|
|
profile_extra_src_dirs(Config) -> |
|
|
profile_extra_src_dirs(Config) -> |
|
|
RebarConfig = [ |
|
|
RebarConfig = [ |
|
@ -91,7 +91,7 @@ profile_extra_src_dirs(Config) -> |
|
|
{ok, State} = rebar_test_utils:run_and_check(Config, RebarConfig, ["as", "more", "compile"], return), |
|
|
{ok, State} = rebar_test_utils:run_and_check(Config, RebarConfig, ["as", "more", "compile"], return), |
|
|
|
|
|
|
|
|
R = lists:sort(["foo", "bar", "baz", "qux"]), |
|
|
R = lists:sort(["foo", "bar", "baz", "qux"]), |
|
|
R = lists:sort(rebar_dir:extra_src_dirs(rebar_state:opts(State))). |
|
|
|
|
|
|
|
|
R = rebar_dir:extra_src_dirs(rebar_state:opts(State)). |
|
|
|
|
|
|
|
|
profile_all_src_dirs(Config) -> |
|
|
profile_all_src_dirs(Config) -> |
|
|
RebarConfig = [ |
|
|
RebarConfig = [ |
|
@ -103,7 +103,7 @@ profile_all_src_dirs(Config) -> |
|
|
{ok, State} = rebar_test_utils:run_and_check(Config, RebarConfig, ["as", "more", "compile"], return), |
|
|
{ok, State} = rebar_test_utils:run_and_check(Config, RebarConfig, ["as", "more", "compile"], return), |
|
|
|
|
|
|
|
|
R = lists:sort(["foo", "bar", "baz", "qux"]), |
|
|
R = lists:sort(["foo", "bar", "baz", "qux"]), |
|
|
R = lists:sort(rebar_dir:all_src_dirs(rebar_state:opts(State))). |
|
|
|
|
|
|
|
|
R = rebar_dir:all_src_dirs(rebar_state:opts(State)). |
|
|
|
|
|
|
|
|
retarget_path(Config) -> |
|
|
retarget_path(Config) -> |
|
|
{ok, State} = rebar_test_utils:run_and_check(Config, [], ["compile"], return), |
|
|
{ok, State} = rebar_test_utils:run_and_check(Config, [], ["compile"], return), |
|
|