mirror of
https://github.com/ubf/ubf.git
synced 2025-12-11 03:34:00 +00:00
rename test/* directories
This commit is contained in:
4
README
4
README
@@ -161,13 +161,13 @@ One of the better places to start is to look in the "edoc" directory.
|
||||
See the "Reference Documentation" section for suggestions on where to
|
||||
find greater detail.
|
||||
|
||||
The unit tests in the "src/Unit-Test-Files" directory provide small
|
||||
The unit tests in the "test/unit" directory provide small
|
||||
examples of how to use all of the public API. In particular, the
|
||||
*client*.erl files contain comments at the top with a list of
|
||||
prerequisites and small examples, recipe-style, for starting each
|
||||
server and using the client.
|
||||
|
||||
The eunit tests in the "src/Unit-EUnit-Files" directory perform
|
||||
The eunit tests in the "test/eunit" directory perform
|
||||
several smoke and error handling uses cases.
|
||||
|
||||
The original documentation is in the "priv/doc" directory.
|
||||
|
||||
@@ -9,4 +9,4 @@
|
||||
]}.
|
||||
|
||||
%% Test Erlang files to compile before the rest.
|
||||
{test_first_files, ["test/Unit-EUnit-Files/types_plugin.erl"]}.
|
||||
{test_first_files, ["test/eunit/types_plugin.erl"]}.
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
%%% `Module:new(ModuleList)' syntax. See the Erlang/OTP documentation
|
||||
%%% for more information on parameterized module syntax and usage.
|
||||
%%% For code examples, look in the
|
||||
%%% "<a href="../src/Unit-Test-Files">../src/Unit-Test-Files</a>"
|
||||
%%% "<a href="../test/unit">../test/unit</a>"
|
||||
%%% directory for several examples (see files with "_plugin.erl" suffix).
|
||||
%%%
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
%%% `Module:new(ModuleList)' syntax. See the Erlang/OTP documentation
|
||||
%%% for more information on parameterized module syntax and usage.
|
||||
%%% For code examples, look in the
|
||||
%%% "<a href="../src/Unit-Test-Files">../src/Unit-Test-Files</a>"
|
||||
%%% "<a href="../test/unit">../test/unit</a>"
|
||||
%%% directory for several examples (see files with "_plugin.erl" suffix).
|
||||
%%%
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
%% NOTE the following two lines
|
||||
-compile({parse_transform,contract_parser}).
|
||||
-add_contract("./test/Unit-EUnit-Files/stateful_plugin").
|
||||
-add_contract("./test/eunit/stateful_plugin").
|
||||
-add_types({types_plugin, [contract_res,contract_req,description_res,description_req,info_res,info_req]}).
|
||||
-add_types({types_plugin, [keepalive_res,keepalive_req]}).
|
||||
-add_types({types_plugin, [timeout]}).
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
%% NOTE the following two lines
|
||||
-compile({parse_transform,contract_parser}).
|
||||
-add_contract("./test/Unit-EUnit-Files/stateless_plugin").
|
||||
-add_contract("./test/eunit/stateless_plugin").
|
||||
-add_types({types_plugin, [contract_res,contract_req,description_res,description_req,info_res,info_req]}).
|
||||
-add_types({types_plugin, [keepalive_res,keepalive_req]}).
|
||||
-add_types({types_plugin, [timeout]}).
|
||||
@@ -88,13 +88,13 @@ test_setup(App) ->
|
||||
|
||||
application:start(sasl),
|
||||
application:stop(App),
|
||||
true = code:add_patha("../test/Unit-EUnit-Files"),
|
||||
true = code:add_patha("../test/eunit"),
|
||||
ok = application:start(App),
|
||||
App.
|
||||
|
||||
test_teardown(App) ->
|
||||
application:stop(App),
|
||||
true = code:del_path("../test/Unit-EUnit-Files"),
|
||||
true = code:del_path("../test/eunit"),
|
||||
ok.
|
||||
|
||||
%% connect -> close
|
||||
@@ -10,4 +10,4 @@
|
||||
|
||||
%% NOTE the following two lines
|
||||
-compile({parse_transform,contract_parser}).
|
||||
-add_contract("./test/Unit-EUnit-Files/types_plugin").
|
||||
-add_contract("./test/eunit/types_plugin").
|
||||
@@ -43,7 +43,7 @@
|
||||
%% dir in our parent dir, not this dir.
|
||||
|
||||
-compile({parse_transform, contract_parser}).
|
||||
-add_contract("./test/Unit-Test-Files/file_plugin").
|
||||
-add_contract("./test/unit/file_plugin").
|
||||
|
||||
%% @spec () -> string()
|
||||
%% @doc Mandatory callback function: Return info/version string.
|
||||
@@ -8,7 +8,7 @@
|
||||
-import(lists, [delete/2, map/2, member/2, foreach/2]).
|
||||
|
||||
-compile({parse_transform,contract_parser}).
|
||||
-add_contract("./test/Unit-Test-Files/irc_plugin").
|
||||
-add_contract("./test/unit/irc_plugin").
|
||||
|
||||
-include("ubf.hrl").
|
||||
-include("ubf_plugin_stateful.hrl").
|
||||
@@ -15,7 +15,7 @@
|
||||
%% NOTE the following two lines
|
||||
|
||||
-compile({parse_transform,contract_parser}).
|
||||
-add_contract("./test/Unit-Test-Files/test_plugin").
|
||||
-add_contract("./test/unit/test_plugin").
|
||||
|
||||
info() -> "I am a test server".
|
||||
|
||||
@@ -36,7 +36,7 @@ test10() ->
|
||||
|
||||
|
||||
test11() ->
|
||||
T = epp:parse_file("./Unit-Test-Files/bug.erl","", ""),
|
||||
T = epp:parse_file("./unit/bug.erl","", ""),
|
||||
%% io:format("T=~p~n",[T]),
|
||||
test_ubf(T).
|
||||
|
||||
@@ -45,14 +45,14 @@ encode_print(X) ->
|
||||
|
||||
|
||||
bug1() ->
|
||||
T={ok,[{1,file,{"./Unit-Test-Files/bug.erl",1}},
|
||||
T={ok,[{1,file,{"./unit/bug.erl",1}},
|
||||
{[{clause,2,[],[],[{call,3,{atom,3,decoe},[]}]}]},
|
||||
{[{clause,5,[],[],[{call,6,{atom,6,decode},[]}]}]},
|
||||
{eof,8}]},
|
||||
test_ubf(T).
|
||||
|
||||
bug2() ->
|
||||
T={ok,[{1,file,{"./Unit-Test-Files/bug.erl",1}},
|
||||
T={ok,[{1,file,{"./unit/bug.erl",1}},
|
||||
{[{clause,2,[],[],[{{atom,3,decoe},[]}]}]},
|
||||
{[{clause,5,[],[],[{{atom,6,decode},[]}]}]},
|
||||
{eof,8}]},
|
||||
Reference in New Issue
Block a user