示例#1
0
gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* root = NULL;
	GTestSuite* _tmp0_ = NULL;
	KeymapTests* _tmp1_ = NULL;
	KeymapTests* _tmp2_ = NULL;
	GTestSuite* _tmp3_ = NULL;
#line 50 "/home/ueno/devel/libkkc/tests/keymap.vala"
	g_test_init (&args_length1, &args, NULL);
#line 51 "/home/ueno/devel/libkkc/tests/keymap.vala"
	kkc_init ();
#line 53 "/home/ueno/devel/libkkc/tests/keymap.vala"
	_tmp0_ = g_test_get_root ();
#line 53 "/home/ueno/devel/libkkc/tests/keymap.vala"
	root = _tmp0_;
#line 54 "/home/ueno/devel/libkkc/tests/keymap.vala"
	_tmp1_ = keymap_tests_new ();
#line 54 "/home/ueno/devel/libkkc/tests/keymap.vala"
	_tmp2_ = _tmp1_;
#line 54 "/home/ueno/devel/libkkc/tests/keymap.vala"
	_tmp3_ = kkc_test_case_get_suite ((KkcTestCase*) _tmp2_);
#line 54 "/home/ueno/devel/libkkc/tests/keymap.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 54 "/home/ueno/devel/libkkc/tests/keymap.vala"
	_g_object_unref0 (_tmp2_);
#line 56 "/home/ueno/devel/libkkc/tests/keymap.vala"
	g_test_run ();
#line 58 "/home/ueno/devel/libkkc/tests/keymap.vala"
	result = 0;
#line 58 "/home/ueno/devel/libkkc/tests/keymap.vala"
	return result;
#line 446 "keymap.c"
}
示例#2
0
gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* root = NULL;
	GTestSuite* _tmp0_ = NULL;
	KeyEventTests* _tmp1_ = NULL;
	KeyEventTests* _tmp2_ = NULL;
	GTestSuite* _tmp3_ = NULL;
#line 89 "/home/ueno/devel/libkkc/tests/key-event.vala"
	g_test_init (&args_length1, &args, NULL);
#line 90 "/home/ueno/devel/libkkc/tests/key-event.vala"
	kkc_init ();
#line 92 "/home/ueno/devel/libkkc/tests/key-event.vala"
	_tmp0_ = g_test_get_root ();
#line 92 "/home/ueno/devel/libkkc/tests/key-event.vala"
	root = _tmp0_;
#line 93 "/home/ueno/devel/libkkc/tests/key-event.vala"
	_tmp1_ = key_event_tests_new ();
#line 93 "/home/ueno/devel/libkkc/tests/key-event.vala"
	_tmp2_ = _tmp1_;
#line 93 "/home/ueno/devel/libkkc/tests/key-event.vala"
	_tmp3_ = kkc_test_case_get_suite ((KkcTestCase*) _tmp2_);
#line 93 "/home/ueno/devel/libkkc/tests/key-event.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 93 "/home/ueno/devel/libkkc/tests/key-event.vala"
	_g_object_unref0 (_tmp2_);
#line 95 "/home/ueno/devel/libkkc/tests/key-event.vala"
	g_test_run ();
#line 97 "/home/ueno/devel/libkkc/tests/key-event.vala"
	result = 0;
#line 97 "/home/ueno/devel/libkkc/tests/key-event.vala"
	return result;
#line 582 "key-event.c"
}
示例#3
0
gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* root = NULL;
	GTestSuite* _tmp0_ = NULL;
	SystemDictionaryTests* _tmp1_ = NULL;
	SystemDictionaryTests* _tmp2_ = NULL;
	GTestSuite* _tmp3_ = NULL;
#line 64 "/home/ueno/devel/libkkc/tests/system-dictionary.vala"
	g_test_init (&args_length1, &args, NULL);
#line 65 "/home/ueno/devel/libkkc/tests/system-dictionary.vala"
	kkc_init ();
#line 67 "/home/ueno/devel/libkkc/tests/system-dictionary.vala"
	_tmp0_ = g_test_get_root ();
#line 67 "/home/ueno/devel/libkkc/tests/system-dictionary.vala"
	root = _tmp0_;
#line 68 "/home/ueno/devel/libkkc/tests/system-dictionary.vala"
	_tmp1_ = system_dictionary_tests_new ();
#line 68 "/home/ueno/devel/libkkc/tests/system-dictionary.vala"
	_tmp2_ = _tmp1_;
