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

« back to all changes in this revision

Viewing changes to erts/emulator/test/node_container_SUITE.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 2002-2009. All Rights Reserved.
 
4
%% Copyright Ericsson AB 2002-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
29
29
 
30
30
%-define(line_trace, 1).
31
31
 
32
 
-include("test_server.hrl").
 
32
-include_lib("test_server/include/test_server.hrl").
33
33
 
34
34
%-compile(export_all).
35
 
-export([all/1, init_per_testcase/2, fin_per_testcase/2, end_per_suite/1,
 
35
-export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1, 
 
36
         init_per_group/2,end_per_group/2, init_per_testcase/2, 
 
37
         end_per_testcase/2,
36
38
         node_container_refc_check/1]).
37
39
 
38
40
-export([term_to_binary_to_term_eq/1,
55
57
 
56
58
-define(DEFAULT_TIMEOUT, ?t:minutes(10)).
57
59
 
58
 
all(doc) -> [];
59
 
all(suite) ->
60
 
    [term_to_binary_to_term_eq,
61
 
     round_trip_eq,
62
 
     cmp,
63
 
     ref_eq,
64
 
     node_table_gc,
65
 
     dist_link_refc,
66
 
     dist_monitor_refc,
67
 
     node_controller_refc,
68
 
     ets_refc,
69
 
     match_spec_refc,
70
 
     timer_refc,
71
 
     otp_4715,
72
 
     pid_wrap,
73
 
     port_wrap,
74
 
     bad_nc,
75
 
     unique_pid,
76
 
     iter_max_procs].
 
60
suite() -> [{ct_hooks,[ts_install_cth]}].
 
61
 
 
62
all() -> 
 
63
    [term_to_binary_to_term_eq, round_trip_eq, cmp, ref_eq,
 
64
     node_table_gc, dist_link_refc, dist_monitor_refc,
 
65
     node_controller_refc, ets_refc, match_spec_refc,
 
66
     timer_refc, otp_4715, pid_wrap, port_wrap, bad_nc,
 
67
     unique_pid, iter_max_procs].
 
68
 
 
69
groups() -> 
 
70
    [].
 
71
 
 
72
init_per_suite(Config) ->
 
73
    Config.
 
74
 
 
75
end_per_suite(_Config) ->
 
76
    available_internal_state(false).
 
77
 
 
78
init_per_group(_GroupName, Config) ->
 
79
    Config.
 
80
 
 
81
end_per_group(_GroupName, Config) ->
 
82
    Config.
 
83
 
77
84
 
78
85
available_internal_state(Bool) when Bool == true; Bool == false ->
79
86
    case {Bool,
95
102
    available_internal_state(true),
96
103
    [{watchdog, Dog}|Config].
97
104
 
98
 
fin_per_testcase(_Case, Config) when is_list(Config) ->
 
105
end_per_testcase(_Case, Config) when is_list(Config) ->
99
106
    Dog = ?config(watchdog, Config),
100
107
    ?t:timetrap_cancel(Dog),
101
108
    ok.
102
109
 
103
 
end_per_suite(_Config) ->
104
 
    available_internal_state(false).
105
 
 
106
110
%%%
107
111
%%% The test cases -------------------------------------------------------------
108
112
%%%