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

« back to all changes in this revision

Viewing changes to lib/inets/test/ftp_solaris10_sparc_test.erl

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%%
 
2
%% %CopyrightBegin%
 
3
%% 
 
4
%% Copyright Ericsson AB 2005-2010. All Rights Reserved.
 
5
%% 
 
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/.
 
11
%% 
 
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
 
15
%% under the License.
 
16
%% 
 
17
%% %CopyrightEnd%
 
18
%%
 
19
%%
 
20
 
 
21
-module(ftp_solaris10_sparc_test).
 
22
 
 
23
-compile(export_all).
 
24
 
 
25
-include_lib("common_test/include/ct.hrl").
 
26
 
 
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 ").
 
30
 
 
31
 
 
32
%% Test server callback functions
 
33
%%--------------------------------------------------------------------
 
34
%% Function: init_per_suite(Config) -> Config
 
35
%% Config - [tuple()]
 
36
%%   A list of key/value pairs, holding the test case configuration.
 
37
%% Description: Initiation before the whole suite
 
38
%%
 
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).
 
46
 
 
47
%%--------------------------------------------------------------------
 
48
%% Function: end_per_suite(Config) -> _
 
49
%% Config - [tuple()]
 
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).
 
55
 
 
56
%%--------------------------------------------------------------------
 
57
%% Function: init_per_testcase(TestCase, Config) -> Config
 
58
%% Case - atom()
 
59
%%   Name of the test case that is about to be run.
 
60
%% Config - [tuple()]
 
61
%%   A list of key/value pairs, holding the test case configuration.
 
62
%%
 
63
%% Description: Initiation before each test case
 
64
%%
 
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) -> _
 
73
%% Case - atom()
 
74
%%   Name of the test case that is about to be run.
 
75
%% Config - [tuple()]
 
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).
 
81
 
 
82
%%--------------------------------------------------------------------
 
83
%% Function: all(Clause) -> TestCases
 
84
%% Clause - atom() - suite | doc
 
85
%% TestCases - [Case] 
 
86
%% Case - atom()
 
87
%%   Name of a test case.
 
88
%% Description: Returns a list of all test cases in this test suite
 
89
%%--------------------------------------------------------------------
 
90
all() -> 
 
91
    [open, open_port, {group, passive}, {group, active},
 
92
     api_missuse, not_owner, {group, progress_report}].
 
93
 
 
94
groups() -> 
 
95
    [{passive, [], ftp_suite_lib:passive(suite)},
 
96
     {active, [], ftp_suite_lib:active(suite)},
 
97
     {progress_report, [],
 
98
      ftp_suite_lib:progress_report(suite)}].
 
99
 
 
100
init_per_group(_GroupName, Config) ->
 
101
    Config.
 
102
 
 
103
end_per_group(_GroupName, Config) ->
 
104
    Config.
 
105
 
 
106
 
 
107
%% Test cases starts here.
 
108
%%--------------------------------------------------------------------
 
109
 
 
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).
 
114
 
 
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).
 
159
 
 
160
fin(Config) ->
 
161
    ?LIB_MOD:ftpd_fin(Config).