aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/diameter_ct.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2013-02-19 16:03:38 +0100
committerAnders Svensson <[email protected]>2013-02-19 16:03:38 +0100
commitf6f7f67b60b3b67e79a2a4d23542bf5c74542fd3 (patch)
tree1bc6dddc3a0911dfb8b53cbbaeeb0659ead2348e /lib/diameter/test/diameter_ct.erl
parente6613acf5a29c882d4673c6a8371e03523f9590c (diff)
parent44023a32d66a0eb98f3c7bd50fa1407ac4ffdb5a (diff)
downloadotp-f6f7f67b60b3b67e79a2a4d23542bf5c74542fd3.tar.gz
otp-f6f7f67b60b3b67e79a2a4d23542bf5c74542fd3.tar.bz2
otp-f6f7f67b60b3b67e79a2a4d23542bf5c74542fd3.zip
Merge branch 'anders/diameter/R16B_release/OTP-10835'
* anders/diameter/R16B_release/OTP-10835: vsn -> 1.4.1 Update appup for diameter-1.4.1 in R16B Add cover target to test/Makefile Make tweaks Remove dialyzer nowarn_unused_function workaround
Diffstat (limited to 'lib/diameter/test/diameter_ct.erl')
-rw-r--r--lib/diameter/test/diameter_ct.erl19
1 files changed, 13 insertions, 6 deletions
diff --git a/lib/diameter/test/diameter_ct.erl b/lib/diameter/test/diameter_ct.erl
index ded50bf6c5..1697287a22 100644
--- a/lib/diameter/test/diameter_ct.erl
+++ b/lib/diameter/test/diameter_ct.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2010-2012. All Rights Reserved.
+%% Copyright Ericsson AB 2010-2013. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -23,16 +23,23 @@
%% Module used to run suites from Makefile.
%%
--export([run/1]).
+-export([run/1,
+ cover/0]).
%% The makefile looks for signs of failure so ignore the ct:run_test/1
%% return value.
-run([Suite]) ->
+run(Suites) ->
+ ct_run([{suite, Suites}]).
+
+cover() ->
+ ct_run([{spec, "./testspec"}]).
+
+ct_run(Opts) ->
Start = info(),
- ct:run_test([{suite, Suite},
- {logdir, "./log"},
- {auto_compile, false}]),
+ ct:run_test([{logdir, "./log"},
+ {auto_compile, false}
+ | Opts]),
info(Start , info()).
info() ->