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

« back to all changes in this revision

Viewing changes to lib/snmp/test/snmp_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 1997-2009. All Rights Reserved.
 
4
%% Copyright Ericsson AB 1997-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
19
19
 
20
20
-module(snmp_SUITE).
21
21
 
22
 
-export([all/1, 
23
 
         init_per_testcase/2, fin_per_testcase/2
24
 
        ]).
25
 
 
26
 
-export([app/1, compiler/1, misc/1, agent/1, manager/1]).
27
 
 
28
 
-export([
29
 
         app_test/1,
30
 
         appup_test/1,
31
 
         compiler_test/1,
32
 
         conf_test/1,
33
 
         pdus_test/1,
34
 
         log_test/1,
35
 
         note_store_test/1,
36
 
         mibs_test/1,
37
 
         nfilter_test/1,
38
 
         agent_test/1,
39
 
         manager_config_test/1,
40
 
         manager_user_test/1,
41
 
         manager_test/1
42
 
        ]).
 
22
-export([all/0, 
 
23
         suite/0,
 
24
         groups/0, 
 
25
         init_per_suite/1,    end_per_suite/1, 
 
26
         init_per_group/2,    end_per_group/2, 
 
27
         init_per_testcase/2, end_per_testcase/2
 
28
        ]).
 
29
 
43
30
 
44
31
%%
45
32
%% -----
48
35
init_per_testcase(_Case, Config) when is_list(Config) ->
49
36
    Config.
50
37
 
51
 
fin_per_testcase(_Case, Config) when is_list(Config) ->
 
38
end_per_testcase(_Case, Config) when is_list(Config) ->
52
39
    Config.
53
40
 
54
41
 
55
42
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
56
43
%% Top test case
57
44
 
58
 
all(doc) ->
59
 
    ["Test suites for the snmp application.",
60
 
     "There are eight different sub test-suites."];
61
 
 
62
 
all(suite) ->
63
 
    [
64
 
     app,
65
 
     compiler,
66
 
     misc,
67
 
     agent,
68
 
     manager
69
 
 
70
 
    ].
71
 
 
72
 
app(suite) ->
73
 
    [
74
 
     app_test,
75
 
     appup_test
76
 
     ].
77
 
 
78
 
compiler(suite) ->
79
 
    [
80
 
     compiler_test
81
 
    ].
82
 
 
83
 
misc(suite) ->
84
 
    [
85
 
     conf_test,
86
 
     pdus_test,
87
 
     log_test,
88
 
     note_store_test
89
 
    ].
90
 
 
91
 
agent(suite) ->
92
 
    [
93
 
     mibs_test,
94
 
     nfilter_test,
95
 
     agent_test
96
 
    ].
97
 
 
98
 
manager(suite) ->
99
 
    [
100
 
     manager_config_test,
101
 
     manager_user_test,
102
 
     manager_test
103
 
    ].
104
 
 
105
 
 
106
 
app_test(suite) ->
107
 
    [{snmp_app_test, all}].
108
 
 
109
 
 
110
 
appup_test(suite) ->
111
 
    [{snmp_appup_test, all}].
112
 
 
113
 
 
114
 
compiler_test(suite) ->
115
 
    [{snmp_compiler_test, all}].  
116
 
 
117
 
 
118
 
conf_test(suite) ->
119
 
    [{snmp_conf_test, all}].  
120
 
 
121
 
 
122
 
pdus_test(suite) ->
123
 
    [{snmp_pdus_test, all}].  
124
 
 
125
 
 
126
 
log_test(suite) ->
127
 
    [{snmp_log_test, all}].  
128
 
 
129
 
 
130
 
note_store_test(suite) ->
131
 
    [{snmp_note_store_test, all}].  
132
 
 
133
 
 
134
 
mibs_test(suite) ->
135
 
    [{snmp_agent_mibs_test, all}].
136
 
 
137
 
 
138
 
nfilter_test(suite) ->
139
 
    [{snmp_agent_nfilter_test, all}].
140
 
 
141
 
 
142
 
agent_test(suite) ->
143
 
    [{snmp_agent_test, all}].
144
 
 
145
 
 
146
 
manager_config_test(suite) ->
147
 
    [{snmp_manager_config_test, all}].  
148
 
 
149
 
 
150
 
manager_user_test(suite) ->
151
 
    [{snmp_manager_user_test, all}].  
152
 
 
153
 
 
154
 
manager_test(suite) ->
155
 
    [{snmp_manager_test, all}].  
156
 
 
 
45
suite() -> 
 
46
    [{ct_hooks, [ts_install_cth]}].
 
47
 
 
48
all() -> 
 
49
    [{group, app}, 
 
50
     {group, compiler}, 
 
51
     {group, misc},
 
52
     {group, agent}, 
 
53
     {group, manager}].
 
54
 
 
55
groups() -> 
 
56
    [{app,      [], [{group, app_test}, 
 
57
                     {group, appup_test}]},
 
58
     {compiler, [], [{group, compiler_test}]},
 
59
     {misc,     [], [{group, conf_test}, 
 
60
                     {group, pdus_test},
 
61
                     {group, log_test}, 
 
62
                     {group, note_store_test}]},
 
63
     {agent, [],    [{group, mibs_test}, 
 
64
                     {group, nfilter_test},
 
65
                     {group, agent_test}]},
 
66
     {manager, [],  [{group, manager_config_test},
 
67
                     {group, manager_user_test}, 
 
68
                     {group, manager_test}]},
 
69
     {app_test,            [], [{snmp_app_test,            all}]},
 
70
     {appup_test,          [], [{snmp_appup_test,          all}]},
 
71
     {compiler_test,       [], [{snmp_compiler_test,       all}]},
 
72
     {conf_test,           [], [{snmp_conf_test,           all}]},
 
73
     {pdus_test,           [], [{snmp_pdus_test,           all}]},
 
74
     {log_test,            [], [{snmp_log_test,            all}]},
 
75
     {note_store_test,     [], [{snmp_note_store_test,     all}]},
 
76
     {mibs_test,           [], [{snmp_agent_mibs_test,     all}]},
 
77
     {nfilter_test,        [], [{snmp_agent_nfilter_test,  all}]},
 
78
     {agent_test,          [], [{snmp_agent_test,          all}]},
 
79
     {manager_config_test, [], [{snmp_manager_config_test, all}]},
 
80
     {manager_user_test,   [], [{snmp_manager_user_test,   all}]},
 
81
     {manager_test,        [], [{snmp_manager_test,        all}]}].
 
82
 
 
83
init_per_suite(Config) ->
 
84
    Config.
 
85
 
 
86
end_per_suite(_Config) ->
 
87
    ok.
 
88
 
 
89
init_per_group(_GroupName, Config) ->
 
90
    Config.
 
91
 
 
92
end_per_group(_GroupName, Config) ->
 
93
    Config.
157
94