summaryrefslogtreecommitdiff
path: root/inttest/eunit
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/eunit
parentac0d726bb8c21eca3b883f7c47e42cdea02b5a3f (diff)
remove more code that can be brought back later if needed
Diffstat (limited to 'inttest/eunit')
-rw-r--r--inttest/eunit/eunit_rt.erl48
-rw-r--r--inttest/eunit/eunit_src/bar.erl6
-rw-r--r--inttest/eunit/rebar-eunit_compile_opts.config1
-rw-r--r--inttest/eunit/src/foo.erl10
4 files changed, 0 insertions, 65 deletions
diff --git a/inttest/eunit/eunit_rt.erl b/inttest/eunit/eunit_rt.erl
deleted file mode 100644
index 47f3331..0000000
--- a/inttest/eunit/eunit_rt.erl
+++ /dev/null
@@ -1,48 +0,0 @@
--module(eunit_rt).
--export([files/0, run/1]).
-
--include_lib("eunit/include/eunit.hrl").
-
-files() ->
- [{create, "ebin/foo.app", app(foo)},
- {copy, "../../rebar", "rebar"},
- {copy, "src", "src"},
- {copy, "eunit_src", "eunit_src"},
- {copy,
- "rebar-eunit_compile_opts.config",
- "rebar-eunit_compile_opts.config"}].
-
-run(_Dir) ->
- ifdef_test(),
- eunit_compile_opts_test(),
- ok.
-
-ifdef_test() ->
- {ok, Output} = retest:sh("./rebar -v eunit"),
- ?assert(check_output(Output, "foo_test")),
- ?assertMatch({ok, _}, retest:sh("./rebar clean")).
-
-eunit_compile_opts_test() ->
- {ok, Output} =
- retest:sh("./rebar -v -C rebar-eunit_compile_opts.config eunit"),
- ?assert(check_output(Output, "bar_test")),
- ?assertMatch(
- {ok, _},
- retest:sh("./rebar -C rebar-eunit_compile_opts.config clean")).
-
-check_output(Output, Target) ->
- lists:any(fun(Line) ->
- string:str(Line, Target) > 0
- end, Output).
-
-%%
-%% Generate the contents of a simple .app file
-%%
-app(Name) ->
- App = {application, Name,
- [{description, atom_to_list(Name)},
- {vsn, "1"},
- {modules, []},
- {registered, []},
- {applications, [kernel, stdlib]}]},
- io_lib:format("~p.\n", [App]).
diff --git a/inttest/eunit/eunit_src/bar.erl b/inttest/eunit/eunit_src/bar.erl
deleted file mode 100644
index 6a80dac..0000000
--- a/inttest/eunit/eunit_src/bar.erl
+++ /dev/null
@@ -1,6 +0,0 @@
--module(bar).
-
--include_lib("eunit/include/eunit.hrl").
-
-bar_test() ->
- ?assert(true).
diff --git a/inttest/eunit/rebar-eunit_compile_opts.config b/inttest/eunit/rebar-eunit_compile_opts.config
deleted file mode 100644
index 13b2d94..0000000
--- a/inttest/eunit/rebar-eunit_compile_opts.config
+++ /dev/null
@@ -1 +0,0 @@
-{eunit_compile_opts, [{src_dirs, ["eunit_src"]}]}.
diff --git a/inttest/eunit/src/foo.erl b/inttest/eunit/src/foo.erl
deleted file mode 100644
index a4c91ba..0000000
--- a/inttest/eunit/src/foo.erl
+++ /dev/null
@@ -1,10 +0,0 @@
--module(foo).
-
--ifdef(TEST).
-
--include_lib("eunit/include/eunit.hrl").
-
-foo_test() ->
- ?assert(true).
-
--endif.