~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to lib/inets/test/ftp_solaris9_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_solaris9_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 9 sparc ").
 
30
%% Test server callback functions
 
31
%%--------------------------------------------------------------------
 
32
%% Function: init_per_suite(Config) -> Config
 
33
%% Config - [tuple()]
 
34
%%   A list of key/value pairs, holding the test case configuration.
 
35
%% Description: Initiation before the whole suite
 
36
%%
 
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).
 
44
 
 
45
%%--------------------------------------------------------------------
 
46
%% Function: end_per_suite(Config) -> _
 
47
%% Config - [tuple()]
 
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).
 
53
 
 
54
%%--------------------------------------------------------------------
 
55
%% Function: init_per_testcase(TestCase, Config) -> Config
 
56
%% Case - atom()
 
57
%%   Name of the test case that is about to be run.
 
58
%% Config - [tuple()]
 
59
%%   A list of key/value pairs, holding the test case configuration.
 
60
%%
 
61
%% Description: Initiation before each test case
 
62
%%
 
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) -> _
 
71
%% Case - atom()
 
72
%%   Name of the test case that is about to be run.
 
73
%% Config - [tuple()]
 
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).
 
79
 
 
80
%%--------------------------------------------------------------------
 
81
%% Function: all(Clause) -> TestCases
 
82
%% Clause - atom() - suite | doc
 
83
%% TestCases - [Case] 
 
84
%% Case - atom()
 
85
%%   Name of a test case.
 
86
%% Description: Returns a list of all test cases in this test suite
 
87
%%--------------------------------------------------------------------
 
88
all() -> 
 
89
    [open, open_port, {group, passive}, {group, active},
 
90
     api_missuse, not_owner, {group, progress_report}].
 
91
 
 
92
groups() -> 
 
93
    [{passive, [], ftp_suite_lib:passive(suite)},
 
94
     {active, [], ftp_suite_lib:active(suite)},
 
95
     {progress_report, [],
 
96
      ftp_suite_lib:progress_report(suite)}].
 
97
 
 
98
init_per_group(_GroupName, Config) ->
 
99
    Config.
 
100
 
 
101
end_per_group(_GroupName, Config) ->
 
102
    Config.
 
103
 
 
104
 
 
105
%% Test cases starts here.
 
106
 
 
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).
 
111
 
 
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).
 
156
 
 
157
fin(Config) ->
 
158
    ?LIB_MOD:ftpd_fin(Config).