mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
Remove experimental flags
Remove experimental flag from: * qc compile_only=true * eunit compile_only=true * src/foo.app.src.script * eunit tests=
This commit is contained in:
parent
df42410cf2
commit
5fa6671511
4 changed files with 4 additions and 15 deletions
|
@ -1,3 +1,3 @@
|
||||||
|
|
||||||
rebar_eunit.erl:388: Call to missing or unexported function eunit_test:function_wrapper/2
|
rebar_eunit.erl:387: Call to missing or unexported function eunit_test:function_wrapper/2
|
||||||
rebar_utils.erl:163: Call to missing or unexported function escript:foldl/3
|
rebar_utils.erl:163: Call to missing or unexported function escript:foldl/3
|
||||||
|
|
|
@ -163,15 +163,6 @@ consult_app_file(Filename) ->
|
||||||
false ->
|
false ->
|
||||||
file:consult(Filename);
|
file:consult(Filename);
|
||||||
true ->
|
true ->
|
||||||
%% TODO: EXPERIMENTAL For now let's warn the user if a
|
|
||||||
%% script is going to be run.
|
|
||||||
case filelib:is_regular([Filename, ".script"]) of
|
|
||||||
true ->
|
|
||||||
?CONSOLE("NOTICE: Using experimental *.app.src.script "
|
|
||||||
"functionality on ~s ~n", [Filename]);
|
|
||||||
_ ->
|
|
||||||
ok
|
|
||||||
end,
|
|
||||||
rebar_config:consult_file(Filename)
|
rebar_config:consult_file(Filename)
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
|
@ -84,8 +84,7 @@ eunit(Config, _AppFile) ->
|
||||||
ok = ensure_dirs(),
|
ok = ensure_dirs(),
|
||||||
%% Save code path
|
%% Save code path
|
||||||
CodePath = setup_code_path(),
|
CodePath = setup_code_path(),
|
||||||
CompileOnly = rebar_utils:get_experimental_global(Config, compile_only,
|
CompileOnly = rebar_config:get_global(Config, compile_only, false),
|
||||||
false),
|
|
||||||
{ok, SrcErls} = rebar_erlc_compiler:test_compile(Config, "eunit",
|
{ok, SrcErls} = rebar_erlc_compiler:test_compile(Config, "eunit",
|
||||||
?EUNIT_DIR),
|
?EUNIT_DIR),
|
||||||
case CompileOnly of
|
case CompileOnly of
|
||||||
|
@ -260,7 +259,7 @@ get_tests(Config, SuitesProvided, ModuleBeamFiles, FilteredModules) ->
|
||||||
get_matching_tests(Config, Modules).
|
get_matching_tests(Config, Modules).
|
||||||
|
|
||||||
get_matching_tests(Config, Modules) ->
|
get_matching_tests(Config, Modules) ->
|
||||||
RawFunctions = rebar_utils:get_experimental_global(Config, tests, ""),
|
RawFunctions = rebar_config:get_global(Config, tests, ""),
|
||||||
Tests = [list_to_atom(F1) || F1 <- string:tokens(RawFunctions, ",")],
|
Tests = [list_to_atom(F1) || F1 <- string:tokens(RawFunctions, ",")],
|
||||||
case Tests of
|
case Tests of
|
||||||
[] ->
|
[] ->
|
||||||
|
|
|
@ -142,8 +142,7 @@ run(Config, QC, QCOpts) ->
|
||||||
ok = ensure_dirs(),
|
ok = ensure_dirs(),
|
||||||
CodePath = setup_codepath(),
|
CodePath = setup_codepath(),
|
||||||
|
|
||||||
CompileOnly = rebar_utils:get_experimental_global(Config, compile_only,
|
CompileOnly = rebar_config:get_global(Config, compile_only, false),
|
||||||
false),
|
|
||||||
%% Compile erlang code to ?QC_DIR, using a tweaked config
|
%% Compile erlang code to ?QC_DIR, using a tweaked config
|
||||||
%% with appropriate defines, and include all the test modules
|
%% with appropriate defines, and include all the test modules
|
||||||
%% as well.
|
%% as well.
|
||||||
|
|
Loading…
Reference in a new issue