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

« back to all changes in this revision

Viewing changes to lib/megaco/test/megaco_mess_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 1999-2009. All Rights Reserved.
 
4
%% Copyright Ericsson AB 1999-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
34
34
 
35
35
%% -compile(export_all).
36
36
-export([
37
 
         all/1, 
 
37
         all/0,groups/0,init_per_group/2,end_per_group/2, 
38
38
         init_per_testcase/2, 
39
 
         fin_per_testcase/2,
 
39
         end_per_testcase/2,
40
40
 
41
41
         connect/1,
42
42
 
43
 
         request_and_reply/1,
 
43
        
44
44
         request_and_reply_plain/1,
45
45
         request_and_no_reply/1,
46
46
         request_and_reply_pending_ack_no_pending/1,
52
52
         request_and_reply_and_late_ack/1,
53
53
         trans_req_and_reply_and_req/1, 
54
54
         
55
 
         pending_ack/1,
 
55
        
56
56
         pending_ack_plain/1,
57
57
         request_and_pending_and_late_reply/1, 
58
58
         
59
59
         dist/1,
60
60
         
61
 
         tickets/1,
 
61
        
62
62
         otp_4359/1,
63
63
         otp_4836/1,
64
64
         otp_5805/1,
67
67
         otp_6253/1,
68
68
         otp_6275/1,
69
69
         otp_6276/1,
70
 
         otp_6442/1,
 
70
        
71
71
         otp_6442_resend_request1/1,
72
72
         otp_6442_resend_request2/1,
73
73
         otp_6442_resend_reply1/1,
74
74
         otp_6442_resend_reply2/1,
75
 
         otp_6865/1, 
 
75
         
76
76
         otp_6865_request_and_reply_plain_extra1/1,
77
77
         otp_6865_request_and_reply_plain_extra2/1, 
78
78
         otp_7189/1, 
79
79
         otp_7259/1, 
80
80
         otp_7713/1,
81
 
         otp_8183/1, 
 
81
         
82
82
         otp_8183_request1/1, 
83
83
         otp_8212/1
84
84
        ]).
337
337
    C = lists:keydelete(tc_timeout, 1, Config),
338
338
    megaco_test_lib:init_per_testcase(Case, [{tc_timeout, min(1)} |C]).
339
339
 
340
 
% fin_per_testcase(pending_ack = Case, Config) ->
 
340
% end_per_testcase(pending_ack = Case, Config) ->
341
341
%     erase(dbg),
342
 
%     megaco_test_lib:fin_per_testcase(Case, Config);
343
 
fin_per_testcase(Case, Config) ->
344
 
    megaco_test_lib:fin_per_testcase(Case, Config).
 
342
%     megaco_test_lib:end_per_testcase(Case, Config);
 
343
end_per_testcase(Case, Config) ->
 
344
    megaco_test_lib:end_per_testcase(Case, Config).
345
345
 
346
346
 
347
347
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
348
348
 
349
 
all(suite) ->
350
 
    [
351
 
     connect,
352
 
     request_and_reply,
353
 
     pending_ack,
354
 
     dist,
355
 
 
356
 
     %% Tickets last
357
 
     tickets
358
 
    ].
359
 
 
360
 
request_and_reply(suite) ->
361
 
    [
362
 
     request_and_reply_plain,
363
 
     request_and_no_reply,
364
 
     request_and_reply_pending_ack_no_pending,
365
 
     request_and_reply_pending_ack_one_pending,
366
 
     single_trans_req_and_reply,
367
 
     single_trans_req_and_reply_sendopts,
368
 
     request_and_reply_and_ack,
369
 
     request_and_reply_and_no_ack,
370
 
     request_and_reply_and_late_ack,
371
 
     trans_req_and_reply_and_req
372
 
    ].
373
 
 
374
 
pending_ack(suite) ->
375
 
    [
376
 
     pending_ack_plain,
377
 
     request_and_pending_and_late_reply
378
 
    ].
379
 
 
380
 
tickets(suite) ->
381
 
    [
382
 
     otp_4359,
383
 
     otp_4836,
384
 
     otp_5805,
385
 
     otp_5881,
386
 
     otp_5887,
387
 
     otp_6253,
388
 
     otp_6275,
389
 
     otp_6276,
390
 
     otp_6442,
391
 
     otp_6865,
392
 
     otp_7189,
393
 
     otp_7259,
394
 
     otp_7713,
395
 
     otp_8183,
396
 
     otp_8212
397
 
    ].
398
 
 
399
 
otp_6442(suite) ->
400
 
    [
401
 
     otp_6442_resend_request1, 
402
 
     otp_6442_resend_request2, 
403
 
     otp_6442_resend_reply1, 
404
 
     otp_6442_resend_reply2
405
 
    ].
406
 
 
407
 
otp_6865(suite) ->
408
 
    [
409
 
     otp_6865_request_and_reply_plain_extra1,
410
 
     otp_6865_request_and_reply_plain_extra2
411
 
    ].
412
 
 
413
 
otp_8183(suite) ->
414
 
    [
415
 
     otp_8183_request1
416
 
    ].
 
349
all() -> 
 
350
    [connect, {group, request_and_reply},
 
351
     {group, pending_ack}, dist, {group, tickets}].
 
352
 
 
353
groups() -> 
 
354
    [{request_and_reply, [],
 
355
      [request_and_reply_plain, request_and_no_reply,
 
356
       request_and_reply_pending_ack_no_pending,
 
357
       request_and_reply_pending_ack_one_pending,
 
358
       single_trans_req_and_reply,
 
359
       single_trans_req_and_reply_sendopts,
 
360
       request_and_reply_and_ack, request_and_reply_and_no_ack,
 
361
       request_and_reply_and_late_ack,
 
362
       trans_req_and_reply_and_req]},
 
363
     {pending_ack, [],
 
364
      [pending_ack_plain,
 
365
       request_and_pending_and_late_reply]},
 
366
     {tickets, [],
 
367
      [otp_4359, otp_4836, otp_5805, otp_5881, otp_5887,
 
368
       otp_6253, otp_6275, otp_6276, {group, otp_6442},
 
369
       {group, otp_6865}, otp_7189, otp_7259, otp_7713,
 
370
       {group, otp_8183}, otp_8212]},
 
371
     {otp_6442, [],
 
372
      [otp_6442_resend_request1, otp_6442_resend_request2,
 
373
       otp_6442_resend_reply1, otp_6442_resend_reply2]},
 
374
     {otp_6865, [],
 
375
      [otp_6865_request_and_reply_plain_extra1,
 
376
       otp_6865_request_and_reply_plain_extra2]},
 
377
     {otp_8183, [], [otp_8183_request1]}].
 
378
 
 
379
init_per_group(_GroupName, Config) ->
 
380
    Config.
 
381
 
 
382
end_per_group(_GroupName, Config) ->
 
383
    Config.
417
384
 
418
385
 
419
386
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%