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

« back to all changes in this revision

Viewing changes to lib/dialyzer/test/r9c_tests_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
%% ATTENTION!
 
2
%% This is an automatically generated file. Do not edit.
 
3
%% Use './remake' script to refresh it if needed.
 
4
%% All Dialyzer options should be defined in dialyzer_options
 
5
%% file.
 
6
 
 
7
-module(r9c_tests_SUITE).
 
8
 
 
9
-include("ct.hrl").
 
10
-include("dialyzer_test_constants.hrl").
 
11
 
 
12
-export([suite/0, init_per_suite/0, init_per_suite/1,
 
13
         end_per_suite/1, all/0]).
 
14
-export([r9c_tests_SUITE_consistency/1, asn1/1, inets/1, mnesia/1]).
 
15
 
 
16
suite() ->
 
17
  [{timetrap, {minutes, 20}}].
 
18
 
 
19
init_per_suite() ->
 
20
  [{timetrap, ?plt_timeout}].
 
21
init_per_suite(Config) ->
 
22
  OutDir = ?config(priv_dir, Config),
 
23
  case dialyzer_common:check_plt(OutDir) of
 
24
    fail -> {skip, "Plt creation/check failed."};
 
25
    ok -> [{dialyzer_options, [{defines,[{vsn,42}]}]}|Config]
 
26
  end.
 
27
 
 
28
end_per_suite(_Config) ->
 
29
  ok.
 
30
 
 
31
all() ->
 
32
  [r9c_tests_SUITE_consistency,asn1,inets,mnesia].
 
33
 
 
34
dialyze(Config, TestCase) ->
 
35
  Opts = ?config(dialyzer_options, Config),
 
36
  Dir = ?config(data_dir, Config),
 
37
  OutDir = ?config(priv_dir, Config),
 
38
  dialyzer_common:check(TestCase, Opts, Dir, OutDir).
 
39
 
 
40
r9c_tests_SUITE_consistency(Config) ->
 
41
  Dir = ?config(data_dir, Config),
 
42
  case dialyzer_common:new_tests(Dir, all()) of
 
43
    []  -> ok;
 
44
    New -> ct:fail({missing_tests,New})
 
45
  end.
 
46
 
 
47
asn1(Config) ->
 
48
  case dialyze(Config, asn1) of
 
49
    'same' -> 'same';
 
50
    Error  -> ct:fail(Error)
 
51
  end.
 
52
 
 
53
inets(Config) ->
 
54
  case dialyze(Config, inets) of
 
55
    'same' -> 'same';
 
56
    Error  -> ct:fail(Error)
 
57
  end.
 
58
 
 
59
mnesia(Config) ->
 
60
  case dialyze(Config, mnesia) of
 
61
    'same' -> 'same';
 
62
    Error  -> ct:fail(Error)
 
63
  end.
 
64