~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to lib/kernel/test/global_group_SUITE.erl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2010-03-09 17:34:57 UTC
  • mfrom: (10.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100309173457-4yd6hlcb2osfhx31
Tags: 1:13.b.4-dfsg-3
Manpages in section 1 are needed even if only arch-dependent packages are
built. So, re-enabled them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
%%
2
2
%% %CopyrightBegin%
3
 
%% 
4
 
%% Copyright Ericsson AB 1998-2009. All Rights Reserved.
5
 
%% 
 
3
%%
 
4
%% Copyright Ericsson AB 1998-2010. All Rights Reserved.
 
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
8
8
%% compliance with the License. You should have received a copy of the
9
9
%% Erlang Public License along with this software. If not, it can be
10
10
%% retrieved online at http://www.erlang.org/.
11
 
%% 
 
11
%%
12
12
%% Software distributed under the License is distributed on an "AS IS"
13
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
14
%% the License for the specific language governing rights and limitations
15
15
%% under the License.
16
 
%% 
 
16
%%
17
17
%% %CopyrightEnd%
18
18
%%
19
19
 
42
42
-define(TESTCASE, testcase_name).
43
43
-define(testcase, ?config(?TESTCASE, Config)).
44
44
 
45
 
init_per_testcase(Case, Config) when atom(Case), list(Config) ->
 
45
init_per_testcase(Case, Config) when is_atom(Case), is_list(Config) ->
46
46
    Dog=?t:timetrap(?t:minutes(5)),
47
47
    [{?TESTCASE, Case}, {watchdog, Dog}|Config].
48
48
 
59
59
 
60
60
start_gg_proc(suite) -> [];
61
61
start_gg_proc(doc) -> ["Check that the global_group processes are started automatically. "];
62
 
start_gg_proc(Config) when list(Config) ->
 
62
start_gg_proc(Config) when is_list(Config) ->
63
63
    ?line Dog = test_server:timetrap(test_server:seconds(120)),
64
64
 
65
65
    ?line Dir = ?config(priv_dir, Config),
94
94
no_gg_proc(suite) -> [];
95
95
no_gg_proc(doc) -> ["Start a system without global groups. Nodes are not "
96
96
                    "synced at start (sync_nodes_optional is not defined)"];
97
 
no_gg_proc(Config) when list(Config) ->
 
97
no_gg_proc(Config) when is_list(Config) ->
98
98
    ?line Dog = test_server:timetrap(test_server:seconds(200)),
99
99
 
100
100
    ?line Dir = ?config(priv_dir, Config),
267
267
no_gg_proc_sync(doc) -> 
268
268
    ["Start a system without global groups, but syncing the nodes by using " 
269
269
     "sync_nodes_optional."];
270
 
no_gg_proc_sync(Config) when list(Config) ->
 
270
no_gg_proc_sync(Config) when is_list(Config) ->
271
271
    ?line Dog = test_server:timetrap(test_server:seconds(200)),
272
272
 
273
273
    ?line Dir = ?config(priv_dir, Config),
441
441
compatible(suite) -> [];
442
442
compatible(doc) -> 
443
443
    ["Check that a system without global groups is compatible with the old R4 system."];
444
 
compatible(Config) when list(Config) ->
 
444
compatible(Config) when is_list(Config) ->
445
445
    ?line Dog = test_server:timetrap(test_server:seconds(200)),
446
446
 
447
447
    ?line Dir = ?config(priv_dir, Config),
614
614
 
615
615
one_grp(suite) -> [];
616
616
one_grp(doc) -> ["Test a system with only one global group. "];
617
 
one_grp(Config) when list(Config) ->
 
617
one_grp(Config) when is_list(Config) ->
618
618
    ?line Dog = test_server:timetrap(test_server:seconds(120)),
619
619
 
620
620
    ?line Dir = ?config(priv_dir, Config),
701
701
one_grp_x(suite) -> [];
702
702
one_grp_x(doc) -> ["Check a system with only one global group. "
703
703
                   "Start the nodes with different time intervals. "];
704
 
one_grp_x(Config) when list(Config) ->
 
704
one_grp_x(Config) when is_list(Config) ->
705
705
    ?line Dog = test_server:timetrap(test_server:seconds(120)),
706
706
 
707
707
    ?line Dir = ?config(priv_dir, Config),
763
763
 
764
764
two_grp(suite) -> [];
765
765
two_grp(doc) -> ["Test a two global group system. "];
766
 
two_grp(Config) when list(Config) ->
 
766
two_grp(Config) when is_list(Config) ->
767
767
    ?line Dog = test_server:timetrap(test_server:seconds(200)),
768
768
 
769
769
    ?line Dir = ?config(priv_dir, Config),
1063
1063
 
1064
1064
hidden_groups(suite) -> [];
1065
1065
hidden_groups(doc) -> ["Test hidden global groups."];
1066
 
hidden_groups(Config) when list(Config) ->
 
1066
hidden_groups(Config) when is_list(Config) ->
1067
1067
    ?line Dog = test_server:timetrap(test_server:seconds(200)),
1068
1068
 
1069
1069
    ?line Dir = ?config(priv_dir, Config),
1138
1138
 
1139
1139
test_exit(suite) -> [];
1140
1140
test_exit(doc) -> ["Checks when the search process exits. "];
1141
 
test_exit(Config) when list(Config) ->
 
1141
test_exit(Config) when is_list(Config) ->
1142
1142
    ?line Dog = test_server:timetrap(test_server:seconds(120)),
1143
1143
 
1144
1144
    ?line NN = node_name(atom_to_list(node())),