diff options
author | Anders Svensson <[email protected]> | 2013-02-18 12:47:24 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2013-02-18 19:22:59 +0100 |
commit | b864edd81d648606a996143a99e09a538e21d47a (patch) | |
tree | ac057fd970e7da834a290edd7f4b8f7e2bad8705 /lib/diameter/test/diameter_ct.erl | |
parent | 9e636ec4d8ae12b87fdf4d9bd60403c734b0dead (diff) | |
download | otp-b864edd81d648606a996143a99e09a538e21d47a.tar.gz otp-b864edd81d648606a996143a99e09a538e21d47a.tar.bz2 otp-b864edd81d648606a996143a99e09a538e21d47a.zip |
Add cover target to test/Makefile
Diffstat (limited to 'lib/diameter/test/diameter_ct.erl')
-rw-r--r-- | lib/diameter/test/diameter_ct.erl | 19 |
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() -> |