#!/usr/bin/escript
-%%! -pa ebin
+%%
%%----------------------------------------------------------------------------
main([]) -> main(["--help"]);
{application, estap, [
- {description, ""},
+ {description, "escript TAP producer"},
{vsn, "0.0.0"},
{registered, []},
- {applications, [kernel, stdlib, crypto]},
- {mod, {estap_app, []}},
- {env, []}
+ {applications, [kernel, stdlib, crypto]}
]}.
+++ /dev/null
-%%%---------------------------------------------------------------------------
-%%% @private
-%%% @doc
-%%% Application entry point.
-%%% @end
-%%%---------------------------------------------------------------------------
-
--module(estap_app).
-
--behaviour(application).
-
-%% application callbacks
--export([start/2, stop/1]).
-
-%%%---------------------------------------------------------------------------
-%%% application callbacks
-%%%---------------------------------------------------------------------------
-
-%% @private
-%% @doc Start the application
-
-start(_StartType, _StartArgs) ->
- estap_sup:start_link().
-
-%% @private
-%% @doc Terminate the application
-
-stop(_State) ->
- ok.
-
-%%%---------------------------------------------------------------------------
-%%% vim:ft=erlang:foldmethod=marker
+++ /dev/null
-%%%---------------------------------------------------------------------------
-%%% @doc
-%%% estap top-level supervisor.
-%%% @end
-%%%---------------------------------------------------------------------------
-
--module(estap_sup).
-
--behaviour(supervisor).
-
-%% supervision tree API
--export([start_link/0]).
-
-%% supervisor callbacks
--export([init/1]).
-
-%%%---------------------------------------------------------------------------
-%%% supervision tree API
-%%%---------------------------------------------------------------------------
-
-%% @private
-%% @doc Start the supervisor process.
-
-start_link() ->
- supervisor:start_link({local, ?MODULE}, ?MODULE, []).
-
-%%%---------------------------------------------------------------------------
-%%% supervisor callbacks
-%%%---------------------------------------------------------------------------
-
-%% @private
-%% @doc Initialize supervisor.
-
-init([] = _Args) ->
- Strategy = {one_for_one, 5, 10},
- Children = [
- {estap_server,
- {estap_server, start_link, []},
- permanent, 5000, worker, [estap_server]}
- ],
- {ok, {Strategy, Children}}.
-
-%%%---------------------------------------------------------------------------
-%%% vim:ft=erlang:foldmethod=marker
<li>compile forms to bytecode and load the module</li>
<li>start {@link estap_server} for tracking test cases</li>
<li>consecutively call each test function in a separate process</li>
+ <li>for subtests, spawn a new {@link estap_server} and put its pid in
+ process dictionary</li>
</ol>
<!-- vim:set ft=edoc: -->