4
%% Copyright Ericsson AB 1999-2009. All Rights Reserved.
4
%% Copyright Ericsson AB 1999-2011. All Rights Reserved.
6
6
%% The contents of this file are subject to the Erlang Public License,
7
7
%% Version 1.1, (the "License"); you may not use this file except in
28
28
-include_lib("cosTransactions/include/CosTransactions.hrl").
29
29
-include("etrap_test_lib.hrl").
31
-include("test_server.hrl").
31
-include_lib("test_server/include/test_server.hrl").
33
33
-define(default_timeout, ?t:minutes(20)).
36
36
%%-----------------------------------------------------------------
37
37
%% External exports
38
38
%%-----------------------------------------------------------------
39
-export([all/1, cases/0, init_all/1, finish_all/1, resource_api/1, etrap_api/1,
40
init_per_testcase/2, fin_per_testcase/2, app_test/1]).
39
-export([all/0, suite/0,groups/0,init_per_group/2,end_per_group/2, cases/0,
40
init_per_suite/1, end_per_suite/1, resource_api/1, etrap_api/1,
41
init_per_testcase/2, end_per_testcase/2, app_test/1]).
42
43
%%-----------------------------------------------------------------
46
47
%%-----------------------------------------------------------------
47
all(doc) -> ["API tests for the cosTransactions interfaces", ""];
50
{conf, init_all, cases(), finish_all}}.
48
suite() -> [{ct_hooks,[ts_install_cth]}].
56
init_per_group(_GroupName, Config) ->
59
end_per_group(_GroupName, Config) ->
53
64
[etrap_api, resource_api, app_test].
67
78
[{watchdog, Dog}|Config].
70
fin_per_testcase(_Case, Config) ->
81
end_per_testcase(_Case, Config) ->
71
82
'oe_etrap_test':'oe_unregister'(),
72
83
'oe_CosTransactions':'oe_unregister'(),
73
84
Path = code:which(?MODULE),
76
87
test_server:timetrap_cancel(Dog),
90
init_per_suite(Config) ->
80
91
mnesia:delete_schema([node()]),
81
92
mnesia:create_schema([node()]),
82
93
orber:install([node()]),