diff options
author | Peter Andersson <[email protected]> | 2010-06-04 11:21:41 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2010-06-09 16:19:22 +0200 |
commit | 7ce6aa16313d159b1994bf1d2f18b52bd91e9075 (patch) | |
tree | 01bcfc8f361444bfd501f9da82b1263b8e6c87e7 /lib/common_test/src/ct_framework.erl | |
parent | 13fab1dd93fba14e55fea0a343650dbaa54e8725 (diff) | |
download | otp-7ce6aa16313d159b1994bf1d2f18b52bd91e9075.tar.gz otp-7ce6aa16313d159b1994bf1d2f18b52bd91e9075.tar.bz2 otp-7ce6aa16313d159b1994bf1d2f18b52bd91e9075.zip |
Add groups in test specifications
Ongoing work...
Diffstat (limited to 'lib/common_test/src/ct_framework.erl')
-rw-r--r-- | lib/common_test/src/ct_framework.erl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/common_test/src/ct_framework.erl b/lib/common_test/src/ct_framework.erl index 89bbc2448f..60978209b3 100644 --- a/lib/common_test/src/ct_framework.erl +++ b/lib/common_test/src/ct_framework.erl @@ -631,7 +631,7 @@ group_or_func(Func, _Config) -> %%% and every test case. If the former, all test cases in the suite %%% should be returned. -get_suite(Mod, all) -> +get_suite(Mod, all) -> case catch apply(Mod, groups, []) of {'EXIT',_} -> get_all(Mod, []); @@ -667,12 +667,18 @@ get_suite(Mod, Name) -> %% (and only) test case so we can report Error properly [{?MODULE,error_in_suite,[[Error]]}]; ConfTests -> + + %%! --- Thu Jun 3 19:13:22 2010 --- peppe was here! + %%! HEERE! + %%! Must be able to search recursively for group Name, + %%! this only handles top level groups! + FindConf = fun({conf,Props,_,_,_}) -> case proplists:get_value(name, Props) of Name -> true; _ -> false end - end, + end, case lists:filter(FindConf, ConfTests) of [] -> % must be a test case get_seq(Mod, Name); |