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

« back to all changes in this revision

Viewing changes to lib/megaco/test/megaco_tcp_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
1
%%
2
2
%% %CopyrightBegin%
3
3
%% 
4
 
%% Copyright Ericsson AB 2000-2009. All Rights Reserved.
 
4
%% Copyright Ericsson AB 2000-2010. 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
36
36
%% External exports
37
37
%%----------------------------------------------------------------------
38
38
-export([
39
 
         all/1,
40
 
 
41
 
         start/1,
 
39
         all/0,groups/0,init_per_group/2,end_per_group/2,
42
40
         start_normal/1,
43
41
         start_invalid_opt/1,
44
42
         start_and_stop/1,
45
 
 
46
 
         sending/1,
47
43
         sendreceive/1, 
48
44
         block_unblock/1, 
49
 
 
50
 
         errors/1,
51
45
         socket_failure/1,
52
46
         accept_process/1,
53
47
         accept_supervisor/1,
54
48
         connection_supervisor/1,
55
49
         tcp_server/1, 
56
50
         
57
 
         init_per_testcase/2, fin_per_testcase/2, 
 
51
         init_per_testcase/2, end_per_testcase/2, 
58
52
 
59
53
         t/0, t/1
60
54
        ]).
111
105
 
112
106
 
113
107
%%----------------------------------------------------------------------
114
 
%% Function: fin_per_testcase/2
 
108
%% Function: end_per_testcase/2
115
109
%% Description: 
116
110
%%----------------------------------------------------------------------
117
 
fin_per_testcase(Case, Config) ->
118
 
    megaco_test_lib:fin_per_testcase(Case, Config).
 
111
end_per_testcase(Case, Config) ->
 
112
    megaco_test_lib:end_per_testcase(Case, Config).
119
113
 
120
114
 
121
115
%%======================================================================
122
116
%% Test case definitions
123
117
%%======================================================================
124
 
all(suite) ->
125
 
    [
126
 
     start,
127
 
     sending,
128
 
     errors
129
 
    ].
130
 
 
131
 
start(suite) ->
132
 
    [
133
 
     start_normal,
134
 
     start_invalid_opt,
135
 
     start_and_stop
136
 
    ].
137
 
 
138
 
sending(suite) ->
139
 
    [
140
 
     sendreceive,
141
 
     block_unblock
142
 
    ].
143
 
 
144
 
errors(suite) ->
145
 
    [
146
 
     socket_failure,
147
 
     accept_process,
148
 
     accept_supervisor,
149
 
     connection_supervisor,
150
 
     tcp_server
151
 
    ].
 
118
all() -> 
 
119
    [{group, start}, {group, sending}, {group, errors}].
 
120
 
 
121
groups() -> 
 
122
    [{start, [],
 
123
      [start_normal, start_invalid_opt, start_and_stop]},
 
124
     {sending, [], [sendreceive, block_unblock]},
 
125
     {errors, [],
 
126
      [socket_failure, accept_process, accept_supervisor,
 
127
       connection_supervisor, tcp_server]}].
 
128
 
 
129
init_per_group(_GroupName, Config) ->
 
130
    Config.
 
131
 
 
132
end_per_group(_GroupName, Config) ->
 
133
    Config.
152
134
 
153
135
 
154
136
%% ------------------ start ------------------------