~clint-fewbar/ubuntu/precise/erlang/merge-15b

« back to all changes in this revision

Viewing changes to lib/cosTransactions/test/transactions_SUITE.erl

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2011-12-15 19:20:10 UTC
  • mfrom: (1.1.18) (3.5.15 sid)
  • mto: (3.5.16 sid)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20111215192010-jnxcfe3tbrpp0big
Tags: 1:15.b-dfsg-1
* New upstream release.
* Upload to experimental because this release breaks external drivers
  API along with ABI, so several applications are to be fixed.
* Removed SSL patch because the old SSL implementation is removed from
  the upstream distribution.
* Removed never used patch which added native code to erlang beam files.
* Removed the erlang-docbuilder binary package because the docbuilder
  application was dropped by upstream.
* Documented dropping ${erlang-docbuilder:Depends} substvar in
  erlang-depends(1) manpage.
* Made erlang-base and erlang-base-hipe provide virtual package
  erlang-abi-15.b (the number means the first erlang version, which
  provides current ABI).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
%%
2
2
%% %CopyrightBegin%
3
3
%% 
4
 
%% Copyright Ericsson AB 1999-2009. All Rights Reserved.
 
4
%% Copyright Ericsson AB 1999-2011. All Rights Reserved.
5
5
%% 
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").
30
30
 
31
 
-include("test_server.hrl").
 
31
-include_lib("test_server/include/test_server.hrl").
32
32
 
33
33
-define(default_timeout, ?t:minutes(20)).
34
34
 
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]).
41
42
 
42
43
%%-----------------------------------------------------------------
43
44
%% Func: all/1
44
45
%% Args: 
45
46
%% Returns: 
46
47
%%-----------------------------------------------------------------
47
 
all(doc) -> ["API tests for the cosTransactions interfaces", ""];
48
 
all(suite) -> {req,
49
 
               [mnesia, orber],
50
 
               {conf, init_all, cases(), finish_all}}.
51
 
 
52
 
cases() ->
 
48
suite() -> [{ct_hooks,[ts_install_cth]}].
 
49
 
 
50
all() -> 
 
51
    cases().
 
52
 
 
53
groups() -> 
 
54
    [].
 
55
 
 
56
init_per_group(_GroupName, Config) ->
 
57
    Config.
 
58
 
 
59
end_per_group(_GroupName, Config) ->
 
60
    Config.
 
61
 
 
62
 
 
63
cases() -> 
53
64
    [etrap_api, resource_api, app_test].
54
65
 
55
66
 
67
78
    [{watchdog, Dog}|Config].
68
79
 
69
80
 
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),
77
88
    ok.
78
89
 
79
 
init_all(Config) ->
 
90
init_per_suite(Config) ->
80
91
    mnesia:delete_schema([node()]),
81
92
    mnesia:create_schema([node()]),
82
93
    orber:install([node()]),
89
100
            exit("Config not a list")
90
101
    end.
91
102
 
92
 
finish_all(Config) ->
 
103
end_per_suite(Config) ->
93
104
    application:stop(orber),
94
105
    application:stop(mnesia),
95
106
    mnesia:delete_schema([node()]),