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

« back to all changes in this revision

Viewing changes to lib/common_test/test/ct_groups_test_1_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 2009-2010. All Rights Reserved.
 
4
%% Copyright Ericsson AB 2009-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
29
29
 
30
30
-compile(export_all).
31
31
 
32
 
-include_lib("test_server/include/test_server.hrl").
 
32
-include_lib("common_test/include/ct.hrl").
33
33
-include_lib("common_test/include/ct_event.hrl").
34
34
 
35
35
-define(eh, ct_test_support_eh).
56
56
end_per_testcase(TestCase, Config) ->
57
57
    ct_test_support:end_per_testcase(TestCase, Config).
58
58
 
59
 
all(doc) -> 
60
 
    ["Run smoke tests of Common Test."];
61
 
 
62
 
all(suite) -> 
63
 
    [groups_suite_1, groups_suite_2,
64
 
     groups_suites_1, groups_dir_1, groups_dirs_1].
 
59
suite() -> [{ct_hooks,[ts_install_cth]}].
 
60
 
 
61
all() -> 
 
62
    [groups_suite_1, groups_suite_2, groups_suites_1,
 
63
     groups_dir_1, groups_dirs_1].
 
64
 
 
65
groups() -> 
 
66
    [].
 
67
 
 
68
init_per_group(_GroupName, Config) ->
 
69
        Config.
 
70
 
 
71
end_per_group(_GroupName, Config) ->
 
72
        Config.
 
73
 
65
74
 
66
75
%%--------------------------------------------------------------------
67
76
%% TEST CASES
80
89
    Events = ct_test_support:get_events(ERPid, Config),
81
90
 
82
91
    ct_test_support:log_events(groups_suite_1, 
83
 
                               reformat(Events, ?eh), 
84
 
                               ?config(priv_dir, Config)),
 
92
                               reformat(Events, ?eh),
 
93
                               ?config(priv_dir, Config),
 
94
                               Opts),
85
95
 
86
96
    TestEvents = events_to_check(groups_suite_1),
87
97
    ok = ct_test_support:verify_events(TestEvents, Events, Config).
100
110
    Events = ct_test_support:get_events(ERPid, Config),
101
111
 
102
112
    ct_test_support:log_events(groups_suite_2, 
103
 
                               reformat(Events, ?eh), 
104
 
                               ?config(priv_dir, Config)),
 
113
                               reformat(Events, ?eh),
 
114
                               ?config(priv_dir, Config),
 
115
                               Opts),
105
116
 
106
117
    TestEvents = events_to_check(groups_suite_2),
107
118
    ok = ct_test_support:verify_events(TestEvents, Events, Config).  
121
132
    Events = ct_test_support:get_events(ERPid, Config),
122
133
 
123
134
    ct_test_support:log_events(groups_suites_1, 
124
 
                               reformat(Events, ?eh), 
125
 
                               ?config(priv_dir, Config)),
 
135
                               reformat(Events, ?eh),
 
136
                               ?config(priv_dir, Config),
 
137
                               Opts),
126
138
 
127
139
    TestEvents = events_to_check(groups_suites_1),
128
140
    ok = ct_test_support:verify_events(TestEvents, Events, Config).  
141
153
    Events = ct_test_support:get_events(ERPid, Config),
142
154
 
143
155
    ct_test_support:log_events(groups_dir_1, 
144
 
                               reformat(Events, ?eh), 
145
 
                               ?config(priv_dir, Config)),
 
156
                               reformat(Events, ?eh),
 
157
                               ?config(priv_dir, Config),
 
158
                               Opts),
146
159
 
147
160
    TestEvents = events_to_check(groups_dir_1),
148
161
    ok = ct_test_support:verify_events(TestEvents, Events, Config).  
161
174
    Events = ct_test_support:get_events(ERPid, Config),
162
175
 
163
176
    ct_test_support:log_events(groups_dirs_1, 
164
 
                               reformat(Events, ?eh), 
165
 
                               ?config(priv_dir, Config)),
 
177
                               reformat(Events, ?eh),
 
178
                               ?config(priv_dir, Config),
 
179
                               Opts),
166
180
 
167
181
    TestEvents = events_to_check(groups_dirs_1),
168
182
    ok = ct_test_support:verify_events(TestEvents, Events, Config).