summaryrefslogtreecommitdiff
path: root/inttest/depplugins
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2014-08-30 22:14:48 -0500
committerTristan Sloughter <t@crashfast.com>2014-08-30 22:16:30 -0500
commit21f47438614a0d50caf20801c4440d54d12c3f20 (patch)
tree054cda8b6a40d577b77d950bce898755f81962b7 /inttest/depplugins
parentac0d726bb8c21eca3b883f7c47e42cdea02b5a3f (diff)
remove more code that can be brought back later if needed
Diffstat (limited to 'inttest/depplugins')
-rw-r--r--inttest/depplugins/base_dir_cwd_plugin.erl7
-rw-r--r--inttest/depplugins/dep_cwd_plugin.erl7
-rw-r--r--inttest/depplugins/depplugins_rt.erl69
-rw-r--r--inttest/depplugins/rebar.config2
-rw-r--r--inttest/depplugins/rebar_dependsonplugin.config2
-rw-r--r--inttest/depplugins/rebar_testplugin.config1
-rw-r--r--inttest/depplugins/testplugin_mod.erl7
7 files changed, 0 insertions, 95 deletions
diff --git a/inttest/depplugins/base_dir_cwd_plugin.erl b/inttest/depplugins/base_dir_cwd_plugin.erl
deleted file mode 100644
index 4953b8b..0000000
--- a/inttest/depplugins/base_dir_cwd_plugin.erl
+++ /dev/null
@@ -1,7 +0,0 @@
--module(base_dir_cwd_plugin).
--export([pre_compile/2]).
-
-pre_compile(_, _) ->
- File = "base_dir_cwd_pre.compile",
- ok = file:write_file(File, <<"base_dir cwd pre_compile plugin">>),
- rebar_log:log(info, "Wrote ~p/~s~n", [rebar_utils:get_cwd(), File]).
diff --git a/inttest/depplugins/dep_cwd_plugin.erl b/inttest/depplugins/dep_cwd_plugin.erl
deleted file mode 100644
index fe1ceba..0000000
--- a/inttest/depplugins/dep_cwd_plugin.erl
+++ /dev/null
@@ -1,7 +0,0 @@
--module(dep_cwd_plugin).
--export([pre_compile/2]).
-
-pre_compile(_, _) ->
- File = "dep_cwd_pre.compile",
- ok = file:write_file(File, <<"dep cwd pre_compile plugin">>),
- rebar_log:log(info, "Wrote ~p/~s~n", [rebar_utils:get_cwd(), File]).
diff --git a/inttest/depplugins/depplugins_rt.erl b/inttest/depplugins/depplugins_rt.erl
deleted file mode 100644
index a45fa93..0000000
--- a/inttest/depplugins/depplugins_rt.erl
+++ /dev/null
@@ -1,69 +0,0 @@
-%%% @doc Plugin handling test
-%%%
-%%% This test checks if plugins are loaded correctly.
-%%%
-%%% It has three applications:
-%%% <ol>
-%%% <li>fish. top-level app, has one dependency: `dependsonplugin'.
-%%% It also loads a plugin from CWD which creates
-%%% base_dir_cwd_pre.compile on pre_compile.</li>
-%%% <li>dependsonplugin, has one dependency: `testplugin' and loads
-%%% the testplugin_mod plugin.</li>
-%%% <li>testplugin. This is a plugin application which creates
-%%% plugin_pre.compile on pre_compile. It also loads a plugin from CWD
-%%% which creates dep_cwd_pre.compile on pre_compile.</li>
-%%% </ol>
-
--module(depplugins_rt).
--compile(export_all).
-
--include_lib("eunit/include/eunit.hrl").
-
-files() ->
- [
- {copy, "../../rebar", "rebar"},
- {copy, "rebar.config", "rebar.config"},
- {copy, "base_dir_cwd_plugin.erl", "base_dir_cwd_plugin.erl"},
- {create, "ebin/fish.app", app(fish, [])},
-
- {copy, "rebar_dependsonplugin.config",
- "deps/dependsonplugin/rebar.config"},
- {create, "deps/dependsonplugin/ebin/dependsonplugin.app",
- app(dependsonplugin, [])},
-
- {copy, "rebar_testplugin.config", "deps/testplugin/rebar.config"},
- {copy, "testplugin_mod.erl",
- "deps/testplugin/plugins/testplugin_mod.erl"},
- {copy, "dep_cwd_plugin.erl", "deps/testplugin/dep_cwd_plugin.erl"},
- {create, "deps/testplugin/ebin/testplugin.app", app(testplugin, [])}
- ].
-
-run(_Dir) ->
- ?assertMatch({ok, _}, retest_sh:run("./rebar compile", [])),
-
- ?assertEqual(true, filelib:is_regular("base_dir_cwd_pre.compile")),
-
- ?assertEqual(true, filelib:is_regular(
- "deps/dependsonplugin/base_dir_cwd_pre.compile")),
- ?assertEqual(true, filelib:is_regular(
- "deps/dependsonplugin/plugin_pre.compile")),
-
- ?assertEqual(true, filelib:is_regular(
- "deps/testplugin/base_dir_cwd_pre.compile")),
- ?assertEqual(true, filelib:is_regular(
- "deps/testplugin/dep_cwd_pre.compile")),
- ?assertEqual(true, filelib:is_regular(
- "deps/testplugin/plugin_pre.compile")),
- 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]).
diff --git a/inttest/depplugins/rebar.config b/inttest/depplugins/rebar.config
deleted file mode 100644
index 86fb037..0000000
--- a/inttest/depplugins/rebar.config
+++ /dev/null
@@ -1,2 +0,0 @@
-{deps, [dependsonplugin]}.
-{plugins, [base_dir_cwd_plugin]}.
diff --git a/inttest/depplugins/rebar_dependsonplugin.config b/inttest/depplugins/rebar_dependsonplugin.config
deleted file mode 100644
index df36213..0000000
--- a/inttest/depplugins/rebar_dependsonplugin.config
+++ /dev/null
@@ -1,2 +0,0 @@
-{deps, [testplugin]}.
-{plugins, [testplugin_mod]}.
diff --git a/inttest/depplugins/rebar_testplugin.config b/inttest/depplugins/rebar_testplugin.config
deleted file mode 100644
index 58a1f99..0000000
--- a/inttest/depplugins/rebar_testplugin.config
+++ /dev/null
@@ -1 +0,0 @@
-{plugins, [dep_cwd_plugin]}.
diff --git a/inttest/depplugins/testplugin_mod.erl b/inttest/depplugins/testplugin_mod.erl
deleted file mode 100644
index d829ff0..0000000
--- a/inttest/depplugins/testplugin_mod.erl
+++ /dev/null
@@ -1,7 +0,0 @@
--module(testplugin_mod).
--export([pre_compile/2]).
-
-pre_compile(_, _) ->
- File = "plugin_pre.compile",
- ok = file:write_file(File, <<"Yadda!">>),
- rebar_log:log(info, "Wrote ~p/~s~n", [rebar_utils:get_cwd(), File]).