4
%% Copyright Ericsson AB 2007-2009. All Rights Reserved.
4
%% Copyright Ericsson AB 2007-2011. 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
23
23
-module(system_profile_SUITE).
25
-export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1,
26
init_per_group/2,end_per_group/2,
26
27
system_profile_on_and_off/1,
32
-export([init_per_testcase/2, fin_per_testcase/2]).
34
-export([profiler_process/1, ring_loop/1, port_echo_start/0, list_load/0, run_load/2]).
36
-include("test_server.hrl").
33
-export([init_per_testcase/2, end_per_testcase/2]).
35
-export([profiler_process/1, ring_loop/1, port_echo_start/0,
36
list_load/0, run_load/2]).
38
-include_lib("test_server/include/test_server.hrl").
38
40
-define(default_timeout, ?t:minutes(1)).
40
42
init_per_testcase(_Case, Config) ->
41
43
?line Dog=?t:timetrap(?default_timeout),
42
44
[{watchdog, Dog}|Config].
43
fin_per_testcase(_Case, Config) ->
45
end_per_testcase(_Case, Config) ->
44
46
Dog=?config(watchdog, Config),
45
47
?t:timetrap_cancel(Dog),
49
%% Test specification on test suite level
50
[system_profile_on_and_off,
50
suite() -> [{ct_hooks,[ts_install_cth]}].
53
[system_profile_on_and_off, runnable_procs,
54
runnable_ports, scheduler].
59
init_per_suite(Config) ->
62
end_per_suite(_Config) ->
65
init_per_group(_GroupName, Config) ->
68
end_per_group(_GroupName, Config) ->
55
72
%% No specification clause needed for an init function in a conf case!!!