21
21
-module(ftp_SUITE).
23
-include("test_server.hrl").
23
-include_lib("common_test/include/ct.hrl").
24
24
-include("test_server_line.hrl").
26
26
%% Test server specific exports
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]).
31
%% Test cases must be exported.
32
-export([solaris8_test/1,
43
windows_2003_server_test/1,
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
%%--------------------------------------------------------------------
76
["Test the ftp client in the inets application."];
90
windows_2003_server_test,
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}].
119
ticket_tests(suite) ->
120
[{ftp_ticket_test, all}].
60
suite() -> [{ct_hooks, [ts_install_cth]}].
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},
74
{group, windows_xp_test},
75
{group, windows_2003_server_test},
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}]}
97
init_per_group(_GroupName, Config) ->
100
end_per_group(_GroupName, Config) ->
122
106
%%--------------------------------------------------------------------
123
107
%% Function: init_per_suite(Config) -> Config