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/eunit/eunit_rt.erl | 48 ---------------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 inttest/eunit/eunit_rt.erl (limited to 'inttest/eunit/eunit_rt.erl') 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]). -- cgit v1.1