From 21f47438614a0d50caf20801c4440d54d12c3f20 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 30 Aug 2014 22:14:48 -0500 Subject: remove more code that can be brought back later if needed --- inttest/tplugins/bad.config | 2 -- inttest/tplugins/bad_plugin.erl | 7 ------- inttest/tplugins/fish.erl | 5 ----- inttest/tplugins/rebar.config | 1 - inttest/tplugins/test_plugin.erl | 8 -------- inttest/tplugins/tplugins_rt.erl | 40 ---------------------------------------- 6 files changed, 63 deletions(-) delete mode 100644 inttest/tplugins/bad.config delete mode 100644 inttest/tplugins/bad_plugin.erl delete mode 100644 inttest/tplugins/fish.erl delete mode 100644 inttest/tplugins/rebar.config delete mode 100644 inttest/tplugins/test_plugin.erl delete mode 100644 inttest/tplugins/tplugins_rt.erl (limited to 'inttest/tplugins') diff --git a/inttest/tplugins/bad.config b/inttest/tplugins/bad.config deleted file mode 100644 index 23069b8..0000000 --- a/inttest/tplugins/bad.config +++ /dev/null @@ -1,2 +0,0 @@ -{plugins, [bad_plugin]}. -{plugin_dir, "bad_plugins"}. diff --git a/inttest/tplugins/bad_plugin.erl b/inttest/tplugins/bad_plugin.erl deleted file mode 100644 index 77ec01b..0000000 --- a/inttest/tplugins/bad_plugin.erl +++ /dev/null @@ -1,7 +0,0 @@ --module(bad_plugin). --compile(export_all). - -%% this plugin contains numerous DELIBERATE syntax errors - -fwibble(Config, _) > - file:delete("fwibble.test") diff --git a/inttest/tplugins/fish.erl b/inttest/tplugins/fish.erl deleted file mode 100644 index 739cb94..0000000 --- a/inttest/tplugins/fish.erl +++ /dev/null @@ -1,5 +0,0 @@ --module(fish). - --compile(export_all). - -fish() -> fish. diff --git a/inttest/tplugins/rebar.config b/inttest/tplugins/rebar.config deleted file mode 100644 index 0b9c887..0000000 --- a/inttest/tplugins/rebar.config +++ /dev/null @@ -1 +0,0 @@ -{plugins, [test_plugin]}. diff --git a/inttest/tplugins/test_plugin.erl b/inttest/tplugins/test_plugin.erl deleted file mode 100644 index 461247c..0000000 --- a/inttest/tplugins/test_plugin.erl +++ /dev/null @@ -1,8 +0,0 @@ --module(test_plugin). --compile(export_all). - -fwibble(Config, _) -> - Pwd = rebar_utils:get_cwd(), - Ok = filelib:is_regular(filename:join(Pwd, "fwibble.test")), - rebar_log:log(info, "~p:~p in ~s :: ~p~n", [test_plugin, clean, Pwd, Ok]), - ok = file:delete("fwibble.test"). diff --git a/inttest/tplugins/tplugins_rt.erl b/inttest/tplugins/tplugins_rt.erl deleted file mode 100644 index d6908ad..0000000 --- a/inttest/tplugins/tplugins_rt.erl +++ /dev/null @@ -1,40 +0,0 @@ --module(tplugins_rt). --compile(export_all). - --include_lib("eunit/include/eunit.hrl"). - --define(COMPILE_ERROR, - "ERROR: Plugin bad_plugin contains compilation errors:"). - -files() -> - [ - {copy, "../../rebar", "rebar"}, - {copy, "rebar.config", "rebar.config"}, - {copy, "bad.config", "bad.config"}, - {copy, "fish.erl", "src/fish.erl"}, - {copy, "test_plugin.erl", "plugins/test_plugin.erl"}, - {copy, "bad_plugin.erl", "bad_plugins/bad_plugin.erl"}, - {create, "fwibble.test", <<"fwibble">>}, - {create, "ebin/fish.app", app(fish, [fish])} - ]. - -run(_Dir) -> - ?assertMatch({ok, _}, retest_sh:run("./rebar fwibble -v", [])), - ?assertEqual(false, filelib:is_regular("fwibble.test")), - Ref = retest:sh("./rebar -C bad.config -v clean", [{async, true}]), - {ok, _} = retest:sh_expect(Ref, "ERROR: Plugin .*bad_plugin.erl " - "contains compilation errors:.*", - [{newline, any}]), - ok. - -%% -%% Generate the contents of a simple .app file -%% -app(Name, Modules) -> - App = {application, Name, - [{description, atom_to_list(Name)}, - {vsn, "1"}, - {modules, Modules}, - {registered, []}, - {applications, [kernel, stdlib]}]}, - io_lib:format("~p.\n", [App]). -- cgit v1.1