2015-02-23 05:44:48 -08:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
|
|
|
|
2016-08-02 00:29:58 -07:00
|
|
|
#include <Eina.h>
|
|
|
|
|
2015-02-23 05:44:48 -08:00
|
|
|
#include "eio_suite.h"
|
2016-02-04 05:51:07 -08:00
|
|
|
#include "../efl_check.h"
|
2018-03-27 10:51:13 -07:00
|
|
|
#include <Eio.h>
|
2018-08-16 07:16:43 -07:00
|
|
|
#include <Efreet.h>
|
2015-02-23 05:44:48 -08:00
|
|
|
|
2018-06-19 10:33:19 -07:00
|
|
|
EFL_START_TEST(eio_init_test)
|
2018-09-03 22:58:10 -07:00
|
|
|
{
|
|
|
|
}
|
2018-06-19 10:33:19 -07:00
|
|
|
EFL_END_TEST
|
|
|
|
|
|
|
|
static void
|
|
|
|
eio_test_init(TCase *tc)
|
|
|
|
{
|
|
|
|
tcase_add_test(tc, eio_init_test);
|
|
|
|
}
|
|
|
|
|
2016-02-04 05:51:07 -08:00
|
|
|
static const Efl_Test_Case etc[] = {
|
2018-06-19 10:33:19 -07:00
|
|
|
{"Eio", eio_test_init},
|
2016-05-30 11:54:01 -07:00
|
|
|
{"Eio_Monitor", eio_test_monitor},
|
|
|
|
{"Eio_Sentry", eio_test_sentry},
|
efl_model : rename all efl_model based classes.
Summary:
As the result of discussion in T7458,
we need to rename all efl_model based classes with efl_XXX_Model sequence.
I've run few vote for this, see V42, V43
few classes are totally renamed as our consideration of misnaming.
| Efl.Model_Loop | Efl.Loop_Model |
| Efl.Model_Item | Efl.Generic_Model |
| Efl.Model_Container | Efl.Container_Model |
| Efl.Model_Container_Item | Efl.Container_Model_Item |
| Efl.Model_Composite | Efl.Composite_Model |
| Efl.Model_Composite_Boolean | Efl.Boolean_Model |
| Efl.Model_Composite_Boolean_Chlidren | Efl.Boolean_Model_Item |
| Efl.Model_Composite_Selection | Efl.Select_Model |
| Efl.Model_Composite_Selection_Chlidren | Efl.Select_Model_Item |
| Efl.Model_View | Efl.View_Model |
| Eio.Model | Efl.Io.Model |
| Efl.Ui.Model_State | Efl.Ui.State_Model |
| Efl.Ui.Model_Size | Efl.Ui.Size_Model |
| Efl.Ui.Model_Exact | Efl.Ui.Exact_Model |
| Efl.Ui.Model_Average | Efl.Ui.Average_Model |
| Efl.Ui.Model_Homogeneous | Efl.Ui.Homogeneous_Model |
I worried about Efl.Io.Model changes, cause it is widely used,
but as I tested, there is no issue found yet.
Eldbus.Model also may can changed Efl.Dbus.Model,
but I cannot found any class who using Efl.Dbus namespace,
so I left it future work.
Test Plan:
Run the Make Test,
it works well except Efl test about selection.
there are class inheritance problem exist in select_model,
I reported it and will fix it in another patch.
Reviewers: cedric, felipealmeida, woohyun, Hermet
Reviewed By: cedric
Subscribers: lauromoura
Tags: #efl, #do_not_merge
Differential Revision: https://phab.enlightenment.org/D7533
2019-01-30 20:35:34 -08:00
|
|
|
{"Efl Io Model", efl_io_model_test_file},
|
|
|
|
{"Efl Io Model Monitor", efl_io_model_test_monitor_add},
|
2016-05-30 11:54:01 -07:00
|
|
|
{"Eio File", eio_test_file},
|
2016-04-12 12:00:23 -07:00
|
|
|
{"Eio Job", eio_test_job},
|
2016-05-30 11:54:01 -07:00
|
|
|
#ifdef XATTR_TEST_DIR
|
|
|
|
{"Eio_Xattr", eio_test_xattr},
|
|
|
|
{"Eio Job Xattr", eio_test_job_xattr},
|
|
|
|
#endif
|
2016-06-06 08:44:38 -07:00
|
|
|
{"Eio_Map", eio_test_map},
|
2016-06-06 07:47:49 -07:00
|
|
|
{"Eio_Eet", eio_test_eet},
|
2015-02-23 05:44:48 -08:00
|
|
|
{NULL, NULL}
|
|
|
|
};
|
|
|
|
|
2018-03-27 10:51:13 -07:00
|
|
|
SUITE_INIT(eio)
|
|
|
|
{
|
2018-06-19 10:33:19 -07:00
|
|
|
ck_assert_int_eq(eio_init(), 1);
|
2018-03-27 10:51:13 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
SUITE_SHUTDOWN(eio)
|
|
|
|
{
|
2018-06-19 10:33:19 -07:00
|
|
|
ck_assert_int_eq(eio_shutdown(), 0);
|
2018-03-27 10:51:13 -07:00
|
|
|
}
|
|
|
|
|
2015-02-23 05:44:48 -08:00
|
|
|
int
|
|
|
|
main(int argc, char **argv)
|
|
|
|
{
|
2016-02-04 05:51:07 -08:00
|
|
|
int failed_count;
|
2015-02-23 05:44:48 -08:00
|
|
|
|
2018-08-16 07:16:43 -07:00
|
|
|
efreet_cache_disable();
|
2016-02-04 05:51:07 -08:00
|
|
|
if (!_efl_test_option_disp(argc, argv, etc))
|
|
|
|
return 0;
|
2015-02-23 05:44:48 -08:00
|
|
|
|
2017-02-03 05:49:38 -08:00
|
|
|
#ifdef NEED_RUN_IN_TREE
|
2015-02-23 05:44:48 -08:00
|
|
|
putenv("EFL_RUN_IN_TREE=1");
|
2017-02-03 05:49:38 -08:00
|
|
|
#endif
|
2015-02-23 05:44:48 -08:00
|
|
|
|
2018-06-19 10:33:30 -07:00
|
|
|
eio_monitoring_interval_set(0.05);
|
2016-07-28 20:53:34 -07:00
|
|
|
eina_init();
|
|
|
|
|
2016-02-04 05:51:07 -08:00
|
|
|
failed_count = _efl_suite_build_and_run(argc - 1, (const char **)argv + 1,
|
2018-03-27 10:51:13 -07:00
|
|
|
"Eio", etc, SUITE_INIT_FN(eio), SUITE_SHUTDOWN_FN(eio));
|
2015-02-23 05:44:48 -08:00
|
|
|
|
2016-07-28 20:53:34 -07:00
|
|
|
eina_shutdown();
|
|
|
|
|
2015-02-23 05:44:48 -08:00
|
|
|
return (failed_count == 0) ? 0 : 255;
|
|
|
|
}
|