#line 68 "/home/ueno/devel/libkkc/tests/system-dictionary.vala"
	_tmp3_ = kkc_test_case_get_suite ((KkcTestCase*) _tmp2_);
#line 68 "/home/ueno/devel/libkkc/tests/system-dictionary.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 68 "/home/ueno/devel/libkkc/tests/system-dictionary.vala"
	_g_object_unref0 (_tmp2_);
#line 70 "/home/ueno/devel/libkkc/tests/system-dictionary.vala"
	g_test_run ();
#line 72 "/home/ueno/devel/libkkc/tests/system-dictionary.vala"
	result = 0;
#line 72 "/home/ueno/devel/libkkc/tests/system-dictionary.vala"
	return result;
#line 510 "system-dictionary.c"
}
示例#4
0
gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* root = NULL;
	GTestSuite* _tmp0_ = NULL;
	EncodingConverterTests* _tmp1_ = NULL;
	EncodingConverterTests* _tmp2_ = NULL;
	GTestSuite* _tmp3_ = NULL;
#line 36 "/home/ueno/devel/libkkc/tests/encoding.vala"
	g_test_init (&args_length1, &args, NULL);
#line 37 "/home/ueno/devel/libkkc/tests/encoding.vala"
	kkc_init ();
#line 39 "/home/ueno/devel/libkkc/tests/encoding.vala"
	_tmp0_ = g_test_get_root ();
#line 39 "/home/ueno/devel/libkkc/tests/encoding.vala"
	root = _tmp0_;
#line 40 "/home/ueno/devel/libkkc/tests/encoding.vala"
	_tmp1_ = encoding_converter_tests_new ();
#line 40 "/home/ueno/devel/libkkc/tests/encoding.vala"
	_tmp2_ = _tmp1_;
#line 40 "/home/ueno/devel/libkkc/tests/encoding.vala"
	_tmp3_ = kkc_test_case_get_suite ((KkcTestCase*) _tmp2_);
#line 40 "/home/ueno/devel/libkkc/tests/encoding.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 40 "/home/ueno/devel/libkkc/tests/encoding.vala"
	_g_object_unref0 (_tmp2_);
#line 42 "/home/ueno/devel/libkkc/tests/encoding.vala"
	g_test_run ();
#line 44 "/home/ueno/devel/libkkc/tests/encoding.vala"
	result = 0;
#line 44 "/home/ueno/devel/libkkc/tests/encoding.vala"
	return result;
#line 301 "encoding.c"
}
示例#5
0
gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* root = NULL;
	GTestSuite* _tmp0_ = NULL;
	SegmentListTests* _tmp1_ = NULL;
	SegmentListTests* _tmp2_ = NULL;
	GTestSuite* _tmp3_ = NULL;
#line 19 "/home/ueno/devel/libkkc/tests/segment-list.vala"
	g_test_init (&args_length1, &args, NULL);
#line 20 "/home/ueno/devel/libkkc/tests/segment-list.vala"
	kkc_init ();
#line 22 "/home/ueno/devel/libkkc/tests/segment-list.vala"
	_tmp0_ = g_test_get_root ();
#line 22 "/home/ueno/devel/libkkc/tests/segment-list.vala"
	root = _tmp0_;
#line 23 "/home/ueno/devel/libkkc/tests/segment-list.vala"
	_tmp1_ = segment_list_tests_new ();
#line 23 "/home/ueno/devel/libkkc/tests/segment-list.vala"
	_tmp2_ = _tmp1_;
#line 23 "/home/ueno/devel/libkkc/tests/segment-list.vala"
	_tmp3_ = kkc_test_case_get_suite ((KkcTestCase*) _tmp2_);
#line 23 "/home/ueno/devel/libkkc/tests/segment-list.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 23 "/home/ueno/devel/libkkc/tests/segment-list.vala"
	_g_object_unref0 (_tmp2_);
#line 25 "/home/ueno/devel/libkkc/tests/segment-list.vala"
	g_test_run ();
#line 27 "/home/ueno/devel/libkkc/tests/segment-list.vala"
	result = 0;
#line 27 "/home/ueno/devel/libkkc/tests/segment-list.vala"
	return result;
#line 159 "segment-list.c"
}
示例#6
0
gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* root = NULL;
	GTestSuite* _tmp0_ = NULL;
	LanguageModelTests* _tmp1_ = NULL;
	LanguageModelTests* _tmp2_ = NULL;
	GTestSuite* _tmp3_ = NULL;
