21
21
-module(dbg_ui_SUITE).
24
-include("test_server.hrl").
24
-include_lib("test_server/include/test_server.hrl").
27
27
% Test server specific exports
29
-export([function_tests/1]).
28
-export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1,
29
init_per_group/2,end_per_group/2]).
32
31
% Test cases must be exported.
33
32
-export ([dbg_ui/1]).
39
34
% Manual test suites/cases exports
40
-export([manual_tests/1]).
41
35
-export([start1/1, interpret1/1, quit1/1,
42
36
start2/1, interpret2/1, break2/1, options2/1, quit2/1,
43
37
interpret3/1, all_step3/1,all_next3/1,save3/1,restore3/1,finish3/1,
46
40
attach5/1, normal5/1, exit5/1, options5/1,
47
41
distsetup6/1, all_step6/1, all_next6/1]).
52
-export([init_per_testcase/2, fin_per_testcase/2]).
43
-export([init_per_testcase/2, end_per_testcase/2]).
56
45
init_per_testcase(_Func, Config) ->
57
46
Dog=test_server:timetrap(60*1000),
58
47
[{watchdog, Dog}|Config].
60
fin_per_testcase(_Func, Config) ->
49
end_per_testcase(_Func, Config) ->
61
50
Dog=?config(watchdog, Config),
62
51
test_server:timetrap_cancel(Dog).
66
{req, [debugger], [function_tests, manual_tests]}.
69
function_tests (doc) ->
70
["Tests documented functions"];
72
function_tests (suite) ->
54
suite() -> [{ct_hooks,[ts_install_cth]}].
57
[dbg_ui, {group, manual_tests}].
61
[start1, interpret1, quit1, start2, interpret2, break2,
62
options2, interpret3, all_step3, all_next3, save3,
63
restore3, finish3, killinit3, killone3, killall3,
64
deleteone3, deleteall3, viewbreak4, delete4, attach5,
65
normal5, exit5, options5, distsetup6, all_step6,
68
init_per_suite(Config) ->
71
end_per_suite(_Config) ->
74
init_per_group(_GroupName, Config) ->
77
end_per_group(_GroupName, Config) ->
84
87
case os:getenv("DISPLAY") of
86
89
{skipped,"No display"};
87
Other when list(Other) ->
90
Other when is_list(Other) ->
88
91
% ?line {ok, Pid} = debugger:start (),
89
92
% ?line ok = is_pid (Pid),
90
93
% ?line true = erlang:is_process_alive(Pid),
167
manual_tests(doc) -> ["Manual tests"];
168
manual_tests(suite) -> [start1, interpret1, quit1,
169
start2, interpret2, break2, options2,
170
interpret3, all_step3,all_next3,save3,restore3,finish3,
171
killinit3, killone3, killall3, deleteone3, deleteall3,
173
attach5, normal5, exit5, options5,
174
distsetup6, all_step6, all_next6
183
164
?MAN_CASE(start1, "Start the debugger from the toolbar",
184
165
"Before proceeding with the test cases, please move or remove