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

« back to all changes in this revision

Viewing changes to erts/test/erlexec_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
 
%% 
4
 
%% Copyright Ericsson AB 2007-2009. All Rights Reserved.
5
 
%% 
 
3
%%
 
4
%% Copyright Ericsson AB 2007-2011. All Rights Reserved.
 
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
8
8
%% compliance with the License. You should have received a copy of the
9
9
%% Erlang Public License along with this software. If not, it can be
10
10
%% retrieved online at http://www.erlang.org/.
11
 
%% 
 
11
%%
12
12
%% Software distributed under the License is distributed on an "AS IS"
13
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
14
%% the License for the specific language governing rights and limitations
15
15
%% under the License.
16
 
%% 
 
16
%%
17
17
%% %CopyrightEnd%
18
18
%%
19
19
 
31
31
 
32
32
-define(DEFAULT_TIMEOUT, ?t:minutes(1)).
33
33
 
34
 
-export([all/1, init_per_testcase/2, fin_per_testcase/2]).
35
 
 
36
 
-export([args_file/1, evil_args_file/1, env/1, args_file_env/1, otp_7461/1, otp_7461_remote/1, otp_8209/1]).
37
 
 
38
 
-include("test_server.hrl").
 
34
-export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1, 
 
35
         init_per_group/2,end_per_group/2, 
 
36
         init_per_testcase/2, end_per_testcase/2]).
 
37
 
 
38
-export([args_file/1, evil_args_file/1, env/1, args_file_env/1, otp_7461/1, otp_7461_remote/1, otp_8209/1, zdbbl_dist_buf_busy_limit/1]).
 
39
 
 
40
-include_lib("test_server/include/test_server.hrl").
39
41
    
40
42
 
41
43
init_per_testcase(Case, Config) ->
43
45
    SavedEnv = save_env(),
44
46
    [{testcase, Case}, {watchdog, Dog}, {erl_flags_env, SavedEnv} |Config].
45
47
 
46
 
fin_per_testcase(_Case, Config) ->
 
48
end_per_testcase(_Case, Config) ->
47
49
    Dog = ?config(watchdog, Config),
48
50
    SavedEnv = ?config(erl_flags_env, Config),
49
51
    restore_env(SavedEnv),
51
53
    ?t:timetrap_cancel(Dog),
52
54
    ok.
53
55
 
54
 
all(doc) -> [];
55
 
all(suite) ->
56
 
    [args_file, evil_args_file, env, args_file_env, otp_7461, otp_8209].
57
 
 
 
56
suite() -> [{ct_hooks,[ts_install_cth]}].
 
57
 
 
58
all() -> 
 
59
    [args_file, evil_args_file, env, args_file_env,
 
60
     otp_7461, otp_8209, zdbbl_dist_buf_busy_limit].
 
61
 
 
62
groups() -> 
 
63
    [].
 
64
 
 
65
init_per_suite(Config) ->
 
66
    Config.
 
67
 
 
68
end_per_suite(_Config) ->
 
69
    ok.
 
70
 
 
71
init_per_group(_GroupName, Config) ->
 
72
    Config.
 
73
 
 
74
end_per_group(_GroupName, Config) ->
 
75
    Config.
58
76
 
59
77
otp_8209(doc) ->
60
78
    ["Test that plain first argument does not "
330
348
    io:format("halt order from ~p to node ~p\n",[Pid,node()]),
331
349
    halt().
332
350
 
 
351
zdbbl_dist_buf_busy_limit(doc) ->    
 
352
    ["Check +zdbbl flag"];
 
353
zdbbl_dist_buf_busy_limit(suite) ->
 
354
    [];
 
355
zdbbl_dist_buf_busy_limit(Config) when is_list(Config) ->
 
356
    LimKB = 1122233,
 
357
    LimB = LimKB*1024,
 
358
    ?line {ok,[[PName]]} = init:get_argument(progname),
 
359
    ?line SNameS = "erlexec_test_02",
 
360
    ?line SName = list_to_atom(SNameS++"@"++
 
361
                         hd(tl(string:tokens(atom_to_list(node()),"@")))),
 
362
    ?line Cmd = PName ++ " -sname "++SNameS++" -setcookie "++
 
363
        atom_to_list(erlang:get_cookie()) ++
 
364
        " +zdbbl " ++ integer_to_list(LimKB),
 
365
    ?line open_port({spawn,Cmd},[]),
 
366
    ?line pong = loop_ping(SName,40),
 
367
    ?line LimB = rpc:call(SName,erlang,system_info,[dist_buf_busy_limit]),
 
368
    ?line ok = cleanup_node(SNameS, 10),
 
369
    ok.
333
370
    
334
371
 
335
372
%%