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

« back to all changes in this revision

Viewing changes to lib/common_test/test/ct_misc_1_SUITE_data/beam_1_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
%%
 
2
%% %CopyrightBegin%
 
3
%%
 
4
%% Copyright Ericsson AB 2010. All Rights Reserved.
 
5
%%
 
6
%% The contents of this file are subject to the Erlang Public License,
 
7
%% Version 1.1, (the "License"); you may not use this file except in
 
8
%% compliance with the License. You should have received a copy of the
 
9
%% Erlang Public License along with this software. If not, it can be
 
10
%% retrieved online at http://www.erlang.org/.
 
11
%%
 
12
%% Software distributed under the License is distributed on an "AS IS"
 
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
14
%% the License for the specific language governing rights and limitations
 
15
%% under the License.
 
16
%%
 
17
%% %CopyrightEnd%
 
18
%%
 
19
 
 
20
-module(beam_1_SUITE).
 
21
 
 
22
%% Note: This directive should only be used in test suites.
 
23
-compile(export_all).
 
24
 
 
25
-include_lib("common_test/include/ct.hrl").
 
26
 
 
27
%%--------------------------------------------------------------------
 
28
%% COMMON TEST CALLBACK FUNCTIONS
 
29
%%--------------------------------------------------------------------
 
30
 
 
31
%%--------------------------------------------------------------------
 
32
%% Function: suite() -> Info
 
33
%%
 
34
%% Info = [tuple()]
 
35
%%   List of key/value pairs.
 
36
%%
 
37
%% Description: Returns list of tuples to set default properties
 
38
%%              for the suite.
 
39
%%
 
40
%% Note: The suite/0 function is only meant to be used to return
 
41
%% default data values, not perform any other operations.
 
42
%%--------------------------------------------------------------------
 
43
suite() ->
 
44
    [
 
45
     {timetrap,{seconds,10}}
 
46
    ].
 
47
 
 
48
%%--------------------------------------------------------------------
 
49
%% Function: init_per_suite(Config0) ->
 
50
%%               Config1 | {skip,Reason} | {skip_and_save,Reason,Config1}
 
51
%%
 
52
%% Config0 = Config1 = [tuple()]
 
53
%%   A list of key/value pairs, holding the test case configuration.
 
54
%% Reason = term()
 
55
%%   The reason for skipping the suite.
 
56
%%
 
57
%% Description: Initialization before the suite.
 
58
%%
 
59
%% Note: This function is free to add any key/value pairs to the Config
 
60
%% variable, but should NOT alter/remove any existing entries.
 
61
%%--------------------------------------------------------------------
 
62
init_per_suite(Config) ->
 
63
    Config.
 
64
 
 
65
%%--------------------------------------------------------------------
 
66
%% Function: end_per_suite(Config0) -> void() | {save_config,Config1}
 
67
%%
 
68
%% Config0 = Config1 = [tuple()]
 
69
%%   A list of key/value pairs, holding the test case configuration.
 
70
%%
 
71
%% Description: Cleanup after the suite.
 
72
%%--------------------------------------------------------------------
 
73
end_per_suite(_Config) ->
 
74
    ok.
 
75
 
 
76
%%--------------------------------------------------------------------
 
77
%% Function: init_per_testcase(TestCase, Config0) ->
 
78
%%               Config1 | {skip,Reason} | {skip_and_save,Reason,Config1}
 
79
%%
 
80
%% TestCase = atom()
 
81
%%   Name of the test case that is about to run.
 
82
%% Config0 = Config1 = [tuple()]
 
83
%%   A list of key/value pairs, holding the test case configuration.
 
84
%% Reason = term()
 
85
%%   The reason for skipping the test case.
 
86
%%
 
87
%% Description: Initialization before each test case.
 
88
%%
 
89
%% Note: This function is free to add any key/value pairs to the Config
 
90
%% variable, but should NOT alter/remove any existing entries.
 
91
%%--------------------------------------------------------------------
 
92
init_per_testcase(_TestCase, Config) ->
 
93
    Config.
 
94
 
 
95
%%--------------------------------------------------------------------
 
96
%% Function: end_per_testcase(TestCase, Config0) ->
 
97
%%               void() | {save_config,Config1}
 
98
%%
 
99
%% TestCase = atom()
 
100
%%   Name of the test case that is finished.
 
101
%% Config0 = Config1 = [tuple()]
 
102
%%   A list of key/value pairs, holding the test case configuration.
 
103
%%
 
104
%% Description: Cleanup after each test case.
 
105
%%--------------------------------------------------------------------
 
106
end_per_testcase(_TestCase, _Config) ->
 
107
    ok.
 
108
 
 
109
%%--------------------------------------------------------------------
 
110
%% Function: all() -> TestCases | {skip,Reason}
 
111
%%
 
112
%% TestCases = [TestCase | {sequence,SeqName}]
 
113
%% TestCase = atom()
 
114
%%   Name of a test case.
 
115
%% SeqName = atom()
 
116
%%   Name of a test case sequence.
 
117
%% Reason = term()
 
118
%%   The reason for skipping all test cases.
 
119
%%
 
120
%% Description: Returns the list of test cases that are to be executed.
 
121
%%--------------------------------------------------------------------
 
122
all() ->
 
123
    [tc1, tc2].
 
124
 
 
125
%%--------------------------------------------------------------------
 
126
%% TEST CASES
 
127
%%--------------------------------------------------------------------
 
128
 
 
129
tc1(_Config) ->
 
130
    ct:comment("tc1 executed"),
 
131
    ok.
 
132
 
 
133
tc2(_Config) ->
 
134
    exit('tc2 failed').