1%%
2%% %CopyrightBegin%
3%%
4%% Copyright Ericsson AB 2003-2016. 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 Megaco application
23%%----------------------------------------------------------------------
24-module(snmp_appup_test).
25
26-export([
27	 all/0,
28	 groups/0, init_per_group/2, end_per_group/2,
29	 init_per_suite/1, end_per_suite/1,
30	 init_per_testcase/2, end_per_testcase/2,
31
32	 appup_file/1
33
34	]).
35
36-compile({no_auto_import, [error/1]}).
37
38-include_lib("common_test/include/ct.hrl").
39-include("snmp_test_lib.hrl").
40
41
42%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
43
44all() ->
45    Cases =
46	[
47	 appup_file
48	],
49    Cases.
50
51groups() ->
52    [].
53
54init_per_group(_GroupName, Config) ->
55    Config.
56
57end_per_group(_GroupName, Config) ->
58    Config.
59
60
61
62%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
63
64init_per_suite(suite) -> [];
65init_per_suite(doc) -> [];
66init_per_suite(Config) when is_list(Config) ->
67    Config.
68
69
70end_per_suite(suite) -> [];
71end_per_suite(doc) -> [];
72end_per_suite(Config) when is_list(Config) ->
73    Config.
74
75
76%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
77
78%% Test server callbacks
79init_per_testcase(_Case, Config) when is_list(Config) ->
80    Config.
81
82end_per_testcase(_Case, Config) when is_list(Config) ->
83    Config.
84
85
86%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
87
88%% Perform a simple check of the appup file
89appup_file(Config) when is_list(Config) ->
90    ok = ?t:appup_test(snmp).
91