1 #include <../libmoldeo/moText.h>
2 #include <../libmoldeo/moResourceManager.h>
3 #include <../libmoldeo/moDataManager.h>
4 #include <../libmoldeo/moConsole.h>
30 moText(
"session_file_name"),
33 fail_unless(DataSessionConfig != NULL);
46 delete DataSessionConfig;
53 fail_unless(DataSession != NULL);
64 fail_unless(DataManager != NULL);
79 fail_unless(ResourceManager != NULL);
80 delete ResourceManager;
88 fail_unless(MoldeoSession != NULL);
99 Suite *s = suite_create(
"libmoldeo");
100 TCase *tc = tcase_create(
"core");
101 tcase_add_test(tc, test_text);
102 tcase_add_test(tc, test_data_session_config);
103 suite_add_tcase(s, tc);
115 SRunner *sr = srunner_create(s);
116 srunner_set_log(sr,
"check_libmoldeo.log");
117 srunner_run_all(sr, CK_NORMAL);
118 nf = srunner_ntests_failed(sr);
120 return (nf == 0) ? 0 : 1;
Administrador de recursos.
int main(int argc, char *argv[])
END_TEST Suite * libmoldeo_suite(void)