Commit Graph

17 Commits

Author SHA1 Message Date
Srivardhan Hebbar 5a0588c256 ecore_con: add tests cases to cover more scenarios in local sockets.
Summary:
In this patch, ecore_test_ecore_con_local_system_negport test case was failing.

Note that this patch does play with some environment variable to check more
code path in ecore_con.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2176

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-18 15:57:28 +01:00
Daniel Zaoui d33508f407 Tests: fix warnings.
@TAsn, I checked the code to be sure nothing is wrong :P
2015-03-18 11:26:29 +02:00
Srivardhan Hebbar cd5e21591a ecore_con: add more test cases related to ssl functions.
Summary:

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2137

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-13 09:33:29 +01:00
Cedric BAIL 85b5393ea9 ecore_con: fix uninitialized warning in tests suite. 2015-03-12 07:43:59 +01:00
Srivardhan Hebbar 5b27425782 ecore_con: add test cases related to SSL.
Summary:
Add test cases related to SSL. Now it is not crashing and all test cases passes.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2095

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-06 20:19:21 +01:00
Cedric BAIL 272e8b70ff ecore: remove warning from tests case. 2015-02-23 17:35:22 +01:00
Srivardhan Hebbar 53172c2d79 ecore_con: add ecore con client functions for testing.
Summary: Added ecore con client functions to the existing cases to cover more functions.

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1958

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-11 17:23:35 +01:00
Srivardhan Hebbar 024880add4 ecore_con: add test cases to test ecore_con_server and client with different options.
Summary: Before ecore_con_server_add and client add with only TCP sockets. Have made that function generic and testing for other options too. Not all options are covered. Need to add different kind of cases for other options. Will check how I can add and add.

Reviewers: stefan_schmidt, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1939

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-09 22:03:27 +01:00
Srivardhan Hebbar be5b00cfd1 ecore_con: Added test case to check if _ecore_con_init_count goes below zero.
Summary:
_ecore_con_init_count should not go below zero. I've added a test case to test this and also the code to fix this.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1603
2014-10-29 08:24:53 -04:00
Mike Blumenkrantz 662c726652 remove unnecessary header include from ecore-con test 2014-07-28 09:48:18 -04:00
Cedric BAIL 923459f926 ecore: fix tests to avoid failure on successful initialization.
This patch is necessary to work around the fact that if you have some
ecore system module installed, they will be initialized and may use another
library like eldbus that will call ecore_init again. So ecore_init will be
different from 1, but still be a success.

My patch does introduce a work around a problem in that situation. Calling
ecore_shutdown wont work at this stage, as we do have module that did initialize
ecore also. And the only way to make ecore_shutdown happen is to unload those
module and that wont happen as they where initialized from inside ecore... lala !

Yes, we never shutdown ecore properly when we have ecore module that use
something like eldbus.
2013-12-23 11:44:52 +09:00
Tom Hacohen 99c8652dec Ecore con dns test: Fix test hangs.
This should fix the test hangs on Jenkins. Fixed them for me.
The problem was, that the timeout was not handled correctly.
The server object was deleted, but the mainloop was not stopped.
2013-11-25 15:45:01 +00:00
Guillaume Friloux 329c646218 This adds the test case for the DNS error patch.
Do not set the timeout value to something too low or you walk over
another bug i discovered and that needs a lil talk.
2013-11-06 14:32:11 +01:00
Daniel Willmann 4cd116db19 tests/ecore_con: Sadly IPv4 is still more prevalent than IPv6
Switch to IPv4 loopback - especially since our build slaves don't have
IPv6 support...

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-05-24 14:43:32 +01:00
Daniel Willmann 7d654ec027 ecore_con: Reenable ecore_con tests - they seem fine (but don't use port 8080)
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-05-24 11:47:47 +01:00
Gustavo Sverzut Barbieri 22a48925b1 ecore_suite: disable ecore_con tests that are bogus for an unit test.
these are more like examples or test applications than an unit
test. Needs to re-do.



SVN revision: 82893
2013-01-16 18:16:14 +00:00
Vincent Torri 128074a2bd Ecore: merge unit tests, ignore++
SVN revision: 80090
2012-12-03 18:29:51 +00:00