END_TEST Suite * t_datanode_basics_suite() { Suite *s = suite_create("datanode"); TCase *tc = tcase_create("buf"), *tc2; tcase_add_unchecked_fixture(tc, setup_buf, teardown_buf); tcase_set_timeout(tc, 2*60/*2 minutes*/); // Loop each test to send or not send crcs tcase_add_loop_test(tc, test_dn_write_buf, 0, 2); suite_add_tcase(s, tc); tc2 = tcase_create("file"); tcase_add_unchecked_fixture(tc2, setup_file, teardown_file); tcase_set_timeout(tc2, 2*60/*2 minutes*/); // Loop each test to send or not send crcs tcase_add_loop_test(tc2, test_dn_write_file, 0, 2); suite_add_tcase(s, tc2); return s; }
END_TEST Suite *test_regex_suite(void) { Suite *s = suite_create("regex"); TCase *tc_api, *tc_matching, *tc_phish, *tc_phish2, *tc_regex; tc_api = tcase_create("cli_regex2suffix"); suite_add_tcase(s, tc_api); tcase_add_checked_fixture (tc_api, setup, teardown); tcase_add_test(tc_api, empty); tcase_add_test(tc_api, one); #ifdef CHECK_HAVE_LOOPS tcase_add_loop_test(tc_api, test_suffix, 0, sizeof(tests)/sizeof(tests[0])); #endif tc_matching = tcase_create("regex_list"); suite_add_tcase(s, tc_matching); tcase_add_checked_fixture (tc_matching, rsetup, rteardown); #ifdef CHECK_HAVE_LOOPS tcase_add_loop_test(tc_matching, regex_list_match_test, 0, sizeof(rtests)/sizeof(rtests[0])); #endif tc_phish = tcase_create("phishingScan"); suite_add_tcase(s, tc_phish); tcase_add_unchecked_fixture(tc_phish, psetup, pteardown); #ifdef CHECK_HAVE_LOOPS tcase_add_loop_test(tc_phish, phishingScan_test, 0, sizeof(rtests)/sizeof(rtests[0])); tcase_add_loop_test(tc_phish, phishingScan_test_allscan, 0, sizeof(rtests)/sizeof(rtests[0])); #endif tcase_add_test(tc_phish, phishing_fake_test); tcase_add_test(tc_phish, phishing_fake_test_allscan); tc_phish2 = tcase_create("phishingScan with 2 dbs"); suite_add_tcase(s, tc_phish2); tcase_add_unchecked_fixture(tc_phish2, psetup2, pteardown); #ifdef CHECK_HAVE_LOOPS tcase_add_loop_test(tc_phish2, phishingScan_test, 0, sizeof(rtests)/sizeof(rtests[0])); tcase_add_loop_test(tc_phish2, phishingScan_test_allscan, 0, sizeof(rtests)/sizeof(rtests[0])); #endif tcase_add_test(tc_phish2, phishing_fake_test); tcase_add_test(tc_phish2, phishing_fake_test_allscan); #ifdef CHECK_HAVE_LOOPS tcase_add_loop_test(tc_phish, test_url_canon, 0, sizeof(uc)/sizeof(uc[0])); #endif tc_regex = tcase_create("cli_regcomp/execute"); suite_add_tcase(s, tc_regex); #ifdef CHECK_HAVE_LOOPS tcase_add_loop_test(tc_regex, test_regexes, 0, sizeof(rg)/sizeof(rg[0])); #endif return s; }
END_TEST Suite * query_suite(void) { Suite *s = suite_create("Query"); TCase *tc; tc = tcase_create("Core"); tcase_add_unchecked_fixture(tc, setup, teardown); tcase_add_test(tc, test_query_sanity); tcase_add_test(tc, test_query_clear); tcase_add_test(tc, test_query_repo); tcase_add_test(tc, test_query_name); tcase_add_test(tc, test_query_evr); tcase_add_test(tc, test_query_glob); tcase_add_test(tc, test_query_case); tcase_add_test(tc, test_query_anded); tcase_add_test(tc, test_query_neq); tcase_add_test(tc, test_query_in); tcase_add_test(tc, test_query_fileprovides); suite_add_tcase(s, tc); tc = tcase_create("Updates"); tcase_add_unchecked_fixture(tc, setup_with_updates, teardown); tcase_add_test(tc, test_upgrades_sanity); tcase_add_test(tc, test_upgrades); tcase_add_test(tc, test_filter_latest); suite_add_tcase(s, tc); tc = tcase_create("OnlyMain"); tcase_add_unchecked_fixture(tc, setup_with_main, teardown); tcase_add_test(tc, test_upgrade_already_installed); tcase_add_test(tc, test_downgrade); suite_add_tcase(s, tc); tc = tcase_create("Full"); tcase_add_unchecked_fixture(tc, setup_all, teardown); tcase_add_test(tc, test_filter_latest2); tcase_add_test(tc, test_filter_latest_archs); suite_add_tcase(s, tc); tc = tcase_create("Filelists"); tcase_add_unchecked_fixture(tc, setup_yum, teardown); tcase_add_test(tc, test_filter_files); suite_add_tcase(s, tc); return s; }
static Suite * hls_demux_suite (void) { Suite *s = suite_create ("hls_demux"); TCase *tc_basicTest = tcase_create ("basicTest"); tcase_add_test (tc_basicTest, simpleTest); tcase_add_test (tc_basicTest, testMasterPlaylist); tcase_add_test (tc_basicTest, testMediaPlaylistNotFound); tcase_add_test (tc_basicTest, testFragmentNotFound); tcase_add_test (tc_basicTest, testFragmentDownloadError); tcase_add_test (tc_basicTest, testSeek); tcase_add_test (tc_basicTest, testSeekKeyUnitPosition); tcase_add_test (tc_basicTest, testSeekPosition); tcase_add_test (tc_basicTest, testSeekUpdateStopPosition); tcase_add_test (tc_basicTest, testSeekSnapBeforePosition); tcase_add_test (tc_basicTest, testSeekSnapAfterPosition); tcase_add_test (tc_basicTest, testReverseSeekSnapBeforePosition); tcase_add_test (tc_basicTest, testReverseSeekSnapAfterPosition); tcase_add_unchecked_fixture (tc_basicTest, gst_adaptive_demux_test_setup, gst_adaptive_demux_test_teardown); suite_add_tcase (s, tc_basicTest); return s; }
int main(void) { int num_failures; size_t i; Suite *suite = suite_create(XSTRING(FUNCTION) "_suite"); TCase *tcase = tcase_create(XSTRING(FUNCTION) "_tcase"); SRunner *sr = srunner_create(suite); tcase_add_unchecked_fixture(tcase, setup, teardown); #ifdef GENERATE_GOLD tcase_add_test(tcase, print_gold); #else tcase_add_test(tcase, GOLD_TEST); tcase_add_test(tcase, against_ref_function); add_more_tests(tcase); #endif suite_add_tcase(suite, tcase); srunner_run_all(sr, CK_ENV); num_failures = srunner_ntests_failed(sr); srunner_free(sr); return num_failures ? 1 : 0; }
static Suite * profile_suite (void) { Suite *s = suite_create ("profile support library"); TCase *tc_chain = tcase_create ("general"); gboolean can_write; gchar *gst_dir; /* cehck if we can create profiles */ gst_dir = g_build_filename (g_get_home_dir (), ".gstreamer-0.10", NULL); can_write = (g_access (gst_dir, R_OK | W_OK | X_OK) == 0); g_free (gst_dir); suite_add_tcase (s, tc_chain); tcase_add_test (tc_chain, test_profile_creation); tcase_add_test (tc_chain, test_profile_input_caps); tcase_add_test (tc_chain, test_target_naming); tcase_add_test (tc_chain, test_target_profile); if (can_write) { tcase_add_test (tc_chain, test_loading_profile); tcase_add_test (tc_chain, test_saving_profile); tcase_add_test (tc_chain, test_target_list); } tcase_add_unchecked_fixture (tc_chain, test_setup, test_teardown); return s; }
TCase * bt_machine_example_case (void) { TCase *tc = tcase_create ("BtMachineExamples"); tcase_add_loop_test (tc, test_bt_machine_create, 0, G_N_ELEMENTS (element_names)); tcase_add_test (tc, test_bt_machine_enable_input_level1); tcase_add_test (tc, test_bt_machine_enable_input_level2); tcase_add_test (tc, test_bt_machine_enable_input_gain1); tcase_add_test (tc, test_bt_machine_enable_output_gain1); tcase_add_test (tc, test_bt_machine_add_pattern); tcase_add_test (tc, test_bt_machine_rem_pattern); tcase_add_test (tc, test_bt_machine_unique_pattern_name); tcase_add_test (tc, test_bt_machine_next_pattern_name); tcase_add_test (tc, test_bt_machine_check_voices); tcase_add_test (tc, test_bt_machine_change_voices); tcase_add_test (tc, test_bt_machine_state_mute_no_sideeffects); tcase_add_test (tc, test_bt_machine_state_solo_resets_others); tcase_add_test (tc, test_bt_machine_state_bypass_no_sideeffects); tcase_add_test (tc, test_bt_machine_state_not_overridden); tcase_add_test (tc, test_bt_machine_pretty_name); tcase_add_test (tc, test_bt_machine_pretty_name_with_detail); tcase_add_test (tc, test_bt_machine_set_defaults); tcase_add_test (tc, test_bt_machine_bind_parameter_control); tcase_add_test (tc, test_bt_machine_unbind_parameter_control); tcase_add_test (tc, test_bt_machine_unbind_parameter_controls); tcase_add_checked_fixture (tc, test_setup, test_teardown); tcase_add_unchecked_fixture (tc, case_setup, case_teardown); return tc; }
static Suite * gst_preset_suite (void) { Suite *s = suite_create ("GstPreset"); TCase *tc = tcase_create ("preset"); gchar *gst_dir; gboolean can_write = FALSE; /* cehck if we can create presets */ gst_dir = g_build_filename (g_get_home_dir (), ".gstreamer-" GST_MAJORMINOR, NULL); can_write = (g_access (gst_dir, R_OK | W_OK | X_OK) == 0); g_free (gst_dir); suite_add_tcase (s, tc); tcase_add_test (tc, test_check); tcase_add_test (tc, test_load); if (can_write) { tcase_add_test (tc, test_add); tcase_add_test (tc, test_del); tcase_add_test (tc, test_two_instances); } tcase_add_unchecked_fixture (tc, test_setup, test_teardown); return s; }
static Suite * dash_demux_suite (void) { Suite *s = suite_create ("dash_demux"); TCase *tc_basicTest = tcase_create ("basicTest"); tcase_add_test (tc_basicTest, simpleTest); tcase_add_test (tc_basicTest, testTwoPeriods); tcase_add_test (tc_basicTest, testParameters); tcase_add_test (tc_basicTest, testSeek); tcase_add_test (tc_basicTest, testSeekKeyUnitPosition); tcase_add_test (tc_basicTest, testSeekPosition); tcase_add_test (tc_basicTest, testSeekUpdateStopPosition); tcase_add_test (tc_basicTest, testSeekSnapBeforePosition); tcase_add_test (tc_basicTest, testSeekSnapAfterPosition); tcase_add_test (tc_basicTest, testReverseSeekSnapBeforePosition); tcase_add_test (tc_basicTest, testReverseSeekSnapAfterPosition); tcase_add_test (tc_basicTest, testDownloadError); tcase_add_test (tc_basicTest, testFragmentDownloadError); tcase_add_test (tc_basicTest, testQuery); tcase_add_unchecked_fixture (tc_basicTest, gst_adaptive_demux_test_setup, gst_adaptive_demux_test_teardown); suite_add_tcase (s, tc_basicTest); return s; }
int main(int argc, char *argv[]) { int num_failures; size_t i; Suite *suite = suite_create(XSTRING(FUNCTION) "_suite"); TCase *tcase = tcase_create(XSTRING(FUNCTION) "_tcase"); SRunner *sr = srunner_create(suite); parse_options_or_die(argc, argv); if (gold_file) read_gold_file_or_die(argv[0]); tcase_add_unchecked_fixture(tcase, setup, teardown); if (generate_gold_flag) { tcase_add_test(tcase, print_gold); } else { tcase_add_test(tcase, GOLD_TEST); tcase_add_test(tcase, against_ref_function); add_more_tests(tcase); } suite_add_tcase(suite, tcase); srunner_run_all(sr, CK_ENV); num_failures = srunner_ntests_failed(sr); srunner_free(sr); return num_failures ? 1 : 0; }
END_TEST static Suite *test_clamd_suite(void) { Suite *s = suite_create("clamd"); TCase *tc_commands, *tc_stress; tc_commands = tcase_create("clamd commands"); suite_add_tcase(s, tc_commands); tcase_add_unchecked_fixture(tc_commands, commands_setup, commands_teardown); #ifdef CHECK_HAVE_LOOPS tcase_add_loop_test(tc_commands, test_basic_commands, 0, sizeof(basic_tests)/sizeof(basic_tests[0])); tcase_add_loop_test(tc_commands, test_compat_commands, 0, sizeof(basic_tests)/sizeof(basic_tests[0])); tcase_add_loop_test(tc_commands, test_fildes, 0, 4*sizeof(fildes_cmds)/sizeof(fildes_cmds[0])); #endif tcase_add_test(tc_commands, test_stats); tcase_add_test(tc_commands, test_instream); tcase_add_test(tc_commands, test_stream); tcase_add_test(tc_commands, test_idsession); tc_stress = tcase_create("clamd stress test"); suite_add_tcase(s, tc_stress); tcase_set_timeout(tc_stress, 20); tcase_add_test(tc_stress, test_fildes_many); tcase_add_test(tc_stress, test_idsession_stress); tcase_add_test(tc_stress, test_fildes_unwanted); #ifndef C_BSD /* FreeBSD and Darwin: connect() says connection refused on both * tcp/unix sockets, if I too quickly connect ~193 times, even if * listen backlog is higher. * Don't run this test on BSD for now */ tcase_add_test(tc_stress, test_connections); #endif return s; }
END_TEST Suite* anitomy_suite() { Suite* s; TCase* core; TCase* parser; s = suite_create("anitomy"); core = tcase_create("core"); parser = tcase_create("parser"); tcase_add_checked_fixture(core, setup_core, cleanup_core); tcase_add_unchecked_fixture(parser, setup_parser, cleanup_parser); tcase_add_test(core, test_anitomy_new); tcase_add_test(core, test_anitomy_parse); tcase_add_test(core, test_anitomy_elements); tcase_add_test(core, test_anitomy_elements_size); tcase_add_test(core, test_anitomy_elements_get_all); tcase_add_loop_test(parser, test_anitomy_parser_sample_data, 0, 162); suite_add_tcase(s, core); suite_add_tcase(s, parser); return s; }
TCase * bt_change_log_example_case (void) { TCase *tc = tcase_create ("BtChangeLogExamples"); tcase_add_test (tc, test_bt_change_log_create_and_destroy); tcase_add_test (tc, test_bt_change_log_initial_undo_redo_state); tcase_add_test (tc, test_bt_change_log_undo_redo_state_after_single_change); tcase_add_test (tc, test_bt_change_log_undo_redo_state_single_change_after_undo); tcase_add_test (tc, test_bt_change_log_undo_redo_state_single_change_after_redo); tcase_add_test (tc, test_bt_change_log_undo_redo_state_double_change_after_undo); tcase_add_test (tc, test_bt_change_log_undo_redo_state_stack_trunc); tcase_add_test (tc, test_bt_change_log_single_change_after_undo); tcase_add_test (tc, test_bt_change_log_single_change_after_redo); tcase_add_test (tc, test_bt_change_log_two_changes); tcase_add_test (tc, test_bt_change_log_single_then_double_change); tcase_add_test (tc, test_bt_change_log_group); tcase_add_test (tc, test_bt_change_log_nested_groups); tcase_add_test (tc, test_bt_change_log_recover); tcase_add_checked_fixture (tc, test_setup, test_teardown); tcase_add_unchecked_fixture (tc, case_setup, case_teardown); return tc; }
END_TEST Suite * tizcore_suite (void) { TCase *tc_ilcore; Suite *s = suite_create ("libtizcore"); putenv(TIZ_PLATFORM_RC_FILE_ENV); /* IL Core API test case */ tc_ilcore = tcase_create ("ilcore"); tcase_add_unchecked_fixture (tc_ilcore, setup, teardown); tcase_add_test (tc_ilcore, test_ilcore_init_and_deinit); tcase_add_test (tc_ilcore, test_ilcore_init_and_deinit_get_hdl_free_hdl); /* NOTE: Test temporarily disabled. It uses components which won;t be present when this deb file is created */ /* tcase_add_test (tc_ilcore, test_ilcore_setup_tunnel_tear_down_tunnel); */ tcase_add_test (tc_ilcore, test_ilcore_comp_of_role_enum); tcase_add_test (tc_ilcore, test_ilcore_role_of_comp_enum); /* TODO: Negative case for OMX_ErrorPortsNotConnected error */ suite_add_tcase (s, tc_ilcore); return s; }
END_TEST Suite * sys_suite(void) { Suite *s; TCase *tc; s = suite_create("sys"); tc = tcase_create("sys_isdir"); tcase_add_unchecked_fixture(tc, sys_isdir_setup, sys_isdir_teardown); tcase_add_test(tc, sys_isdir_01); tcase_add_test(tc, sys_isdir_02); tcase_add_test(tc, sys_isdir_03); tcase_add_test(tc, sys_isdir_04); tcase_add_test(tc, sys_isdir_05); suite_add_tcase(s, tc); tc = tcase_create("sys_get_cpu_cores"); tcase_add_test(tc, sys_get_cpu_cores_01); suite_add_tcase(s, tc); return s; }
END_TEST Suite * package_suite(void) { Suite *s = suite_create("Package"); TCase *tc; tc = tcase_create("Core"); tcase_add_unchecked_fixture(tc, fixture_system_only, teardown); tcase_add_test(tc, test_refcounting); tcase_add_test(tc, test_userdata); tcase_add_test(tc, test_package_summary); tcase_add_test(tc, test_identical); tcase_add_test(tc, test_versions); tcase_add_test(tc, test_no_sourcerpm); suite_add_tcase(s, tc); tc = tcase_create("Requires"); tcase_add_unchecked_fixture(tc, fixture_with_main, teardown); tcase_add_test(tc, test_get_requires); tcase_add_test(tc, test_get_more_requires); tcase_add_test(tc, test_chksum_fail); tcase_add_test(tc, test_installed); tcase_add_test(tc, test_two_sacks); suite_add_tcase(s, tc); tc = tcase_create("WithRealRepo"); tcase_add_unchecked_fixture(tc, fixture_yum, teardown); tcase_add_test(tc, test_checksums); tcase_add_test(tc, test_get_files); tcase_add_test(tc, test_get_advisories); tcase_add_test(tc, test_get_advisories_none); tcase_add_test(tc, test_lookup_num); tcase_add_test(tc, test_packager); tcase_add_test(tc, test_sourcerpm); tcase_add_test(tc, test_presto); suite_add_tcase(s, tc); tc = tcase_create("WithCmdlinePackage"); tcase_add_unchecked_fixture(tc, fixture_cmdline_only, teardown); tcase_add_test(tc, test_get_files_cmdline); suite_add_tcase(s, tc); return s; }
TCase * bt_machine_actions_example_case (void) { TCase *tc = tcase_create ("BtMachineActionsExamples"); tcase_add_test (tc, test_bt_machine_actions_about_dialog); tcase_add_checked_fixture (tc, test_setup, test_teardown); tcase_add_unchecked_fixture (tc, case_setup, case_teardown); return tc; }
TCase * bt_machine_preferences_dialog_example_case (void) { TCase *tc = tcase_create ("BtMachinePreferencesDialogExamples"); tcase_add_test (tc, test_bt_machine_preferences_dialog_create); tcase_add_checked_fixture (tc, test_setup, test_teardown); tcase_add_unchecked_fixture (tc, case_setup, case_teardown); return tc; }
TCase * bt_wave_list_model_example_case (void) { TCase *tc = tcase_create ("BtWaveListModelExamples"); tcase_add_test (tc, test_bt_wave_list_model_create); tcase_add_test (tc, test_bt_wave_list_model_get_null_wave); tcase_add_checked_fixture (tc, test_setup, test_teardown); tcase_add_unchecked_fixture (tc, case_setup, case_teardown); return tc; }
TCase * bt_cmd_pattern_example_case (void) { TCase *tc = tcase_create ("BtCmdPatternExamples"); tcase_add_test (tc, test_bt_cmd_pattern_obj_mono1); tcase_add_test (tc, test_bt_cmd_pattern_obj_poly1); tcase_add_checked_fixture (tc, test_setup, test_teardown); tcase_add_unchecked_fixture (tc, case_setup, case_teardown); return tc; }
TCase * bt_source_machine_test_case (void) { TCase *tc = tcase_create ("BtSourceMachineTests"); tcase_add_test (tc, test_bt_source_machine_wrong_name); tcase_add_test (tc, test_bt_source_machine_wrong_type); tcase_add_checked_fixture (tc, test_setup, test_teardown); tcase_add_unchecked_fixture (tc, case_setup, case_teardown); return tc; }
TCase * bt_wire_canvas_item_example_case (void) { TCase *tc = tcase_create ("BtWireCanvasItemExamples"); tcase_add_test (tc, test_bt_wire_canvas_item_create); tcase_add_test (tc, test_bt_wire_canvas_item_show_analyzer); tcase_add_checked_fixture (tc, test_setup, test_teardown); tcase_add_unchecked_fixture (tc, case_setup, case_teardown); return tc; }
TCase * bt_settings_dialog_example_case (void) { TCase *tc = tcase_create ("BtSettingsDialogExamples"); tcase_add_loop_test (tc, test_bt_settings_dialog_create, 0, BT_SETTINGS_PAGES_COUNT); tcase_add_checked_fixture (tc, test_setup, test_teardown); tcase_add_unchecked_fixture (tc, case_setup, case_teardown); return tc; }
TCase * bt_missing_framework_elements_dialog_example_case (void) { TCase *tc = tcase_create ("BtMissingFrameworkElementsDialogExamples"); tcase_add_test (tc, test_bt_missing_framework_elements_dialog_create_empty); tcase_add_test (tc, test_bt_missing_framework_elements_dialog_create); tcase_add_checked_fixture (tc, test_setup, test_teardown); tcase_add_unchecked_fixture (tc, case_setup, case_teardown); return tc; }
TCase * gst_buzztrax_envelope_d_example_case (void) { TCase *tc = tcase_create ("GstBtEnvelopeDExamples"); tcase_add_test (tc, test_create_obj); tcase_add_loop_test (tc, test_envelope_curves, 0, 5); // test access beyond range tcase_add_unchecked_fixture (tc, case_setup, case_teardown); return tc; }
TCase * bt_interaction_controller_menu_example_case (void) { TCase *tc = tcase_create ("BtInteractionControllerMenuExamples"); tcase_add_test (tc, test_bt_interaction_controller_menu_create_range_menu); tcase_add_test (tc, test_bt_interaction_controller_menu_create_trigger_menu); tcase_add_checked_fixture (tc, test_setup, test_teardown); tcase_add_unchecked_fixture (tc, case_setup, case_teardown); return tc; }
END_TEST Suite *headerencode_suite() { Suite *s = suite_create("HeaderEncode"); TCase *tc = tcase_create("HeaderEncode"); tcase_add_unchecked_fixture (tc, setup, teardown); tcase_add_test(tc, encode_info_header); tcase_add_test(tc, encode_comment_header); suite_add_tcase(s, tc); return s; }
Suite *create_test_suite() { TCase *tc_gff_file = tcase_create("Regions from GFF file"); tcase_add_unchecked_fixture(tc_gff_file, setup_gff, teardown_gff); tcase_add_test(tc_gff_file, gff_file_chromosomes); tcase_add_test(tc_gff_file, gff_file_regions); // Add test cases to a test suite Suite *fs = suite_create("Regions parsing"); suite_add_tcase(fs, tc_gff_file); return fs; }
TCase * gst_buzztrax_elements_example_case (void) { TCase *tc = tcase_create ("GstElementExamples"); tcase_add_loop_test (tc, test_launch_bt_dec, 0, G_N_ELEMENTS (bt_dec_pipelines) * G_N_ELEMENTS (bt_dec_files)); tcase_add_loop_test (tc, test_launch_synths, 0, G_N_ELEMENTS (synth_pipelines)); tcase_add_unchecked_fixture (tc, case_setup, case_teardown); return tc; }
TCase * bt_aseq_discoverer_example_case (void) { TCase *tc = tcase_create ("BticAseqDiscovererExamples"); tcase_add_test (tc, test_btic_initial_aseq_device_discovered); tcase_add_test (tc, test_btic_new_aseq_device_discovered); tcase_add_test (tc, test_btic_removed_aseq_device_discovered); tcase_add_checked_fixture (tc, test_setup, test_teardown); tcase_add_unchecked_fixture (tc, case_setup, case_teardown); return tc; }