4
%% Copyright Ericsson AB 2003-2009. All Rights Reserved.
4
%% Copyright Ericsson AB 2003-2010. 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
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/.
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.
43
43
%% External exports
44
44
%%----------------------------------------------------------------------
47
init_per_testcase/2, fin_per_testcase/2,
46
all/0,groups/0,init_per_group/2,end_per_group/2,
47
init_per_testcase/2, end_per_testcase/2,
49
start_and_stop_tests/1,
50
50
simple_start_and_stop1/1,
51
51
simple_start_and_stop2/1,
52
52
simple_start_and_monitor_crash1/1,
284
fin_per_testcase(Case, Config) when is_list(Config) ->
292
end_per_testcase(Case, Config) when is_list(Config) ->
285
293
?DBG("fin [~w] Nodes [1]: ~p", [Case, erlang:nodes()]),
286
294
Dog = ?config(watchdog, Config),
288
296
Conf1 = lists:keydelete(watchdog, 1, Config),
289
Conf2 = fin_per_testcase2(Case, Conf1),
297
Conf2 = end_per_testcase2(Case, Conf1),
290
298
?DBG("fin [~w] Nodes [2]: ~p", [Case, erlang:nodes()]),
291
299
%% TopDir = ?config(top_dir, Conf2),
292
300
%% ?DEL_DIR(TopDir),
295
fin_per_testcase2(Case, Config) ->
303
end_per_testcase2(Case, Config) ->
298
306
simple_sync_get1,
347
359
%% Test case definitions
348
360
%%======================================================================
352
start_and_stop_tests,
362
start_and_stop_tests(suite) ->
364
simple_start_and_stop1,
365
simple_start_and_stop2,
366
simple_start_and_monitor_crash1,
367
simple_start_and_monitor_crash2,
382
agent_tests(suite) ->
388
request_tests(suite) ->
405
get_next_tests(suite) ->
407
simple_sync_get_next1,
408
simple_sync_get_next2,
409
simple_async_get_next1,
410
simple_async_get_next2
423
simple_sync_get_bulk1,
424
simple_sync_get_bulk2,
425
simple_async_get_bulk1,
426
simple_async_get_bulk2
429
misc_request_tests(suite) ->
435
event_tests(suite) ->
363
[{group, start_and_stop_tests}, {group, misc_tests},
364
{group, user_tests}, {group, agent_tests},
365
{group, request_tests}, {group, event_tests}, discovery,
369
[{start_and_stop_tests, [],
370
[simple_start_and_stop1, simple_start_and_stop2,
371
simple_start_and_monitor_crash1,
372
simple_start_and_monitor_crash2, notify_started01,
374
{misc_tests, [], [info]},
375
{user_tests, [], [register_user1]},
376
{agent_tests, [], [register_agent1, register_agent2]},
378
[{group, get_tests}, {group, get_next_tests},
379
{group, set_tests}, {group, bulk_tests},
380
{group, misc_request_tests}]},
382
[simple_sync_get1, simple_sync_get2, simple_async_get1,
385
[simple_sync_get_next1, simple_sync_get_next2,
386
simple_async_get_next1, simple_async_get_next2]},
388
[simple_sync_set1, simple_sync_set2, simple_async_set1,
391
[simple_sync_get_bulk1, simple_sync_get_bulk2,
392
simple_async_get_bulk1, simple_async_get_bulk2]},
393
{misc_request_tests, [], [misc_async1, misc_async2]},
395
[trap1, trap2, inform1, inform2, inform3, inform4,
396
inform_swarm, report]},
397
{tickets, [], [{group, otp8015}, {group, otp8395}]},
398
{otp8015, [], [otp8015_1]}, {otp8395, [], [otp8395_1]}].
400
init_per_group(_GroupName, Config) ->
403
end_per_group(_GroupName, Config) ->
458
422
%%======================================================================
777
741
notify_started02(Config) when is_list(Config) ->
778
742
process_flag(trap_exit, true),
745
%% <CONDITIONAL-SKIP>
746
%% The point of this is to catch machines running
750
case os:cmd("uname -m") of
752
%% io:format("found an i686 machine, "
753
%% "now check version~n", []),
755
{2, 6, Rev} when Rev >= 16 ->
757
{2, Min, _} when Min > 6 ->
759
{Maj, _, _} when Maj > 2 ->
768
Skippable = [{unix, [{linux, LinuxVersionVerify}]}],
769
Condition = fun() -> ?OS_BASED_SKIP(Skippable) end,
770
?NON_PC_TC_MAYBE_SKIP(Config, Condition),
771
%% </CONDITIONAL-SKIP>
780
773
p("starting with Config: ~n~p", [Config]),
782
775
ConfDir = ?config(manager_conf_dir, Config),
1386
1382
Oids2 = [[sysObjectID, 0], [sysDescr, 0], [sysUpTime, 0]],
1387
1383
?line ok = do_simple_get(Node, TargetName, Oids2),
1390
1386
do_simple_get(Node, TargetName, Oids) ->
1391
1387
?line {ok, Reply, Rem} = mgr_user_sync_get(Node, TargetName, Oids),
5063
5069
ServerVerbosity = get_opt(manager_server_verbosity, Conf0, trace),
5064
5070
NetIfVerbosity = get_opt(manager_net_if_verbosity, Conf0, trace),
5072
AtlSeqNo = get_opt(manager_atl_seqno, Conf0, false),
5066
5074
Env = [{versions, Vsns},
5067
5075
{inform_request_behaviour, IRB},
5068
5076
{audit_trail_log, [{type, read_write},
5070
5078
{size, {10240, 10}},
5080
{seqno, AtlSeqNo}]},
5072
5081
{config, [{dir, ConfDir},
5073
5082
{db_dir, DbDir},
5074
5083
{verbosity, ConfigVerbosity}]},