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

« back to all changes in this revision

Viewing changes to erts/emulator/test/pseudoknot_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 2001-2009. All Rights Reserved.
 
4
%% Copyright Ericsson AB 2001-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
19
19
 
20
20
-module(pseudoknot_SUITE).
21
21
 
22
 
-export([all/1,test/1]).
23
 
 
24
 
all(suite) -> [test].
 
22
-export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1, 
 
23
         init_per_group/2,end_per_group/2,test/1]).
 
24
 
 
25
suite() -> [{ct_hooks,[ts_install_cth]}].
 
26
 
 
27
all() -> 
 
28
    [test].
 
29
 
 
30
groups() -> 
 
31
    [].
 
32
 
 
33
init_per_suite(Config) ->
 
34
    Config.
 
35
 
 
36
end_per_suite(_Config) ->
 
37
    ok.
 
38
 
 
39
init_per_group(_GroupName, Config) ->
 
40
    Config.
 
41
 
 
42
end_per_group(_GroupName, Config) ->
 
43
    Config.
 
44
 
25
45
    
26
46
test(Config) when is_list(Config) ->
27
47
    statistics(runtime),
3274
3294
    maximum(map(sol_most_distant_atom, Sols)).
3275
3295
 
3276
3296
maximum([H|T]) ->
3277
 
    max(T,H).
 
3297
    max1(T,H).
3278
3298
 
3279
 
max([H|T],M) when is_float(H), is_float(M), H > M ->
3280
 
    max(T,H);
3281
 
max([_|T],M) ->
3282
 
    max(T,M);
3283
 
max([],M) -> M.
 
3299
max1([H|T],M) when is_float(H), is_float(M), H > M ->
 
3300
    max1(T,H);
 
3301
max1([_|T],M) ->
 
3302
    max1(T,M);
 
3303
max1([],M) -> M.
3284
3304
 
3285
3305
map(_Func,[]) -> [];
3286
3306
map(Func,[H|T]) ->