summaryrefslogtreecommitdiff
path: root/inttest/tdeps1
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/tdeps1
parentac0d726bb8c21eca3b883f7c47e42cdea02b5a3f (diff)
remove more code that can be brought back later if needed
Diffstat (limited to 'inttest/tdeps1')
-rw-r--r--inttest/tdeps1/a.erl8
-rw-r--r--inttest/tdeps1/a.rebar.config1
-rw-r--r--inttest/tdeps1/b.hrl1
-rw-r--r--inttest/tdeps1/b.rebar.config1
-rw-r--r--inttest/tdeps1/c.hrl1
-rw-r--r--inttest/tdeps1/tdeps1_rt.erl60
6 files changed, 0 insertions, 72 deletions
diff --git a/inttest/tdeps1/a.erl b/inttest/tdeps1/a.erl
deleted file mode 100644
index 835522a..0000000
--- a/inttest/tdeps1/a.erl
+++ /dev/null
@@ -1,8 +0,0 @@
--module(a).
-
--compile(export_all).
-
--include_lib("b/include/b.hrl").
-
-hello() ->
- io:format("~s\n", [?HELLO]).
diff --git a/inttest/tdeps1/a.rebar.config b/inttest/tdeps1/a.rebar.config
deleted file mode 100644
index 991ea5a..0000000
--- a/inttest/tdeps1/a.rebar.config
+++ /dev/null
@@ -1 +0,0 @@
-{deps, [{b, "1", {git, "../repo/b"}}]}.
diff --git a/inttest/tdeps1/b.hrl b/inttest/tdeps1/b.hrl
deleted file mode 100644
index efbeab1..0000000
--- a/inttest/tdeps1/b.hrl
+++ /dev/null
@@ -1 +0,0 @@
--include_lib("c/include/c.hrl").
diff --git a/inttest/tdeps1/b.rebar.config b/inttest/tdeps1/b.rebar.config
deleted file mode 100644
index ffbd0db..0000000
--- a/inttest/tdeps1/b.rebar.config
+++ /dev/null
@@ -1 +0,0 @@
-{deps, [{c, "1", {git, "../repo/c"}}]}.
diff --git a/inttest/tdeps1/c.hrl b/inttest/tdeps1/c.hrl
deleted file mode 100644
index 9f02fab..0000000
--- a/inttest/tdeps1/c.hrl
+++ /dev/null
@@ -1 +0,0 @@
--define(HELLO, hello).
diff --git a/inttest/tdeps1/tdeps1_rt.erl b/inttest/tdeps1/tdeps1_rt.erl
deleted file mode 100644
index a72cc83..0000000
--- a/inttest/tdeps1/tdeps1_rt.erl
+++ /dev/null
@@ -1,60 +0,0 @@
--module(tdeps1_rt).
-
--compile(export_all).
-
-%% Exercise transitive dependencies
-%% A -> B -> C, where A includes a .hrl from B which includes .hrl from C
-
-files() ->
- [
- %% A application
- {create, "ebin/a.app", app(a, [a])},
- {copy, "a.rebar.config", "rebar.config"},
- {copy, "a.erl", "src/a.erl"},
- {copy, "../../rebar", "rebar"},
-
- %% B application
- {create, "repo/b/ebin/b.app", app(b, [])},
- {copy, "b.rebar.config", "repo/b/rebar.config"},
- {copy, "b.hrl", "repo/b/include/b.hrl"},
-
- %% C application
- {create, "repo/c/ebin/c.app", app(c, [])},
- {copy, "c.hrl", "repo/c/include/c.hrl"}
- ].
-
-apply_cmds([], _Params) ->
- ok;
-apply_cmds([Cmd | Rest], Params) ->
- io:format("Running: ~s (~p)\n", [Cmd, Params]),
- {ok, _} = retest_sh:run(Cmd, Params),
- apply_cmds(Rest, Params).
-
-run(_Dir) ->
- %% Initialize the b/c apps as git repos so that dependencies pull
- %% properly
- GitCmds = ["git init",
- "git add -A",
- "git config user.email 'tdeps@example.com'",
- "git config user.name 'tdeps'",
- "git commit -a -m 'Initial Commit'"],
- apply_cmds(GitCmds, [{dir, "repo/b"}]),
- apply_cmds(GitCmds, [{dir, "repo/c"}]),
-
- {ok, _} = retest_sh:run("./rebar get-deps", []),
- {ok, _} = retest_sh:run("./rebar compile", []),
-
- true = filelib:is_regular("ebin/a.beam"),
- 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]).