4
%% Copyright Ericsson AB 2005-2010. All Rights Reserved.
6
%% The contents of this file are subject to the Erlang Public License,
7
%% Version 1.1, (the "License"); you may not use this file except in
8
%% compliance with the License. You should have received a copy of the
9
%% Erlang Public License along with this software. If not, it can be
10
%% retrieved online at http://www.erlang.org/.
12
%% Software distributed under the License is distributed on an "AS IS"
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
%% the License for the specific language governing rights and limitations
21
-module(ftp_solaris10_sparc_test).
25
-include_lib("common_test/include/ct.hrl").
27
-define(LIB_MOD,ftp_suite_lib).
28
-define(CASE_WRAPPER(_A_,_B_,_C_),?LIB_MOD:wrapper(_A_,_B_,_C_)).
29
-define(PLATFORM,"Solaris 10 sparc ").
32
%% Test server callback functions
33
%%--------------------------------------------------------------------
34
%% Function: init_per_suite(Config) -> Config
36
%% A list of key/value pairs, holding the test case configuration.
37
%% Description: Initiation before the whole suite
39
%% Note: This function is free to add any key/value pairs to the Config
40
%% variable, but should NOT alter/remove any existing entries.
41
%%--------------------------------------------------------------------
42
init_per_suite(Config) ->
43
{File, NewFile} = ?LIB_MOD:test_filenames(),
44
NewConfig = [{file, File}, {new_file, NewFile} | Config],
45
?LIB_MOD:ftpd_init(solaris10_sparc, NewConfig).
47
%%--------------------------------------------------------------------
48
%% Function: end_per_suite(Config) -> _
50
%% A list of key/value pairs, holding the test case configuration.
51
%% Description: Cleanup after the whole suite
52
%%--------------------------------------------------------------------
53
end_per_suite(Config) ->
54
?LIB_MOD:ftpd_fin(Config).
56
%%--------------------------------------------------------------------
57
%% Function: init_per_testcase(TestCase, Config) -> Config
59
%% Name of the test case that is about to be run.
61
%% A list of key/value pairs, holding the test case configuration.
63
%% Description: Initiation before each test case
65
%% Note: This function is free to add any key/value pairs to the Config
66
%% variable, but should NOT alter/remove any existing entries.
67
%% Description: Initiation before each test case
68
%%--------------------------------------------------------------------
69
init_per_testcase(Case, Config) ->
70
ftp_suite_lib:init_per_testcase(Case, Config).
71
%%--------------------------------------------------------------------
72
%% Function: end_per_testcase(TestCase, Config) -> _
74
%% Name of the test case that is about to be run.
76
%% A list of key/value pairs, holding the test case configuration.
77
%% Description: Cleanup after each test case
78
%%--------------------------------------------------------------------
79
end_per_testcase(Case, Config) ->
80
ftp_suite_lib:end_per_testcase(Case, Config).
82
%%--------------------------------------------------------------------
83
%% Function: all(Clause) -> TestCases
84
%% Clause - atom() - suite | doc
87
%% Name of a test case.
88
%% Description: Returns a list of all test cases in this test suite
89
%%--------------------------------------------------------------------
91
[open, open_port, {group, passive}, {group, active},
92
api_missuse, not_owner, {group, progress_report}].
95
[{passive, [], ftp_suite_lib:passive(suite)},
96
{active, [], ftp_suite_lib:active(suite)},
98
ftp_suite_lib:progress_report(suite)}].
100
init_per_group(_GroupName, Config) ->
103
end_per_group(_GroupName, Config) ->
107
%% Test cases starts here.
108
%%--------------------------------------------------------------------
110
open(X) -> ?CASE_WRAPPER(?PLATFORM,X,fun ?LIB_MOD:open/1).
111
open_port(X) -> ?CASE_WRAPPER(?PLATFORM,X,fun ?LIB_MOD:open_port/1).
112
api_missuse(X) -> ?CASE_WRAPPER(?PLATFORM,X,fun ?LIB_MOD:api_missuse/1).
113
not_owner(X) -> ?CASE_WRAPPER(?PLATFORM,X,fun ?LIB_MOD:not_owner/1).
115
passive_user(X) -> ?LIB_MOD:passive_user(X).
116
passive_pwd(X) -> ?LIB_MOD:passive_pwd(X).
117
passive_cd(X) -> ?LIB_MOD:passive_cd(X).
118
passive_lcd(X) -> ?LIB_MOD:passive_lcd(X).
119
passive_ls(X) -> ?LIB_MOD:passive_ls(X).
120
passive_nlist(X) -> ?LIB_MOD:passive_nlist(X).
121
passive_rename(X) -> ?LIB_MOD:passive_rename(X).
122
passive_delete(X) -> ?LIB_MOD:passive_delete(X).
123
passive_mkdir(X) -> ?LIB_MOD:passive_mkdir(X).
124
passive_send(X) -> ?LIB_MOD:passive_send(X).
125
passive_send_bin(X) -> ?LIB_MOD:passive_send_bin(X).
126
passive_send_chunk(X) -> ?LIB_MOD:passive_send_chunk(X).
127
passive_append(X) -> ?LIB_MOD:passive_append(X).
128
passive_append_bin(X) -> ?LIB_MOD:passive_append_bin(X).
129
passive_append_chunk(X) -> ?LIB_MOD:passive_append_chunk(X).
130
passive_recv(X) -> ?LIB_MOD:passive_recv(X).
131
passive_recv_bin(X) -> ?LIB_MOD:passive_recv_bin(X).
132
passive_recv_chunk(X) -> ?LIB_MOD:passive_recv_chunk(X).
133
passive_type(X) -> ?LIB_MOD:passive_type(X).
134
passive_quote(X) -> ?LIB_MOD:passive_quote(X).
135
passive_ip_v6_disabled(X) -> ?LIB_MOD:passive_ip_v6_disabled(X).
136
active_user(X) -> ?LIB_MOD:active_user(X).
137
active_pwd(X) -> ?LIB_MOD:active_pwd(X).
138
active_cd(X) -> ?LIB_MOD:active_cd(X).
139
active_lcd(X) -> ?LIB_MOD:active_lcd(X).
140
active_ls(X) -> ?LIB_MOD:active_ls(X).
141
active_nlist(X) -> ?LIB_MOD:active_nlist(X).
142
active_rename(X) -> ?LIB_MOD:active_rename(X).
143
active_delete(X) -> ?LIB_MOD:active_delete(X).
144
active_mkdir(X) -> ?LIB_MOD:active_mkdir(X).
145
active_send(X) -> ?LIB_MOD:active_send(X).
146
active_send_bin(X) -> ?LIB_MOD:active_send_bin(X).
147
active_send_chunk(X) -> ?LIB_MOD:active_send_chunk(X).
148
active_append(X) -> ?LIB_MOD:active_append(X).
149
active_append_bin(X) -> ?LIB_MOD:active_append_bin(X).
150
active_append_chunk(X) -> ?LIB_MOD:active_append_chunk(X).
151
active_recv(X) -> ?LIB_MOD:active_recv(X).
152
active_recv_bin(X) -> ?LIB_MOD:active_recv_bin(X).
153
active_recv_chunk(X) -> ?LIB_MOD:active_recv_chunk(X).
154
active_type(X) -> ?LIB_MOD:active_type(X).
155
active_quote(X) -> ?LIB_MOD:active_quote(X).
156
active_ip_v6_disabled(X) -> ?LIB_MOD:active_ip_v6_disabled(X).
157
progress_report_send(X) -> ?LIB_MOD:progress_report_send(X).
158
progress_report_recv(X) -> ?LIB_MOD:progress_report_recv(X).
161
?LIB_MOD:ftpd_fin(Config).