diff options
Diffstat (limited to 'lib/common_test/test/ct_netconfc_SUITE.erl')
| -rw-r--r-- | lib/common_test/test/ct_netconfc_SUITE.erl | 31 | 
1 files changed, 19 insertions, 12 deletions
diff --git a/lib/common_test/test/ct_netconfc_SUITE.erl b/lib/common_test/test/ct_netconfc_SUITE.erl index c89a4cdabe..2959f77087 100644 --- a/lib/common_test/test/ct_netconfc_SUITE.erl +++ b/lib/common_test/test/ct_netconfc_SUITE.erl @@ -1,7 +1,7 @@  %%  %% %CopyrightBegin%  %% -%% Copyright Ericsson AB 2009-2012. All Rights Reserved. +%% Copyright Ericsson AB 2009-2014. 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 @@ -63,7 +63,8 @@ suite() -> [{ct_hooks,[ts_install_cth]}].  all() ->      [ -     default +     netconfc1_SUITE, +     netconfc_remote_SUITE      ].  %%-------------------------------------------------------------------- @@ -72,14 +73,21 @@ all() ->  %%%-----------------------------------------------------------------  %%% -default(Config) when is_list(Config) -> +netconfc1_SUITE(Config) when is_list(Config) ->      DataDir = ?config(data_dir, Config),      Suite = filename:join(DataDir, "netconfc1_SUITE"),      CfgFile = filename:join(DataDir, "netconfc1.cfg"),      {Opts,ERPid} = setup([{suite,Suite},{config,CfgFile}, -			  {label,default}], Config), +			  {label,netconfc1_SUITE}], Config), -    ok = execute(default, Opts, ERPid, Config). +    ok = execute(netconfc1_SUITE, Opts, ERPid, Config). + +netconfc_remote_SUITE(Config) when is_list(Config) -> +    DataDir = ?config(data_dir, Config), +    Suite = filename:join(DataDir, "netconfc_remote_SUITE"), +    {Opts,ERPid} = setup([{suite,Suite},{label,netconfc_remote_SUITE}], Config), + +    ok = execute(netconfc_remote_SUITE, Opts, ERPid, Config).  %%%----------------------------------------------------------------- @@ -112,16 +120,15 @@ reformat(Events, EH) ->  %%%-----------------------------------------------------------------  %%% TEST EVENTS  %%%----------------------------------------------------------------- -events_to_check(default,Config) -> -    {module,_} = code:load_abs(filename:join(?config(data_dir,Config), -					     netconfc1_SUITE)), -    TCs = netconfc1_SUITE:all(), -    code:purge(netconfc1_SUITE), -    code:delete(netconfc1_SUITE), +events_to_check(Suite,Config) -> +    {module,_} = code:load_abs(filename:join(?config(data_dir,Config),Suite)), +    TCs = Suite:all(), +    code:purge(Suite), +    code:delete(Suite),      OneTest =  	[{?eh,start_logging,{'DEF','RUNDIR'}}] ++ -	[{?eh,tc_done,{netconfc1_SUITE,TC,ok}} || TC <- TCs] ++ +	[{?eh,tc_done,{Suite,TC,ok}} || TC <- TCs] ++  	[{?eh,stop_logging,[]}],      %% 2 tests (ct:run_test + script_start) is default  | 
