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

« back to all changes in this revision

Viewing changes to lib/cosProperty/test/property_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:
2
2
%%
3
3
%% %CopyrightBegin%
4
4
%% 
5
 
%% Copyright Ericsson AB 2000-2009. All Rights Reserved.
 
5
%% Copyright Ericsson AB 2000-2011. All Rights Reserved.
6
6
%% 
7
7
%% The contents of this file are subject to the Erlang Public License,
8
8
%% Version 1.1, (the "License"); you may not use this file except in
32
32
-include_lib("cosProperty/src/cosProperty.hrl").
33
33
-include_lib("cosProperty/include/CosPropertyService.hrl").
34
34
 
35
 
-include("test_server.hrl").
 
35
-include_lib("test_server/include/test_server.hrl").
36
36
 
37
37
%%--------------- DEFINES ------------------------------------
38
38
-define(default_timeout, ?t:minutes(20)).
86
86
%% External exports
87
87
%%-----------------------------------------------------------------
88
88
%% Fixed exports
89
 
-export([all/1, cases/0, init_all/1, finish_all/1, 
90
 
         init_per_testcase/2, fin_per_testcase/2]).
 
89
-export([all/0, suite/0,groups/0,init_per_group/2,end_per_group/2, cases/0, 
 
90
         init_per_suite/1, end_per_suite/1, 
 
91
         init_per_testcase/2, end_per_testcase/2]).
91
92
%% Test cases
92
93
-export([create_setdef_api/1, create_set_api/1, define_with_mode_api/1,
93
94
         define_api/1, names_iterator_api/1, properties_iterator_api/1,
98
99
%% Args: 
99
100
%% Returns: 
100
101
%%-----------------------------------------------------------------
101
 
all(doc) -> ["API tests for the cosProperty interfaces", ""];
102
 
all(suite) -> {req,
103
 
               [mnesia, orber],
104
 
               {conf, init_all, cases(), finish_all}}.
105
 
 
106
 
cases() ->
107
 
    [create_setdef_api, create_set_api, define_with_mode_api, define_api,
108
 
     names_iterator_api, properties_iterator_api, app_test].
109
 
 
110
 
 
 
102
suite() -> [{ct_hooks,[ts_install_cth]}].
 
103
 
 
104
all() -> 
 
105
    cases().
 
106
 
 
107
groups() -> 
 
108
    [].
 
109
 
 
110
init_per_group(_GroupName, Config) ->
 
111
    Config.
 
112
 
 
113
end_per_group(_GroupName, Config) ->
 
114
    Config.
 
115
 
 
116
cases() -> 
 
117
    [create_setdef_api, create_set_api,
 
118
     define_with_mode_api, define_api, names_iterator_api,
 
119
     properties_iterator_api, app_test].
111
120
 
112
121
%%-----------------------------------------------------------------
113
122
%% Init and cleanup functions.
120
129
    [{watchdog, Dog}|Config].
121
130
 
122
131
 
123
 
fin_per_testcase(_Case, Config) ->
 
132
end_per_testcase(_Case, Config) ->
124
133
    Path = code:which(?MODULE),
125
134
    code:del_path(filename:join(filename:dirname(Path), "idl_output")),
126
135
    Dog = ?config(watchdog, Config),
127
136
    test_server:timetrap_cancel(Dog),
128
137
    ok.
129
138
 
130
 
init_all(Config) ->
 
139
init_per_suite(Config) ->
131
140
    Path = code:which(?MODULE),
132
141
    code:add_pathz(filename:join(filename:dirname(Path), "idl_output")),
133
142
    orber:jump_start(),
141
150
            exit("Config not a list")
142
151
    end.
143
152
 
144
 
finish_all(Config) ->
 
153
end_per_suite(Config) ->
145
154
    Path = code:which(?MODULE),
146
155
    code:del_path(filename:join(filename:dirname(Path), "idl_output")),
147
156
    application:stop(cosProperty),