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_solaris9_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 9 sparc ").
30
%% Test server callback functions
31
%%--------------------------------------------------------------------
32
%% Function: init_per_suite(Config) -> Config
34
%% A list of key/value pairs, holding the test case configuration.
35
%% Description: Initiation before the whole suite
37
%% Note: This function is free to add any key/value pairs to the Config
38
%% variable, but should NOT alter/remove any existing entries.
39
%%--------------------------------------------------------------------
40
init_per_suite(Config) ->
41
{File, NewFile} = ?LIB_MOD:test_filenames(),
42
NewConfig = [{file, File}, {new_file, NewFile} | Config],
43
?LIB_MOD:ftpd_init(solaris9_sparc, NewConfig).
45
%%--------------------------------------------------------------------
46
%% Function: end_per_suite(Config) -> _
48
%% A list of key/value pairs, holding the test case configuration.
49
%% Description: Cleanup after the whole suite
50
%%--------------------------------------------------------------------
51
end_per_suite(Config) ->
52
?LIB_MOD:ftpd_fin(Config).
54
%%--------------------------------------------------------------------
55
%% Function: init_per_testcase(TestCase, Config) -> Config
57
%% Name of the test case that is about to be run.
59
%% A list of key/value pairs, holding the test case configuration.
61
%% Description: Initiation before each test case
63
%% Note: This function is free to add any key/value pairs to the Config
64
%% variable, but should NOT alter/remove any existing entries.
65
%% Description: Initiation before each test case
66
%%--------------------------------------------------------------------
67
init_per_testcase(Case, Config) ->
68
ftp_suite_lib:init_per_testcase(Case, Config).
69
%%--------------------------------------------------------------------
70
%% Function: end_per_testcase(TestCase, Config) -> _
72
%% Name of the test case that is about to be run.
74
%% A list of key/value pairs, holding the test case configuration.
75
%% Description: Cleanup after each test case
76
%%--------------------------------------------------------------------
77
end_per_testcase(Case, Config) ->
78
ftp_suite_lib:end_per_testcase(Case, Config).
80
%%--------------------------------------------------------------------
81
%% Function: all(Clause) -> TestCases
82
%% Clause - atom() - suite | doc
85
%% Name of a test case.
86
%% Description: Returns a list of all test cases in this test suite
87
%%--------------------------------------------------------------------
89
[open, open_port, {group, passive}, {group, active},
90
api_missuse, not_owner, {group, progress_report}].
93
[{passive, [], ftp_suite_lib:passive(suite)},
94
{active, [], ftp_suite_lib:active(suite)},
96
ftp_suite_lib:progress_report(suite)}].
98
init_per_group(_GroupName, Config) ->
101
end_per_group(_GroupName, Config) ->
105
%% Test cases starts here.
107
open(X) -> ?CASE_WRAPPER(?PLATFORM,X,fun ?LIB_MOD:open/1).
108
open_port(X) -> ?CASE_WRAPPER(?PLATFORM,X,fun ?LIB_MOD:open_port/1).
109
api_missuse(X) -> ?CASE_WRAPPER(?PLATFORM,X,fun ?LIB_MOD:api_missuse/1).
110
not_owner(X) -> ?CASE_WRAPPER(?PLATFORM,X,fun ?LIB_MOD:not_owner/1).
112
passive_user(X) -> ?LIB_MOD:passive_user(X).
113
passive_pwd(X) -> ?LIB_MOD:passive_pwd(X).
114
passive_cd(X) -> ?LIB_MOD:passive_cd(X).
115
passive_lcd(X) -> ?LIB_MOD:passive_lcd(X).
116
passive_ls(X) -> ?LIB_MOD:passive_ls(X).
117
passive_nlist(X) -> ?LIB_MOD:passive_nlist(X).
118
passive_rename(X) -> ?LIB_MOD:passive_rename(X).
119
passive_delete(X) -> ?LIB_MOD:passive_delete(X).
120
passive_mkdir(X) -> ?LIB_MOD:passive_mkdir(X).
121
passive_send(X) -> ?LIB_MOD:passive_send(X).
122
passive_send_bin(X) -> ?LIB_MOD:passive_send_bin(X).
123
passive_send_chunk(X) -> ?LIB_MOD:passive_send_chunk(X).
124
passive_append(X) -> ?LIB_MOD:passive_append(X).
125
passive_append_bin(X) -> ?LIB_MOD:passive_append_bin(X).
126
passive_append_chunk(X) -> ?LIB_MOD:passive_append_chunk(X).
127
passive_recv(X) -> ?LIB_MOD:passive_recv(X).
128
passive_recv_bin(X) -> ?LIB_MOD:passive_recv_bin(X).
129
passive_recv_chunk(X) -> ?LIB_MOD:passive_recv_chunk(X).
130
passive_type(X) -> ?LIB_MOD:passive_type(X).
131
passive_quote(X) -> ?LIB_MOD:passive_quote(X).
132
passive_ip_v6_disabled(X) -> ?LIB_MOD:passive_ip_v6_disabled(X).
133
active_user(X) -> ?LIB_MOD:active_user(X).
134
active_pwd(X) -> ?LIB_MOD:active_pwd(X).
135
active_cd(X) -> ?LIB_MOD:active_cd(X).
136
active_lcd(X) -> ?LIB_MOD:active_lcd(X).
137
active_ls(X) -> ?LIB_MOD:active_ls(X).
138
active_nlist(X) -> ?LIB_MOD:active_nlist(X).
139
active_rename(X) -> ?LIB_MOD:active_rename(X).
140
active_delete(X) -> ?LIB_MOD:active_delete(X).
141
active_mkdir(X) -> ?LIB_MOD:active_mkdir(X).
142
active_send(X) -> ?LIB_MOD:active_send(X).
143
active_send_bin(X) -> ?LIB_MOD:active_send_bin(X).
144
active_send_chunk(X) -> ?LIB_MOD:active_send_chunk(X).
145
active_append(X) -> ?LIB_MOD:active_append(X).
146
active_append_bin(X) -> ?LIB_MOD:active_append_bin(X).
147
active_append_chunk(X) -> ?LIB_MOD:active_append_chunk(X).
148
active_recv(X) -> ?LIB_MOD:active_recv(X).
149
active_recv_bin(X) -> ?LIB_MOD:active_recv_bin(X).
150
active_recv_chunk(X) -> ?LIB_MOD:active_recv_chunk(X).
151
active_type(X) -> ?LIB_MOD:active_type(X).
152
active_quote(X) -> ?LIB_MOD:active_quote(X).
153
active_ip_v6_disabled(X) -> ?LIB_MOD:active_ip_v6_disabled(X).
154
progress_report_send(X) -> ?LIB_MOD:progress_report_send(X).
155
progress_report_recv(X) -> ?LIB_MOD:progress_report_recv(X).
158
?LIB_MOD:ftpd_fin(Config).