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/thooks/fish.erl | 5 ----- inttest/thooks/rebar.config | 7 ------- inttest/thooks/thooks_rt.erl | 40 ---------------------------------------- 3 files changed, 52 deletions(-) delete mode 100644 inttest/thooks/fish.erl delete mode 100644 inttest/thooks/rebar.config delete mode 100644 inttest/thooks/thooks_rt.erl (limited to 'inttest/thooks') diff --git a/inttest/thooks/fish.erl b/inttest/thooks/fish.erl deleted file mode 100644 index 739cb94..0000000 --- a/inttest/thooks/fish.erl +++ /dev/null @@ -1,5 +0,0 @@ --module(fish). - --compile(export_all). - -fish() -> fish. diff --git a/inttest/thooks/rebar.config b/inttest/thooks/rebar.config deleted file mode 100644 index 6514818..0000000 --- a/inttest/thooks/rebar.config +++ /dev/null @@ -1,7 +0,0 @@ -%% pre-scripts -{pre_hooks, [{clean, "echo preclean >> preclean.out"}, - {compile, "echo precompile >> precompile.out"}]}. - -%% post-scripts -{post_hooks, [{clean, "echo postclean >> postclean.out"}, - {compile, "echo postcompile >> postcompile.out"}]}. diff --git a/inttest/thooks/thooks_rt.erl b/inttest/thooks/thooks_rt.erl deleted file mode 100644 index 52af9f5..0000000 --- a/inttest/thooks/thooks_rt.erl +++ /dev/null @@ -1,40 +0,0 @@ --module(thooks_rt). - --include_lib("eunit/include/eunit.hrl"). --compile(export_all). - -files() -> - [ - %% dummy lfe files - {copy, "../../rebar", "rebar"}, - {copy, "rebar.config", "rebar.config"}, - {copy, "fish.erl", "src/fish.erl"}, - {create, "ebin/fish.app", app(fish, [fish])} - ]. - -run(_Dir) -> - ?assertMatch({ok, _}, retest_sh:run("./rebar -v clean compile", [])), - ensure_command_ran_only_once("preclean"), - ensure_command_ran_only_once("precompile"), - ensure_command_ran_only_once("postclean"), - ensure_command_ran_only_once("postcompile"), - ok. - -ensure_command_ran_only_once(Command) -> - File = Command ++ ".out", - ?assert(filelib:is_regular(File)), - %% ensure that this command only ran once (not for each module) - {ok, Content} = file:read_file(File), - ?assertEqual(Command ++ "\n", binary_to_list(Content)). - -%% -%% 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]). -- cgit v1.1