~clint-fewbar/ubuntu/precise/erlang/merge-15b

« back to all changes in this revision

Viewing changes to lib/tools/test/tools_SUITE.erl

  • Committer: Package Import Robot
  • Author(s): Sergei Golovan
  • Date: 2011-12-15 19:20:10 UTC
  • mfrom: (1.1.18) (3.5.15 sid)
  • mto: (3.5.16 sid)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: package-import@ubuntu.com-20111215192010-jnxcfe3tbrpp0big
Tags: 1:15.b-dfsg-1
* New upstream release.
* Upload to experimental because this release breaks external drivers
  API along with ABI, so several applications are to be fixed.
* Removed SSL patch because the old SSL implementation is removed from
  the upstream distribution.
* Removed never used patch which added native code to erlang beam files.
* Removed the erlang-docbuilder binary package because the docbuilder
  application was dropped by upstream.
* Documented dropping ${erlang-docbuilder:Depends} substvar in
  erlang-depends(1) manpage.
* Made erlang-base and erlang-base-hipe provide virtual package
  erlang-abi-15.b (the number means the first erlang version, which
  provides current ABI).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
%%
2
2
%% %CopyrightBegin%
3
3
%%
4
 
%% Copyright Ericsson AB 1997-2010. All Rights Reserved.
 
4
%% Copyright Ericsson AB 1997-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
18
18
%%
19
19
-module(tools_SUITE).
20
20
 
21
 
-include("test_server.hrl").
 
21
-include_lib("test_server/include/test_server.hrl").
22
22
 
23
23
%% Default timetrap timeout (set in init_per_testcase).
24
24
-define(default_timeout, ?t:minutes(1)).
25
25
-define(application, tools).
26
26
 
27
27
%% Test server specific exports
28
 
-export([all/1]).
29
 
-export([init_per_testcase/2, fin_per_testcase/2]).
 
28
-export([all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1, 
 
29
         init_per_group/2,end_per_group/2]).
 
30
-export([init_per_testcase/2, end_per_testcase/2]).
30
31
 
31
32
%% Test cases must be exported.
32
33
-export([app_test/1]).
33
34
 
34
 
all(doc) ->
35
 
    [];
36
 
all(suite) ->
 
35
suite() -> [{ct_hooks,[ts_install_cth]}].
 
36
 
 
37
all() -> 
37
38
    [app_test].
38
39
 
 
40
groups() -> 
 
41
    [].
 
42
 
 
43
init_per_suite(Config) ->
 
44
    Config.
 
45
 
 
46
end_per_suite(_Config) ->
 
47
    ok.
 
48
 
 
49
init_per_group(_GroupName, Config) ->
 
50
    Config.
 
51
 
 
52
end_per_group(_GroupName, Config) ->
 
53
    Config.
 
54
 
 
55
 
39
56
init_per_testcase(_Case, Config) ->
40
57
    ?line Dog=test_server:timetrap(?default_timeout),
41
58
    [{watchdog, Dog}|Config].
42
 
fin_per_testcase(_Case, Config) ->
 
59
end_per_testcase(_Case, Config) ->
43
60
    Dog=?config(watchdog, Config),
44
61
    test_server:timetrap_cancel(Dog),
45
62
    ok.