diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-08-30 22:14:48 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-08-30 22:16:30 -0500 |
commit | 21f47438614a0d50caf20801c4440d54d12c3f20 (patch) | |
tree | 054cda8b6a40d577b77d950bce898755f81962b7 /inttest/tplugins | |
parent | ac0d726bb8c21eca3b883f7c47e42cdea02b5a3f (diff) |
remove more code that can be brought back later if needed
Diffstat (limited to 'inttest/tplugins')
-rw-r--r-- | inttest/tplugins/bad.config | 2 | ||||
-rw-r--r-- | inttest/tplugins/bad_plugin.erl | 7 | ||||
-rw-r--r-- | inttest/tplugins/fish.erl | 5 | ||||
-rw-r--r-- | inttest/tplugins/rebar.config | 1 | ||||
-rw-r--r-- | inttest/tplugins/test_plugin.erl | 8 | ||||
-rw-r--r-- | inttest/tplugins/tplugins_rt.erl | 40 |
6 files changed, 0 insertions, 63 deletions
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]). |