1%%
2%% %CopyrightBegin%
3%%
4%% Copyright Ericsson AB 2003-2019. All Rights Reserved.
5%%
6%% Licensed under the Apache License, Version 2.0 (the "License");
7%% you may not use this file except in compliance with the License.
8%% You may obtain a copy of the License at
9%%
10%%     http://www.apache.org/licenses/LICENSE-2.0
11%%
12%% Unless required by applicable law or agreed to in writing, software
13%% distributed under the License is distributed on an "AS IS" BASIS,
14%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15%% See the License for the specific language governing permissions and
16%% limitations under the License.
17%%
18%% %CopyrightEnd%
19%%
20
21%%----------------------------------------------------------------------
22%% Purpose: Verify the application specifics of the snmp application
23%%----------------------------------------------------------------------
24-module(snmp_app_SUITE).
25
26%% Note: This directive should only be used in test suites.
27-export([
28        suite/0, all/0,
29        init_per_suite/1,    end_per_suite/1,
30        init_per_group/2,    end_per_group/2,
31        init_per_testcase/2, end_per_testcase/2,
32
33        app/0, app/1,
34        appup/0, appup/1
35        ]).
36
37
38-include_lib("common_test/include/ct.hrl").
39-include("snmp_test_lib.hrl").
40
41
42%%--------------------------------------------------------------------
43%% Common Test interface functions -----------------------------------
44%%--------------------------------------------------------------------
45
46suite() ->
47    [{ct_hooks, [ts_install_cth]}].
48
49all() ->
50    [
51     app,
52     appup
53    ].
54
55
56
57%%
58%% -----
59%%
60
61init_per_suite(Config) when is_list(Config) ->
62    Config.
63
64end_per_suite(Config) when is_list(Config) ->
65    Config.
66
67
68
69%%
70%% -----
71%%
72
73init_per_group(_GroupName, Config) ->
74    Config.
75
76end_per_group(_GroupName, Config) ->
77    Config.
78
79
80%%
81%% -----
82%%
83
84init_per_testcase(_Case, Config) when is_list(Config) ->
85    Config.
86
87end_per_testcase(_Case, Config) when is_list(Config) ->
88    Config.
89
90
91
92%%--------------------------------------------------------------------
93%% Test Cases --------------------------------------------------------
94%%--------------------------------------------------------------------
95app() ->
96    [{doc, "Test that the snmp app file is ok"}].
97app(Config) when is_list(Config) ->
98    ok = test_server:app_test(snmp).
99
100
101%%--------------------------------------------------------------------
102appup() ->
103    [{doc, "Test that the snmp appup file is ok"}].
104appup(Config) when is_list(Config) ->
105    ok = test_server:appup_test(snmp).
106