diff options
author | Peter Andersson <[email protected]> | 2010-06-03 13:21:38 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2010-06-09 16:19:22 +0200 |
commit | 13fab1dd93fba14e55fea0a343650dbaa54e8725 (patch) | |
tree | c57d806bef590056f8c9a35c0572cfc054ca3b28 /lib/common_test/test/ct_groups_test_2_SUITE.erl | |
parent | 5d01bdc2c4c3cc18150711ebfab4c84abdfc0b45 (diff) | |
download | otp-13fab1dd93fba14e55fea0a343650dbaa54e8725.tar.gz otp-13fab1dd93fba14e55fea0a343650dbaa54e8725.tar.bz2 otp-13fab1dd93fba14e55fea0a343650dbaa54e8725.zip |
Add new tests for test case groups and test specifications
Diffstat (limited to 'lib/common_test/test/ct_groups_test_2_SUITE.erl')
-rw-r--r-- | lib/common_test/test/ct_groups_test_2_SUITE.erl | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/lib/common_test/test/ct_groups_test_2_SUITE.erl b/lib/common_test/test/ct_groups_test_2_SUITE.erl index 75348e2f4a..1fbeff0126 100644 --- a/lib/common_test/test/ct_groups_test_2_SUITE.erl +++ b/lib/common_test/test/ct_groups_test_2_SUITE.erl @@ -60,7 +60,7 @@ all(doc) -> ["Run smoke tests of Common Test."]; all(suite) -> - [missing_conf]. + [missing_conf, testspec_1]. %%-------------------------------------------------------------------- %% TEST CASES @@ -84,6 +84,25 @@ missing_conf(Config) when is_list(Config) -> TestEvents = events_to_check(missing_conf), ok = ct_test_support:verify_events(TestEvents, Events, Config). + +%%%----------------------------------------------------------------- +%%% + +testspec_1(Config) when is_list(Config) -> + DataDir = ?config(data_dir, Config), + + TestSpec = filename:join(DataDir, "specs/groups_2.1.spec"), + + {Opts,ERPid} = setup({spec,TestSpec}, Config), + ok = ct_test_support:run(Opts, Config), + Events = ct_test_support:get_events(ERPid, Config), + + ct_test_support:log_events(testspec_1, + reformat(Events, ?eh), + ?config(priv_dir, Config)), + + TestEvents = events_to_check(testspec_1), + ok = ct_test_support:verify_events(TestEvents, Events, Config). %%%----------------------------------------------------------------- %%% HELP FUNCTIONS @@ -133,4 +152,7 @@ test_events(missing_conf) -> {?eh,test_stats,{4,0,{0,0}}}, {?eh,test_done,{'DEF','STOP_TIME'}}, {?eh,stop_logging,[]} - ]. + ]; + +test_events(testspec_1) -> + []. |