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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2011-12-15 19:20:10 UTC
  • mfrom: (1.1.18) (3.5.15 sid)
  • mto: (3.5.16 sid)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20111215192010-jnxcfe3tbrpp0big
Tags: 1:15.b-dfsg-1
* New upstream release.
* Upload to experimental because this release breaks external drivers
  API along with ABI, so several applications are to be fixed.
* Removed SSL patch because the old SSL implementation is removed from
  the upstream distribution.
* Removed never used patch which added native code to erlang beam files.
* Removed the erlang-docbuilder binary package because the docbuilder
  application was dropped by upstream.
* Documented dropping ${erlang-docbuilder:Depends} substvar in
  erlang-depends(1) manpage.
* Made erlang-base and erlang-base-hipe provide virtual package
  erlang-abi-15.b (the number means the first erlang version, which
  provides current ABI).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
%%
2
2
%% %CopyrightBegin%
3
3
%% 
4
 
%% Copyright Ericsson AB 2005-2009. All Rights Reserved.
 
4
%% Copyright Ericsson AB 2005-2011. All Rights Reserved.
5
5
%% 
6
6
%% The contents of this file are subject to the Erlang Public License,
7
7
%% Version 1.1, (the "License"); you may not use this file except in
20
20
 
21
21
-module(ftp_SUITE).
22
22
 
23
 
-include("test_server.hrl").
 
23
-include_lib("common_test/include/ct.hrl").
24
24
-include("test_server_line.hrl").
25
25
 
26
26
%% Test server specific exports
27
 
-export([all/1]).
 
27
-export([all/0, suite/0,groups/0,init_per_group/2,end_per_group/2]).
28
28
% -export([init_per_testcase/2, end_per_testcase/2]).
29
29
-export([init_per_suite/1, end_per_suite/1]).
30
30
 
31
 
%% Test cases must be exported.
32
 
-export([solaris8_test/1,
33
 
         solaris9_test/1,
34
 
         solaris10_test/1,
35
 
         linux_x86_test/1,
36
 
         linux_ppc_test/1,
37
 
         macosx_x86_test/1,
38
 
         macosx_ppc_test/1,
39
 
         openbsd_test/1,
40
 
         freebsd_test/1,
41
 
         netbsd_test/1,
42
 
         windows_xp_test/1,
43
 
         windows_2003_server_test/1,
44
 
         ticket_tests/1]).
45
 
 
46
31
-define(FTP_USER, "anonymous").
47
32
-define(FTP_PASS, passwd()).
48
33
-define(FTP_PORT, 21).
72
57
%% Description: Returns documentation/test cases in this test suite
73
58
%%              or a skip tuple if the platform is not supported.  
74
59
%%--------------------------------------------------------------------
75
 
all(doc) ->
76
 
    ["Test the ftp client in the inets application."];
77
 
all(suite) ->
78
 
    [
79
 
     solaris8_test,
80
 
     solaris9_test,
81
 
     solaris10_test,
82
 
     linux_x86_test,
83
 
     linux_ppc_test,
84
 
     macosx_x86_test,
85
 
     macosx_ppc_test,
86
 
     openbsd_test,
87
 
     freebsd_test,
88
 
     netbsd_test,
89
 
     windows_xp_test,
90
 
     windows_2003_server_test,
91
 
     ticket_tests
92
 
    ].
93
 
 
94
 
solaris8_test(suite) ->
95
 
    [{ftp_solaris8_sparc_test,all}].
96
 
solaris9_test(suite) ->
97
 
    [{ftp_solaris9_sparc_test,all}].
98
 
solaris10_test(suite) ->
99
 
    [{ftp_solaris10_sparc_test,all}, {ftp_solaris10_x86_test,all}].
100
 
linux_x86_test(suite) ->
101
 
    [{ftp_linux_x86_test,all}].
102
 
linux_ppc_test(suite) ->
103
 
    [{ftp_linux_ppc_test,all}].
104
 
macosx_x86_test(suite) ->
105
 
    [{ftp_macosx_x86_test,all}].
106
 
macosx_ppc_test(suite) ->
107
 
    [{ftp_macosx_ppc_test,all}].
108
 
openbsd_test(suite) ->
109
 
    [{ftp_openbsd_x86_test,all}].
110
 
freebsd_test(suite) ->
111
 
    [{ftp_freebsd_x86_test,all}].
112
 
netbsd_test(suite) ->
113
 
    [{ftp_netbsd_x86_test,all}].
114
 
windows_xp_test(suite) ->
115
 
    [{ftp_windows_xp_test,all}].
116
 
windows_2003_server_test(suite) ->
117
 
    [{ftp_windows_2003_server_test,all}].
118
 
 
119
 
ticket_tests(suite) ->
120
 
    [{ftp_ticket_test, all}].
 
60
suite() -> [{ct_hooks, [ts_install_cth]}].
 
61
 
 
62
all() -> 
 
63
    [
 
64
     {group, solaris8_test},   
 
65
     {group, solaris9_test},
 
66
     {group, solaris10_test}, 
 
67
     {group, linux_x86_test},
 
68
     {group, linux_ppc_test}, 
 
69
     {group, macosx_x86_test},
 
70
     {group, macosx_ppc_test}, 
 
71
     {group, openbsd_test},
 
72
     {group, freebsd_test}, 
 
73
     {group, netbsd_test},
 
74
     {group, windows_xp_test},
 
75
     {group, windows_2003_server_test},
 
76
     {group, ticket_tests}
 
77
    ].
 
78
 
 
79
groups() -> 
 
80
    [
 
81
     {solaris8_test,            [], [{ftp_solaris8_sparc_test, all}]},
 
82
     {solaris9_test,            [], [{ftp_solaris9_sparc_test, all}]},
 
83
     {solaris10_test,           [], [{ftp_solaris10_sparc_test, all},
 
84
                                     {ftp_solaris10_x86_test, all}]},
 
85
     {linux_x86_test,           [], [{ftp_linux_x86_test, all}]},
 
86
     {linux_ppc_test,           [], [{ftp_linux_ppc_test, all}]},
 
87
     {macosx_x86_test,          [], [{ftp_macosx_x86_test, all}]},
 
88
     {macosx_ppc_test,          [], [{ftp_macosx_ppc_test, all}]},
 
89
     {openbsd_test,             [], [{ftp_openbsd_x86_test, all}]},
 
90
     {freebsd_test,             [], [{ftp_freebsd_x86_test, all}]},
 
91
     {netbsd_test,              [], [{ftp_netbsd_x86_test, all}]},
 
92
     {windows_xp_test,          [], [{ftp_windows_xp_test, all}]},
 
93
     {windows_2003_server_test, [], [{ftp_windows_2003_server_test, all}]},
 
94
     {ticket_tests,             [], [{ftp_ticket_test, all}]}
 
95
    ].
 
96
 
 
97
init_per_group(_GroupName, Config) ->
 
98
        Config.
 
99
 
 
100
end_per_group(_GroupName, Config) ->
 
101
        Config.
 
102
 
 
103
 
 
104
 
121
105
 
122
106
%%--------------------------------------------------------------------
123
107
%% Function: init_per_suite(Config) -> Config