#line 45 "/home/ueno/devel/libkkc/tests/language-model.vala"
	g_test_init (&args_length1, &args, NULL);
#line 46 "/home/ueno/devel/libkkc/tests/language-model.vala"
	kkc_init ();
#line 48 "/home/ueno/devel/libkkc/tests/language-model.vala"
	_tmp0_ = g_test_get_root ();
#line 48 "/home/ueno/devel/libkkc/tests/language-model.vala"
	root = _tmp0_;
#line 49 "/home/ueno/devel/libkkc/tests/language-model.vala"
	_tmp1_ = language_model_tests_new ();
#line 49 "/home/ueno/devel/libkkc/tests/language-model.vala"
	_tmp2_ = _tmp1_;
#line 49 "/home/ueno/devel/libkkc/tests/language-model.vala"
	_tmp3_ = kkc_test_case_get_suite ((KkcTestCase*) _tmp2_);
#line 49 "/home/ueno/devel/libkkc/tests/language-model.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 49 "/home/ueno/devel/libkkc/tests/language-model.vala"
	_g_object_unref0 (_tmp2_);
#line 51 "/home/ueno/devel/libkkc/tests/language-model.vala"
	g_test_run ();
#line 53 "/home/ueno/devel/libkkc/tests/language-model.vala"
	result = 0;
#line 53 "/home/ueno/devel/libkkc/tests/language-model.vala"
	return result;
#line 355 "language-model.c"
}
示例#7
0
int
main (int    argc,
      char** argv)
{
	gint result;

	g_test_init (&argc, &argv, NULL);
	gtk_init (&argc, &argv);

	GTestSuite *suite = NULL;

	suite = g_test_get_root ();

	g_test_suite_add_suite (suite, test_bubble_create_test_suite ());
	g_test_suite_add_suite (suite, test_defaults_create_test_suite ());
	g_test_suite_add_suite (suite, test_notification_create_test_suite ());
	g_test_suite_add_suite (suite, test_observer_create_test_suite ());
	g_test_suite_add_suite (suite, test_stack_create_test_suite ());
	g_test_suite_add_suite (suite, test_filtering_create_test_suite ());
	g_test_suite_add_suite (suite, test_dbus_create_test_suite ());
	g_test_suite_add_suite (suite, test_apport_create_test_suite ());
	g_test_suite_add_suite (suite, test_i18n_create_test_suite ());
	g_test_suite_add_suite (suite, test_withlib_create_test_suite ());
	g_test_suite_add_suite (suite, test_synchronous_create_test_suite ());
	g_test_suite_add_suite (suite, test_dnd_create_test_suite ());
	g_test_suite_add_suite (suite, test_timings_create_test_suite ());

	result = g_test_run ();

	return result;
}
示例#8
0
gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* root = NULL;
	GTestSuite* _tmp0_ = NULL;
	MetadataFileTests* _tmp1_ = NULL;
	MetadataFileTests* _tmp2_ = NULL;
	GTestSuite* _tmp3_ = NULL;
#line 83 "/home/ueno/devel/libkkc/tests/metadata-file.vala"
	g_test_init (&args_length1, &args, NULL);
#line 84 "/home/ueno/devel/libkkc/tests/metadata-file.vala"
	kkc_init ();
#line 86 "/home/ueno/devel/libkkc/tests/metadata-file.vala"
	_tmp0_ = g_test_get_root ();
#line 86 "/home/ueno/devel/libkkc/tests/metadata-file.vala"
	root = _tmp0_;
#line 87 "/home/ueno/devel/libkkc/tests/metadata-file.vala"
	_tmp1_ = metadata_file_tests_new ();
#line 87 "/home/ueno/devel/libkkc/tests/metadata-file.vala"
	_tmp2_ = _tmp1_;
#line 87 "/home/ueno/devel/libkkc/tests/metadata-file.vala"
	_tmp3_ = kkc_test_case_get_suite ((KkcTestCase*) _tmp2_);
#line 87 "/home/ueno/devel/libkkc/tests/metadata-file.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 87 "/home/ueno/devel/libkkc/tests/metadata-file.vala"
	_g_object_unref0 (_tmp2_);
#line 89 "/home/ueno/devel/libkkc/tests/metadata-file.vala"
	g_test_run ();
#line 91 "/home/ueno/devel/libkkc/tests/metadata-file.vala"
	result = 0;
