summaryrefslogtreecommitdiff
path: root/src/tests/ecore_con (follow)
AgeCommit message (Collapse)Author
2019-10-18tests/ecore_con: clarify pointer usage in ecore_con_url testsMike Blumenkrantz
Summary: this was pretty bizarre CID 1401029 Reviewers: cedric Reviewed By: cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10450
2019-10-11ecore_con: do not crash in test if nothing is returned by Ecore_Con_Url.Cedric BAIL
Summary: Depends on D10362 Reviewers: zmike, bu5hm4n, segfaultxavi, stefan_schmidt Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10363
2019-06-24remove last bits of Evil.h in tests and use evil_private.h insteadVincent Torri
Test Plan: compilation Reviewers: zmike, raster, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9154
2019-06-20tests: fix warnings and undef ref on Windows (using meson :-) )Vincent Torri
Summary: we need to include evil_private.h so that some symbols are declared Test Plan: compilation Reviewers: raster, zmike, cedric Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9129
2019-02-13eolian: drop class function overridingMarcel Hollerbach
Until this commit eo did class functions as part of the vtable, which enabled those functions to be overwritten in classes inheriting another class. However in task T7675 we decided that this is not really good for bindings, as most OOP languages do not support this sort of feature. After this commit eolian realizes class function completly outside of the vtable, the c-symbol that is the class funciton is now just directly redirecting to a implementation, without the involvement of the vtable. This also means a change to the syntax created by eo: Calling before: class_function(CLASS_A); Calling after: class_function(); Implementation before: class_function(const Eo *obj, void *pd) { ... } Implementation after: class_function(void) { ... } This fixes T7675. Co-authored-by: lauromauro <lauromoura@expertisesolutions.com.br> Reviewed-by: Daniel Kolesa <daniel@octaforge.org> Differential Revision: https://phab.enlightenment.org/D7901
2019-02-01replace hton and ntoh family functions with ones defined in einaVincent Torri
Summary: This fixes especially the execution of edje_cc on Windows Test Plan: execution of edje_cc Reviewers: cedric, raster Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7834
2018-12-20cmake: remove!Marcel Hollerbach
This build was never complete and also was not maintained probebly. It is also dropped in favour of meson which is cool, merged, works & is fast. Differential Revision: https://phab.enlightenment.org/D7010
2018-12-07ecore_con: no need for a long timeout when we know the test is supposed to ↵Cedric BAIL
timeout. Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Differential Revision: https://phab.enlightenment.org/D7422
2018-12-06ecore_con: properly track each handler separately and destroy each only once.Cedric BAIL
Differential Revision: https://phab.enlightenment.org/D7400
2018-12-06ecore_con: reinit ecore_con after complete shutdown so that suite ↵Cedric BAIL
ecore_con_shutdown doesn't complain. Differential Revision: https://phab.enlightenment.org/D7399
2018-12-06ecore_con: fix multi shutdown excessive warning by initializing ecore ↵Cedric BAIL
independently. Differential Revision: https://phab.enlightenment.org/D7398
2018-11-09xxx - fix eina_future_then calls to pass sotrage val - fix warnsCarsten Haitzler (Rasterman)
2018-10-02here comes mesonMarcel Hollerbach
a new shiny buildtool that currently completes in the total of ~ 4 min.. 1 min. conf time 2:30 min. build time Where autotools takes: 1:50 min. conf time 3:40 min. build time. meson was taken because it went quite good for enlightenment, and is a traction gaining system that is also used by other mayor projects. Additionally, the DSL that is defined my meson makes the configuration of the builds a lot easier to read. Further informations can be gathered from the README.meson Right now, bindings & windows support are missing. It is highly recommented to use meson 0.48 due to optimizations in meson that reduced the time the meson call would need. Co-authored-by: Mike Blumenkrantz <zmike@samsung.com> Differential Revision: https://phab.enlightenment.org/D7012 Depends on D7011
2018-07-10tests/ecore-con: add a global timeout timer for all testsMike Blumenkrantz
Summary: it's possible for many tests in this suite to hang indefinitely, so ensure that they terminate eventually instead of holding up the build ref T6838 Reviewers: stefan_schmidt, bu5hm4n, devilhorns, Hermet Reviewed By: Hermet Subscribers: cedric, #committers Tags: #efl Maniphest Tasks: T6838 Differential Revision: https://phab.enlightenment.org/D6542
2018-07-03tests/ecore-con: fix dns test to use correct orderingMike Blumenkrantz
Summary: it's unclear to me why this test was implemented with the expected event ordering of SERVER_DEL -> SERVER_ERROR; going as far back as efl 1.7, the behavior has always been ERROR -> DEL this fixes the test to verify the expected event ordering on a dns resolve failure Depends on D6481 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6482
2018-06-18ecore_con: fix possible segfaultMarcel Hollerbach
with -O3 i get a segfault in this test. (with gcc and clang) It looks like the compilers are doing constant folding because we declared the struct as constant, however, due to using the address of the fild the keyword const is simply not true, thus we are getting a segfault because the address returned by &desc is not correct anymore, due to the fact the constants are rolled out. Differential Revision: https://phab.enlightenment.org/D6309
2018-05-24Revert "efl_add_ref - fis to use efl_add properly with a parent."Cedric BAIL
This reverts commit 2fb5cc3ad09f6aaf82b5d1131ac5ed22ed848bd4. Most of this change where wrong as they didn't affect the destruction of the object. efl_add_ref allow for manual handling of the lifecycle of the object and make sure it is still alive during destructor. efl_add will not allow you to access an object after invalidate also efl.parent.get will always return NULL once the object is invalidated. Differential Revision: https://phab.enlightenment.org/D6062
2018-05-01ecore: move close_on_destructor to close_on_invalidate as that describe the ↵Cedric BAIL
behavior best. Fix all use to correctly behave on invalidate.
2018-05-01ecore_con: migrate efl_net_ip_address_resolve to use Eina_Future.Cedric BAIL
2018-04-05tests: move to using checked fixtures for all test suitesMike Blumenkrantz
individual tests should not need to explicitly call init/shutdown functions in most cases, and many did not properly do this anyway see followup commit which resolves some issues with eina tests ref T6813 ref T6811 Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
2018-04-05tests: add instrumentation to existing tests to find slow testsMike Blumenkrantz
efl_check.h must be included and the EFL_START/END_TEST macros must be used in place of normal START/END_TEST macros timing is enabled when TIMING_ENABLED is set https://phab.enlightenment.org/w/improve_tests/ Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
2018-03-29efl_add_ref - fis to use efl_add properly with a parent.Carsten Haitzler (Rasterman)
fixes bc18b7e7ad1f8c5d587400b27fabab0865017011 and 168849e8a08966ecc284e28f64126a3a85965965
2018-03-20efl: use efl_add_ref to create objects which have no parentCedric BAIL
Signed-off-by: Mike Blumenkrantz <zmike@osg.samsung.com>
2018-03-03Revert "cxx: Fix manual code after efl_app change."Carsten Haitzler (Rasterman)
This reverts commit 135154303bea691c6f7f9472a5dec32d9103c38d. Revert "efl: move signal events from efl.loop to efl.app" This reverts commit 3dbca39f98288580c62a43c179ac11621433ec88. Revert "efl: add test suite for efl_app" This reverts commit 3e94be5d73256a7f5c02d3a9474173226be7beff. Revert "efl: create Efl.App class, the parent of Efl.Loop" This reverts commit 28fe00b94e55575c15684959b89a614d5a579309. Go back to before efl.app because I think this should be done with superclassing here not a parent object. reasons? 1. multiple loops per single thread make no sense. so if multilpe loop objects they wont be contained in a single app object and then deleted like this. 2. the app object is not really sharable in this design so it cant be accessed from other threads 3. it makes it harder to get the main loop or app object (well 2 func calls one calling the other and more typing. it is longer to type and more work where it is not necessary, and again it can't work from other threads unless we go duplicating efl.app per thread and then what is the point of splittyign out the signal events from efl.loop then?) etc.
2018-02-26efl: create Efl.App class, the parent of Efl.LoopMike Blumenkrantz
2018-01-02ecore_con: switch from 1234 to AF_UNSPECMarcel Hollerbach
there are systems where sa_family_t is a enum, so assigning 1234 will lead to compililation errors on picky systems
2018-01-02efl loop - rename ecore_main_loop_get to efl_main_loop_getCarsten Haitzler (Rasterman)
ecore_main_loop_get() is really a new "eo api" but it's using our old ecore_* namespace, so move to the new efl namespace.
2017-12-03ecore: rename efl_loop_Eina_FutureXXX_timeout to efl_loop_timeout.Cedric Bail
2017-12-01ecore_con: use eina_future based timeout for tests.Cedric Bail
2017-09-22EFL For WIN32: Replace HAVE_EVIL define with _WIN32Vincent 'vtorri' Torri
2017-07-29tests - make ecore con test suite reliable and workCarsten Haitzler (Rasterman)
basically ecore_con's test suite was broken. ipv6 checks were broken. you now need to set an env var to get ipv6 tested. using eocre_con to detetc it didnt init eina or ecore_con and if you do init these then the other tests that check return values from these fail... so make it an env var if you want to test ipv6. now it's reliable and works!
2017-03-07removing duplicates winsock2.hIvan Furs
Summary: winsock2.h included in Ecore.h But Ecore.h ' is included in /bin/efreet/efreet_desktop_cache_create.c src/bin/efreet/efreet_mime_cache_create.c src/tests/ecore_con/ecore_con_test_efl_net_ip_address.c Reviewers: NikaWhite, cedric, raster, an.kroitor Reviewed By: raster Subscribers: artem.popov, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4687
2017-02-03ifdef RUN_IN_TREE logic.Gustavo Sverzut Barbieri
This logic is only needed for autotools, cmake will replicate the installation file structure and thus eina_prefix works out of box.
2017-01-27cmake: add ecore_con.Gustavo Sverzut Barbieri
2016-12-19tests/ecore_con: skip ipv6 tests if that's disabled on the running system.Gustavo Sverzut Barbieri
2016-12-19more eo simplified to use Eina_Slice instead of pointer to.Gustavo Sverzut Barbieri
Working directly with Eina_Slice is easier than a pointer to it, requires no validation of the pointers and is cheap since it's just putting together size_t + void*. However we can't hint the user of 'const(Eina.Slice)' properties as Eolian is incorrectly generating getters as: const Eina_Slice class_property_get(...) which is makes compilers complain about ignored qualifiers: ../src/lib/ecore/efl_io_copier.eo.h:329:7: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] Leave some TODO so @q66 can fix those.
2016-12-15ecore_con: fix incompatible type warning.Cedric BAIL
2016-12-15ecore_con: fix misleading indentation warning.Cedric BAIL
2016-12-14ecore con tests: fix missing includeDaniel Kolesa
2016-12-12test efl_net_ip_address: also check localhost6.Gustavo Sverzut Barbieri
Fedora and other systems use localhost6 for ::1, then use that in addition to localhost.
2016-12-12test efl_net_ip_address: check if /etc/hosts has '::1 localhost'Gustavo Sverzut Barbieri
it seems that the bot and some users do not have ::1 localhost in /etc/hosts, check for that and print it out. be more verbose on resolve errors, showing the results and error code. also allow more time for resolution, otherwise the local timeout may expire before getaddrinfo() returns with failures.
2016-12-12efl_net: add Efl.Net.Ip_AddressGustavo Sverzut Barbieri
This is a string parser, serializer and asynchronous resolver. It's purpose is to convert to and from the strings we use in our dialers and servers, such as "127.0.0.1:1234" or "[::1]:1234", properties allow to check the family, port, address bytes (slice) and even get a struct sockaddr pointer to use with bind()/connect() in outside code. It will also offer some utilities present in netinet/in.h in an easy to use way, after all IN6_IS_ADDR_LOOPBACK() works one way, while there is no IN_LOOPBACK and comparing with INADDR_LOOPBACK will lead to errors since it's in network order. Last but not least, it will do asynchronous resolve of host and port names using an internal thread and getaddrinfo(). The results are delivered using a Future with an array of objects.
2016-08-05ecore con eet test - dont use localhost port 8080Carsten Haitzler (Rasterman)
so thats a common local port to use for other things... 8080 - don't use it, so use 12346 much like 12345 is for the other tests. far less likely to clash. fix up tests to work better.
2016-08-02tests: ecore_con: make sure info is initializedStefan Schmidt
One test does init info before passing it to _url_compl_cb while two others are not. Also test if inof is NULL in callback here to avoid crashes. tests/ecore_con/ecore_con_test_ecore_con_url.c:194:4: warning: 'info' may be used uninitialized in this function [-Wmaybe-uninitialized] ecore_event_handler_add(ECORE_CON_EVENT_URL_COMPLETE,
2016-05-24ecore-con tests - remove WRONG connect checkCarsten Haitzler (Rasterman)
sothe ecore-con tests were calling ecore_con_server_connected_get() every time a server was created on a NUL server object. WTF? this is pointless. testing if an api returns tre on being connected on an invalid object? all it does is create lots of eo noise. remove so we can see the real errors in the output. @fix
2016-02-16Test rework #2: Ecore_ConVincent Torri
2015-11-09ecore_con: adding test case for ecore_con_url_status_code_get.Srivardhan Hebbar
Summary: Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: cedric Differential Revision: https://phab.enlightenment.org/D3289 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-03tests/ecore_con: check saved env variables before setting them again.Stefan Schmidt
We see segfaults on Jenkins with these two test cases. Better check before setting them as we had similar problems before on this setup as XDG_RUNTIME_DIR might never be set.
2015-11-02emile/ecore_con: drop SSLv3 support due to security issue.Cedric BAIL
SSLv3 has been compromised a year ago by what is known as POODLE (https://en.wikipedia.org/wiki/POODLE). Every major browser have now dropped support for SSLv3 and distribution are starting to do so also. It is a good timing for us to do so, especially as it breaks build on some distribution.
2015-10-12ecore_con: be more defensive while using environment variable provided by ↵Cedric BAIL
the system. This fix a crash during make check for system where one of those string where not defined.