#line 91 "/home/ueno/devel/libkkc/tests/metadata-file.vala"
	return result;
#line 559 "metadata-file.c"
}
示例#9
0
int main(int argc, char *argv[])
{
    g_test_init(&argc, &argv, NULL);

    g_test_add_func("/nxCore/nxProcessManager_attach", test_nxProcessManager_attach);
    g_test_add_func("/nxCore/nxProcessManager_update", test_nxProcessManager_update);
    g_test_add_func("/nxCore/nxProcessManager_detach", test_nxProcessManager_detach);

    return g_test_run_suite(g_test_get_root());
}
示例#10
0
int main (int argc, char **argv)
{
    GTestSuite *suite;
    TestData *data;
    int i;
    const char *port = NULL;
    gint result;
    gboolean uml290 = FALSE, debug = FALSE;

    g_test_init (&argc, &argv, NULL);

    /* See if we got passed a serial port for live testing */
    for (i = 0; i < argc; i++) {
        if (!strcmp (argv[i], "--port")) {
            /* Make sure there's actually a port in the next arg */
            g_assert (argc > i + 1);
            port = argv[++i];
        } else if (!strcmp (argv[i], "--uml290"))
            uml290 = TRUE;
        else if (!strcmp (argv[i], "--debug"))
            debug = TRUE;
    }

    data = test_data_new (port, uml290, debug);

    suite = g_test_get_root ();
    g_test_suite_add (suite, TESTCASE (test_crc16_1, NULL));
    g_test_suite_add (suite, TESTCASE (test_crc16_2, NULL));
    g_test_suite_add (suite, TESTCASE (test_escape1, NULL));
    g_test_suite_add (suite, TESTCASE (test_escape2, NULL));
    g_test_suite_add (suite, TESTCASE (test_escape_ctrl, NULL));
    g_test_suite_add (suite, TESTCASE (test_escape_unescape, NULL));
    g_test_suite_add (suite, TESTCASE (test_escape_unescape_ctrl, NULL));
    g_test_suite_add (suite, TESTCASE (test_utils_decapsulate_basic_buffer, NULL));
    g_test_suite_add (suite, TESTCASE (test_utils_encapsulate_basic_buffer, NULL));
    g_test_suite_add (suite, TESTCASE (test_utils_decapsulate_sierra_cns, NULL));
    g_test_suite_add (suite, TESTCASE (test_utils_decapsulate_uml290_wmc1, NULL));
    g_test_suite_add (suite, TESTCASE (test_utils_decapsulate_pc5740_wmc1, NULL));

    /* Live tests */
    if (port) {
        g_test_suite_add (suite, TESTCASE (test_com_port_init, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_init, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_device_info, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_network_info, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_get_global_mode, data->com_data));
    }

    result = g_test_run ();

    test_data_free (data);

    return result;
}
示例#11
0
void
eventd_tests_unit_eventd_protocol_suite_generator(void)
{
    GTestSuite *suite;

    suite = g_test_create_suite("LibeventdEvp generator test suite");

    g_test_suite_add(suite, g_test_create_case("evp_generate_event()",             sizeof(GeneratorData), NULL,                  _init_data,           _test_evp_generate_event,    _clean_data));
    g_test_suite_add(suite, g_test_create_case("evp_generate_event(data)",         sizeof(GeneratorData), NULL,                  _init_data_with_data, _test_evp_generate_event,    _clean_data));
    g_test_suite_add(suite, g_test_create_case("evp_generate_bye()",               sizeof(GeneratorData), NULL,                  _init_data,           _test_evp_generate_bye,      _clean_data));
    g_test_suite_add(suite, g_test_create_case("evp_generate_bye(message)",        sizeof(GeneratorData), GINT_TO_POINTER(TRUE), _init_data,           _test_evp_generate_bye,      _clean_data));

    g_test_suite_add_suite(g_test_get_root(), suite);
}
示例#12
0
文件: xultest.c 项目: cdsi/elrond
int
main(int argc, char **argv)
{
        g_test_init(&argc, &argv, NULL);

        GTestSuite *ts = g_test_get_root();

        g_test_suite_add(ts, xul_test_xbuffer_case());
        g_test_suite_add(ts, xul_test_xprefs_case());
        g_test_suite_add(ts, xul_test_shm_case());
        g_test_suite_add(ts, xul_test_xtime_case());

        return g_test_run();
}
示例#13
0
void
eventd_tests_unit_eventd_event_suite_setters(void)
{
    GTestSuite *suite;

    suite = g_test_create_suite("EventdEvent setters test suite");

    g_test_suite_add(suite, g_test_create_case("new(category, name)",                sizeof(SettersData), NULL, NULL,       _test_new_good_good,                     NULL));
    g_test_suite_add(suite, g_test_create_case("new(NULL, name)",                    sizeof(SettersData), NULL, NULL,       _test_new_null_good,                     NULL));
    g_test_suite_add(suite, g_test_create_case("new(category, NULL)",                sizeof(SettersData), NULL, NULL,       _test_new_good_null,                     NULL));

    g_test_suite_add(suite, g_test_create_case("add_data(event, name, data)",        sizeof(SettersData), NULL, _init_data, _test_add_data_notnull_good_good,        _clean_data));
    g_test_suite_add(suite, g_test_create_case("add_data(NULL,)",                    sizeof(SettersData), NULL, NULL,       _test_add_data_null_good_good,           NULL));
    g_test_suite_add(suite, g_test_create_case("add_data(event, NULL,)",             sizeof(SettersData), NULL, _init_data, _test_add_data_notnull_bad_good,         _clean_data));
    g_test_suite_add(suite, g_test_create_case("add_data(event, NULL, NULL)",        sizeof(SettersData), NULL, _init_data, _test_add_data_notnull_good_bad,         _clean_data));

    g_test_suite_add_suite(g_test_get_root(), suite);
}
示例#14
0
int main (int argc, char **argv)
{
    GTestSuite *suite;
    TestData *data;
    int i;
    const char *port = NULL;
    gint result;

    g_test_init (&argc, &argv, NULL);

    /* See if we got passed a serial port for live testing */
    for (i = 0; i < argc; i++) {
        if (!strcmp (argv[i], "--port")) {
            /* Make sure there's actually a port in the next arg */
            g_assert (argc > i + 1);
            port = argv[++i];
        }
    }

    data = test_data_new (port);

    suite = g_test_get_root ();

    g_test_suite_add (suite, TESTCASE (test_crc16_1, NULL));
    g_test_suite_add (suite, TESTCASE (test_crc16_2, NULL));
    g_test_suite_add (suite, TESTCASE (test_escape1, NULL));
    g_test_suite_add (suite, TESTCASE (test_escape2, NULL));
    g_test_suite_add (suite, TESTCASE (test_escape_unescape, NULL));
    g_test_suite_add (suite, TESTCASE (test_utils_decapsulate_buffer, NULL));
    g_test_suite_add (suite, TESTCASE (test_utils_encapsulate_buffer, NULL));
    g_test_suite_add (suite, TESTCASE (test_utils_decapsulate_sierra_cns, NULL));
    g_test_suite_add (suite, TESTCASE (test_result_string, NULL));
    g_test_suite_add (suite, TESTCASE (test_result_uint32, NULL));
    g_test_suite_add (suite, TESTCASE (test_result_uint8, NULL));
    g_test_suite_add (suite, TESTCASE (test_result_uint8_array, NULL));

    /* Live tests */
    if (port) {
        g_test_suite_add (suite, TESTCASE (test_com_port_init, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_version_info, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_esn, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_mdn, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_read_roam_pref, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_read_mode_pref, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_read_hybrid_pref, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_read_ipv6_enabled, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_read_hdr_rev_pref, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_status, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_sw_version, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_status_snapshot, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_pilot_sets, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_cm_subsys_state_info, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_hdr_subsys_state_info, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_ext_logmask, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_event_report, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_log_config, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_zte_subsys_status, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_nw_subsys_modem_snapshot_cdma, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_nw_subsys_eri, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_wcdma_subsys_state_info, data->com_data));
        g_test_suite_add (suite, TESTCASE (test_com_gsm_subsys_state_info, data->com_data));
    }

	result = g_test_run ();

	test_data_free (data);

	return result;
}
示例#15
0
int main (int argc, char **argv)
{
    GTestSuite *suite;
    TestData *data;
    gint result;

    g_test_init (&argc, &argv, NULL);

    suite = g_test_get_root ();
    data = test_data_new ();

    g_test_suite_add (suite, TESTCASE (test_cops_response_tm506, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_gt3gplus, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_ac881, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_gtmax36, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_ac860, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_gtm378, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_motoc, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_mf627a, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_mf627b, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_e160g, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_mercury, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_quicksilver, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_icon225, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_icon452, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_f3507g, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_f3607gw, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_mc8775, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_n80, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_e1550, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_mf622, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_e226, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_xu870, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_gtultraexpress, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_n2720, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_gobi, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_sek600i, NULL));

    g_test_suite_add (suite, TESTCASE (test_cops_response_gsm_invalid, NULL));
    g_test_suite_add (suite, TESTCASE (test_cops_response_umts_invalid, NULL));

    g_test_suite_add (suite, TESTCASE (test_creg1_solicited, data));
    g_test_suite_add (suite, TESTCASE (test_creg1_unsolicited, data));
    g_test_suite_add (suite, TESTCASE (test_creg2_mercury_solicited, data));
    g_test_suite_add (suite, TESTCASE (test_creg2_mercury_unsolicited, data));
    g_test_suite_add (suite, TESTCASE (test_creg2_sek850i_solicited, data));
    g_test_suite_add (suite, TESTCASE (test_creg2_sek850i_unsolicited, data));
    g_test_suite_add (suite, TESTCASE (test_creg2_e160g_solicited_unregistered, data));
    g_test_suite_add (suite, TESTCASE (test_creg2_e160g_solicited, data));
    g_test_suite_add (suite, TESTCASE (test_creg2_e160g_unsolicited, data));
    g_test_suite_add (suite, TESTCASE (test_creg2_tm506_solicited, data));
    g_test_suite_add (suite, TESTCASE (test_creg2_xu870_unsolicited_unregistered, data));
    g_test_suite_add (suite, TESTCASE (test_creg2_md400_unsolicited, data));

    g_test_suite_add (suite, TESTCASE (test_cgreg1_solicited, data));
    g_test_suite_add (suite, TESTCASE (test_cgreg1_unsolicited, data));
    g_test_suite_add (suite, TESTCASE (test_cgreg2_f3607gw_solicited, data));
    g_test_suite_add (suite, TESTCASE (test_cgreg2_f3607gw_unsolicited, data));
    g_test_suite_add (suite, TESTCASE (test_cgreg2_md400_unsolicited, data));

    g_test_suite_add (suite, TESTCASE (test_creg_cgreg_multi_unsolicited, data));
    g_test_suite_add (suite, TESTCASE (test_creg_cgreg_multi2_unsolicited, data));

    g_test_suite_add (suite, TESTCASE (test_cscs_icon225_support_response, data));
    g_test_suite_add (suite, TESTCASE (test_cscs_sierra_mercury_support_response, data));
    g_test_suite_add (suite, TESTCASE (test_cscs_buslink_support_response, data));
    g_test_suite_add (suite, TESTCASE (test_cscs_blackberry_support_response, data));

    result = g_test_run ();

    test_data_free (data);

    return result;
}
示例#16
0
void vbox2_d_utests_testbed_main (gchar** args, int args_length1) {
	VBox2DTestbedFrameworkTestbedModel* model = NULL;
	VBox2DTestbedFrameworkTestbedModel* _tmp0_ = NULL;
	VBox2DTestbedFrameworkTestbedModel* _tmp1_ = NULL;
	VBox2DUtestsTestbedTestDebugDraw* _tmp2_ = NULL;
	VBox2DUtestsTestbedTestDebugDraw* _tmp3_ = NULL;
	VBox2DTestbedFrameworkTestbedModel* _tmp4_ = NULL;
#line 48 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
	g_test_init (&args_length1, &args, NULL);
#line 50 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
	_tmp0_ = vbox2_d_testbed_framework_testbed_model_new ();
#line 50 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
	model = _tmp0_;
#line 51 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
	_tmp1_ = model;
#line 51 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
	_tmp2_ = vbox2_d_utests_testbed_test_debug_draw_new ();
#line 51 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
	_tmp3_ = _tmp2_;
#line 51 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
	vbox2_d_testbed_framework_testbed_model_setDebugDraw (_tmp1_, (VBox2DCallbacksDebugDraw*) _tmp3_);
#line 51 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
	_vbox2_d_callbacks_debug_draw_unref0 (_tmp3_);
#line 53 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
	_tmp4_ = model;
#line 53 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
	vbox2_d_testbed_framework_test_list_populateModel (_tmp4_);
#line 409 "test-main.c"
	{
		gint i = 0;
#line 55 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
		i = 0;
#line 414 "test-main.c"
		{
			gboolean _tmp5_ = FALSE;
#line 55 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
			_tmp5_ = TRUE;
#line 55 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
			while (TRUE) {
#line 421 "test-main.c"
				gint _tmp7_ = 0;
				VBox2DTestbedFrameworkTestbedModel* _tmp8_ = NULL;
				gint _tmp9_ = 0;
				VBox2DTestbedFrameworkTestbedTest* test = NULL;
				VBox2DTestbedFrameworkTestbedModel* _tmp10_ = NULL;
				gint _tmp11_ = 0;
				VBox2DTestbedFrameworkTestbedTest* _tmp12_ = NULL;
				VBox2DTestbedFrameworkTestbedTest* _tmp13_ = NULL;
#line 55 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
				if (!_tmp5_) {
#line 432 "test-main.c"
					gint _tmp6_ = 0;
#line 55 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
					_tmp6_ = i;
#line 55 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
					i = _tmp6_ + 1;
#line 438 "test-main.c"
				}
#line 55 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
				_tmp5_ = FALSE;
#line 55 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
				_tmp7_ = i;
#line 55 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
				_tmp8_ = model;
#line 55 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
				_tmp9_ = vbox2_d_testbed_framework_testbed_model_getTestsSize (_tmp8_);
#line 55 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
				if (!(_tmp7_ < _tmp9_)) {
#line 55 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
					break;
#line 452 "test-main.c"
				}
#line 56 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
				_tmp10_ = model;
#line 56 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
				_tmp11_ = i;
#line 56 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
				_tmp12_ = vbox2_d_testbed_framework_testbed_model_getTestAt (_tmp10_, _tmp11_);
#line 56 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
				test = _tmp12_;
#line 57 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
				_tmp13_ = test;
#line 57 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
				if (_tmp13_ != NULL) {
#line 466 "test-main.c"
					GTestSuite* _tmp14_ = NULL;
					VBox2DTestbedFrameworkTestbedTest* _tmp15_ = NULL;
					VBox2DTestbedFrameworkTestbedModel* _tmp16_ = NULL;
					VBox2DUtestsTestbedTestbedTestCase* _tmp17_ = NULL;
					VBox2DUtestsTestbedTestbedTestCase* _tmp18_ = NULL;
					GTestSuite* _tmp19_ = NULL;
#line 58 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
					_tmp14_ = g_test_get_root ();
#line 58 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
					_tmp15_ = test;
#line 58 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
					_tmp16_ = model;
#line 58 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
					_tmp17_ = vbox2_d_utests_testbed_testbed_test_case_new (_tmp15_, _tmp16_);
#line 58 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
					_tmp18_ = _tmp17_;
#line 58 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
					_tmp19_ = vbox2_d_utests_test_case_get_suite ((VBox2DUtestsTestCase*) _tmp18_);
#line 58 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
					g_test_suite_add_suite (_tmp14_, _tmp19_);
#line 58 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
					_g_object_unref0 (_tmp18_);
#line 489 "test-main.c"
				}
#line 55 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
				_g_object_unref0 (test);
#line 493 "test-main.c"
			}
		}
	}
#line 62 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
	g_test_run ();
#line 46 "/media/shared/projects/current/vbox2d/tests/testbed/test-main.vala"
	_vbox2_d_testbed_framework_testbed_model_unref0 (model);
#line 501 "test-main.c"
}
int main (int argc, char **argv)
{
	GTestSuite *suite;
	gint result;
	TestData *data;

	g_test_init (&argc, &argv, NULL);

	suite = g_test_get_root ();
	data = test_data_new ();

	/* Test that hashes are different with the same SSID but different AP flags */
	g_test_suite_add (suite, TESTCASE (test_ap_hash_infra_adhoc_open, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_infra_adhoc_wep, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_infra_adhoc_wpa, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_infra_adhoc_rsn, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_infra_adhoc_wpa_rsn, data));

	g_test_suite_add (suite, TESTCASE (test_ap_hash_infra_open_wep, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_infra_open_wpa, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_infra_open_rsn, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_infra_open_wpa_rsn, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_infra_wep_wpa, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_infra_wep_rsn, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_infra_wep_wpa_rsn, data));

	g_test_suite_add (suite, TESTCASE (test_ap_hash_adhoc_open_wep, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_adhoc_open_wpa, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_adhoc_open_rsn, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_adhoc_open_wpa_rsn, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_adhoc_wep_wpa, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_adhoc_wep_rsn, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_adhoc_wep_wpa_rsn, data));

	/* Test that wpa, rsn, and wpa_rsn all have the same hash */
	g_test_suite_add (suite, TESTCASE (test_ap_hash_infra_wpa_rsn, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_infra_wpa_wpa_rsn, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_infra_rsn_wpa_rsn, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_adhoc_wpa_rsn, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_adhoc_wpa_wpa_rsn, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_adhoc_rsn_wpa_rsn, data));

	/* Test that hashes are different with the same AP flags but different SSID */
	g_test_suite_add (suite, TESTCASE (test_ap_hash_foobar_asdf11_infra_open, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_foobar_asdf11_infra_wep, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_foobar_asdf11_infra_wpa, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_foobar_asdf11_infra_rsn, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_foobar_asdf11_infra_wpa_rsn, data));

	g_test_suite_add (suite, TESTCASE (test_ap_hash_foobar_asdf11_adhoc_open, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_foobar_asdf11_adhoc_wep, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_foobar_asdf11_adhoc_wpa, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_foobar_asdf11_adhoc_rsn, data));
	g_test_suite_add (suite, TESTCASE (test_ap_hash_foobar_asdf11_adhoc_wpa_rsn, data));

	result = g_test_run ();

	test_data_free (data);

	return result;
}
示例#18
0
void _vala_main (gchar** args, int args_length1) {
	GTestSuite* _tmp0_ = NULL;
	ObjectTests* _tmp1_ = NULL;
	ObjectTests* _tmp2_ = NULL;
	GTestSuite* _tmp3_ = NULL;
	GTestSuite* _tmp4_ = NULL;
	ObjectManagerTests* _tmp5_ = NULL;
	ObjectManagerTests* _tmp6_ = NULL;
	GTestSuite* _tmp7_ = NULL;
	GTestSuite* _tmp8_ = NULL;
	PluginManagerTests* _tmp9_ = NULL;
	PluginManagerTests* _tmp10_ = NULL;
	GTestSuite* _tmp11_ = NULL;
	GTestSuite* _tmp12_ = NULL;
	WorkspaceTests* _tmp13_ = NULL;
	WorkspaceTests* _tmp14_ = NULL;
	GTestSuite* _tmp15_ = NULL;
#line 13 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	clutter_init (&args_length1, &args);
#line 14 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	gtk_test_init (&args_length1, &args, NULL);
#line 16 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_tmp0_ = g_test_get_root ();
#line 16 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_tmp1_ = object_tests_new ();
#line 16 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_tmp2_ = _tmp1_;
#line 16 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_tmp3_ = valarade_test_tools_test_case_get_suite ((ValaradeTestToolsTestCase*) _tmp2_);
#line 16 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	g_test_suite_add_suite (_tmp0_, _tmp3_);
#line 16 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_g_object_unref0 (_tmp2_);
#line 17 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_tmp4_ = g_test_get_root ();
#line 17 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_tmp5_ = object_manager_tests_new ();
#line 17 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_tmp6_ = _tmp5_;
#line 17 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_tmp7_ = valarade_test_tools_test_case_get_suite ((ValaradeTestToolsTestCase*) _tmp6_);
#line 17 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	g_test_suite_add_suite (_tmp4_, _tmp7_);
#line 17 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_g_object_unref0 (_tmp6_);
#line 18 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_tmp8_ = g_test_get_root ();
#line 18 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_tmp9_ = plugin_manager_tests_new ();
#line 18 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_tmp10_ = _tmp9_;
#line 18 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_tmp11_ = valarade_test_tools_test_case_get_suite ((ValaradeTestToolsTestCase*) _tmp10_);
#line 18 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	g_test_suite_add_suite (_tmp8_, _tmp11_);
#line 18 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_g_object_unref0 (_tmp10_);
#line 19 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_tmp12_ = g_test_get_root ();
#line 19 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_tmp13_ = workspace_tests_new ();
#line 19 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_tmp14_ = _tmp13_;
#line 19 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_tmp15_ = valarade_test_tools_test_case_get_suite ((ValaradeTestToolsTestCase*) _tmp14_);
#line 19 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	g_test_suite_add_suite (_tmp12_, _tmp15_);
#line 19 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	_g_object_unref0 (_tmp14_);
#line 21 "/home/bizarro/Documents/projects/valarade/tests/libvalarade/test-main.vala"
	g_test_run ();
#line 151 "test-main.c"
}