Commit Graph

333 Commits

Author SHA1 Message Date
Felipe Magno de Almeida 6d43adaaf4 eina: Fix memory leaks in promise 2016-05-07 13:55:18 -03:00
Cedric BAIL 359657f1f1 ecore: add tests case for Efl.Loop.Fd. 2016-05-06 15:35:36 -07:00
Cedric BAIL a1bd7a7499 ecore: add timeout promise test. 2016-05-04 15:42:59 -07:00
Cedric BAIL 950701b738 ecore: silence warning in job test. 2016-05-04 15:42:59 -07:00
Cedric Bail 664d677201 ecore: add test case for Efl.Loop.Job. 2016-05-02 18:17:09 -07:00
Cedric Bail cfdc09fa93 ecore: fix promise test wrong use of EINA_UNUSED. 2016-05-02 18:17:09 -07:00
Felipe Magno de Almeida f534fb8943 ecore: add tests for promises with ecore_thread_promise_run
Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2016-04-05 11:35:12 -07:00
Tom Hacohen 8706d03b43 Change the EFL according to the renaming of the eo_add() current object. 2016-03-15 15:25:54 +00:00
Tom Hacohen f24210caac Revert "Automatic migration to the new eo_add syntax."
This reverts commit 4f949a2757.
2016-03-11 12:29:03 +00:00
Tom Hacohen 4f949a2757 Automatic migration to the new eo_add syntax. 2016-03-09 16:09:14 +00:00
Tom Hacohen 7d8cd6c40f Revert "ecore: Create Promises"
Reverting this at Felipe's request following my email. There are many
things I strongly object to in this commit. I've touched the surface of
those on the ML (which doesn't work at the moment), though we need to
better discuss it.

The gist:
1. dlsym is a really bad hack that is not even needed.
2. I don't see why eo should even be aware of promises. It's not aware
of list, hash and etc.
3. The eolian changes were done wrong.

This should have been discussed and consulted before done, even if only
because of the amount of hacks it includes and the cross-domain (ecore,
eo and eolian) nature of it.

This reverts commit f9ba80ab33.
2016-03-08 14:23:57 +00:00
Felipe Magno de Almeida f9ba80ab33 ecore: Create Promises
Add a promise object that allows Eolian interface to include promises
as a way to have asynchronous value return and composibility.

The usage is like this in a .eo file:

class Foo {
   methods {
      bar {
         params {
            promise: Promise<int>;
         }
      }
   }
}

Which will create the following API interface:

void foo_bar(Ecore_Promise** promise);

and the equivalent declaration for implementation.

However, the API function will instantiate the Promise for the
user and the implementer of the class.
2016-03-06 17:55:33 -03:00
Stefan Schmidt d32aa995e0 tests: disable loading of the scim module as this can causes hangs of the tests
With scim installed we can run into hangs of the test suite when the ecore_imf
scim module tries to connect to the scim on the system. This has happened again
and again on different installations and made the test suite really fragile.

We would need to make sure that scim is configured on the host before we could
run this test. It might be a candidate for skipped tests where we check if the
env has all we need to run the test and if not skip it. We don not have all the
needed pieces in place for this so the best we can do to make the test runs less
fragile is disabling scim module loading for now.
2016-03-04 15:41:42 +01:00
Tom Hacohen f21ade6123 Automatic migration to Eo4.
I just ran my script (email to follow) to migrate all of the EFL
automatically. This commit is *only* the automatic conversion, so it can
be easily reverted and re-run.
2016-03-03 09:58:08 +00:00
Tom Hacohen e71e6561ee Eo callbacks: Migrate all of the EFL to the new event cb signatures. 2016-02-29 11:33:27 +00:00
Vincent Torri da98142de6 Test rework #1: Ecore
Factorisation of the infra
make uniform all the tests
2016-02-16 12:41:06 +00:00
Jean-Philippe Andre 0402b5fd12 Ecore: Remove all temporary files after running make check 2016-01-19 18:18:29 +09:00
Jean Guyomarc'h 4fad2ce0fe ecore_evas/tests: add tests for Ecore_Evas_Cocoa 2016-01-14 11:35:09 +01:00
Jean Guyomarc'h 5aa49cb218 ecore_evas/tests: remove trailing whitespaces
Cosmetic changes only
2016-01-14 11:35:09 +01:00
Felipe Magno de Almeida a3db1dddd3 efl-js: JavaScript Eolian binding
To configure efl sources with bindings to use in nodejs add ––with-js=nodejs in configure flags to generate node files

$ configure --with-js=nodejs

and compile normally with:

$ make
$ make install

To use, you have to require efl:

efl = require('efl')

The bindings is divided in two parts: generated and manually
written. The generation uses the Eolian library for parsing Eo files
and generate C++ code that is compiled against V8 interpreter library
to create a efl.node file that can be required in a node.js instance.

@feature
2015-12-23 23:59:40 -02:00
Vincent Torri 0497b9685c efl: add binary mode to open() calls
This allows better compatibility with Windows

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-05 21:06:04 +01:00
Vincent Torri 3b44645363 efl: add binary mode to f(re)open() calls
This allows better compatibility with Windows

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-05 21:04:36 +01:00
Vivek Ellur 081e9894d4 ecore: add test case for idler enterer function
Summary:
Added test case for ecore_idle_enterer_before_add function

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>

Reviewers: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-31 02:37:20 +01:00
Carsten Haitzler b1600b2daa efl tests - ecore fb - disable as it basically is more pain than gain
this means make check is more useful to people.
2015-10-22 19:19:50 +09:00
Vincent Torri 11846b406b Tests: use eina_environment_tmp_get() 2015-10-15 09:34:33 +01:00
Vivek Ellur 4f604e4d1e eina_queue: add test cases in eina thread queue module
Summary:
Added test cases for eina_thread_queue_parent_get and eina_thread_queue_fd_get
functions

Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com>

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-12 14:01:23 -07:00
Tom Hacohen 52d998f475 Eo base: Remove the free_func parameter from key_data_set.
This was not really useful and against the Eolian guidelines.
While I promised I won't break things until the 27th, I was ill
(still am), so I'm giving myself a 1 day pass. :P
2015-05-28 17:47:59 +01:00
Tom Hacohen 4dc0aba991 Ecore file test: Fix access to uninitialized memory. 2015-05-20 16:27:00 +01:00
Tom Hacohen a00bbffd3f Ecore tests: REMOVE wayland tests.
These tests aren't really testing anything, and are just broken and annoying.
They only test init and shutdown, and they require a running wayland compositor.

They fail for anyone that has wayland enabled but not running in a wayland session.

They should be brought back once they actual test something, or once we allow skipping
tests that can't be run due to environment issues.
2015-05-08 16:18:36 +01:00
Tom Hacohen 7072ca435a Ecore tests: Properly split (some) unit tests to units
Units were not properly split. We also had to resort to hacks we are not
allowed to do before, which are now fixed.
We don't allow shutting down and powering up again. Once something is off,
it's off.
2015-05-08 16:18:36 +01:00
Tom Hacohen f5494bd906 Ecore audio test: Remove unneeded test.
We don't need to test eo works in the ecore audio suite.
If you mark it as virtual, it's virtual.
2015-05-08 16:18:36 +01:00
Thiep Ha 5c4eea6fff ecore_file: add more tests for ecore_file.
Summary:
This patch adds more tests for ecore_file.
It helps examine unchecked cases.

Reviewers: Hermet, cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-28 11:37:11 +02:00
kabeer khan 1b8aaa9e4e ecore_file: fix crashing test of ecore_file
Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-17 12:05:23 +02:00
kabeer khan 398378bf90 ecore_file: improved Ecore_File_Download test.
Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-15 14:15:48 +02:00
kabeer khan a15e70b3e2 ecore_file tests: Added new tests in ecore_file
Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2331
2015-04-10 14:38:24 +02:00
Srivardhan Hebbar 4b0e879591 ecore_con: Split ecore_con test suite from ecore.
Summary:
Have created ecore_con test suite.

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

Reviewers: cedric, Sergeant_Whitespace, stefan_schmidt

Subscribers: stefan_schmidt, Sergeant_Whitespace, cedric

Maniphest Tasks: T2235

Differential Revision: https://phab.enlightenment.org/D2269
2015-04-06 16:37:53 +02:00
Srivardhan Hebbar 3f35bc341a ecore_con: add tests case related to HTTP post and ftp upload.
Summary:
Made http and ftp url configurable via configure and also added test cases for ftp upload and http post.

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

Reviewers: Sergeant_Whitespace, cedric

Subscribers: Sergeant_Whitespace, cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-04-06 16:37:52 +02:00
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
Srivardhan Hebbar fcd9a331a6 ecore_con: add test case for download related functions.
Summary:
This has test cases for download related functions. Will make url
configurable and add post/upload related functions in the coming patch.

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

Reviewers: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-03-18 15:45:26 +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 65d0c2a1e1 ecore: don't leak directory during testing of Ecore_File infrastructure. 2015-03-13 09:33:28 +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
Stefan Schmidt 46829c05fe Revert "ecore: fix path comparison in Ecore_File test suite."
This reverts commit 66c0f3261d.

This commit breaks the eina_file suite on Gentoo (our jenkins OS).

ref T2105
2015-02-12 10:47:02 +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
pierre lamot 9ee7f46eb3 ecore: check that a test doesn't enter in an infitie loop.
check that ecore_test_ecore_thread_eina_thread_queue_t6 doesn't
enter in an infinite loop if something goes wrong, if the main thread
doesn't receive the message number 10000

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-05 16:38:06 +01:00
pierre lamot 66c0f3261d ecore: fix path comparison in Ecore_File test suite.
The Ecore_File test suite was comparing path with strcmp,
which can lead to incorect comparison in some case (comparing
realpath and expected path for instance)

This patch adds a function to compare paths within this tests. Paths
are compared by getting the "realpath" of each operand

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-05 16:38:06 +01:00
michelle legrand 24386fcd9c autotools: fix make check build error on Windows
Windows does not use ECORE_X.

@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-01-30 10:49:50 +01:00
Stefan Schmidt 1f7c6c5783 tests/ecore_thread: Disable verbose logging with printf
If we are going to test for 10000000 messages we should not print out for each
of them to stdout. The log file for ecore_suite will catch them all. It ended
up being 199MB on my machine just filled with these debug statements.

I left it in in case someone needs it for debugging but we should not have it
on by default.
2015-01-08 17:19:58 +01:00
kabeer khan 0ba1239ac1 Ecore FIle: Added test case for ecore_file download
Summary:
Added test cases for ecore_file_download and ecore_file_download_full

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: devilhorns, stefan_schmidt

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1683
2014-11-24 09:36:02 -05:00
kabeer khan 9f65759387 Ecore File : Added test suite for Ecore File module
Summary:
Added 3 test cases. First to test initialise, shutdown Ecore_File module.
Second to test all file operation functions defined in the module.
Third to test ecore file monitor

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: devilhorns, stefan_schmidt

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1662
2014-11-18 10:51:42 +01:00
Stefan Schmidt 4d66ed9b1f Revert "Ecore File : Added test suite for Ecore File module"
Same problem with this as for the revert before. Fails when run the second
time. See last commit for details.

This reverts commit 5866e166bb.
2014-11-10 11:40:55 +01:00
Stefan Schmidt 2f9d5d19fe Revert "Ecore File: Added test case for Ecore File Monitor"
This breaks make check and distcheck when run more than once. I first look
seems to indicate that the hardcoded /tmp/rootDir is not removed during
shutdown and fials to be created the next time as it is already present.

When removing it manually another problem with the subdir popped up. No
time to fix this just before I want to do the release so this gets
reverted. Please fix this up and submit it again for 1.13. Thanks.

This reverts commit cb84017a3f.
2014-11-10 11:38:10 +01:00
Stefan Schmidt 1721c8e043 Revert "ecore-tests: Fix formatting"
This commit alone is fine but it does changes to another commit that needs
reverting as it breaks make check / distcheck and thus this one has to be
reverted as well.

This reverts commit 652e2f688b.
2014-11-10 11:36:48 +01:00
Chris Michael 652e2f688b ecore-tests: Fix formatting
Summary: No functional changes, just formatting.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-11-03 08:17:34 -05:00
kabeer khan cb84017a3f Ecore File: Added test case for Ecore File Monitor
Summary: Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1634
2014-11-03 08:16:57 -05:00
kabeer khan 5866e166bb Ecore File : Added test suite for Ecore File module
Summary:
Added 2 test cases. First to test initialise, shutdown Ecore_File module and second to test all file operation functions defined in the module.

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1600
2014-10-29 09:01:59 -04:00
Srivardhan Hebbar 2119e34d85 ecore_input: Added test suite for ecore_input.
Summary:
Added test suite for ecore_input with one test case.

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

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1602
2014-10-29 08:39:56 -04: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
vivek f59ddff4e2 ecore-fb: Adding test suite for ecore_fb
Summary:
Added test suite for ecore_fb with test for ecore_fb_init
w
Signed-off-by: vivek <vivek.ellur@samsung.com>

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1594
2014-10-29 08:14:26 -04:00
Srivardhan Hebbar 4e72266dce ecore_wayland: Checking if default wayland socket exists before executing test case.
Summary:
If WAYLAND_DISPLAY is not set or if wayland-0 fd doesn't exist in the XDG_RUNTIME_DIR path, then this test case fails. That should not be the case. So made changes in the test case.

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

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1590
2014-10-28 10:27:31 -04:00
Srivardhan Hebbar 17d0b98971 ecore_drm: Added test case calling ecore_drm_shutdown before calling ecore_drm_init.
Summary:
_ecore_drm_init_count should not go below zero. So added test case to verify that.

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

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1589
2014-10-28 10:26:39 -04:00
Srivardhan Hebbar f8ea40f082 ecore_wayland: Added test case calling ecore_wl_shutdown before calling ecore_wl_init.
Summary:
Added a test case to calling ecore_wl_shutdown before ecore_wl_init. The return value of ecore_wl_shutdown should not go below 0.

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

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1584
2014-10-27 08:09:43 -04:00
Srivardhan Hebbar 664c8f7ae4 ecore_drm: Adding test-suite to ecore_drm.
Summary:
Adding test-suite to ecore_drm with one test case.

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

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1583
2014-10-27 08:03:33 -04:00
Srivardhan Hebbar 46d3d38e3c ecore_wayland: Added test case to check ecore_wl_init by passing socket name.
Summary:
Added a test case for ecore_wayland to test ecore_wl_init by passing the socket name. Wayland display is created and a socket is added to the display, then this socket is passed to ecore_wl_init to connect. It should successfully connect. Then
ecore_wl_shutdown is called to verify if it closes.

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

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1560
2014-10-21 08:34:46 -04:00
Srivardhan Hebbar a79adfcc69 ecore_wayland: Created test suit for ecore_wayland.
Summary:
Created test suit for ecore_wayland and added test case for ecore_wl_init and ecore_wl_shutdown.

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

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1498
2014-09-29 09:20:05 -04:00
Tom Hacohen 6846978ebd Eo: Get rid of eo_add_custom.
We decided to deprecate this one in favour of setting thing in the
construction between the constructor and the finalizer.
2014-09-25 10:30:56 +01:00
Mike Blumenkrantz 89d0e9f033 add simple ecore_con_url test suite 2014-07-28 09:48:18 -04:00
Mike Blumenkrantz 662c726652 remove unnecessary header include from ecore-con test 2014-07-28 09:48:18 -04:00
Carsten Haitzler 3c130836ad new eina api/object - eina thread queues
@feature

This is a new feature for eina (and EFL) - a zero-copy thread message
queue for sending messages from one thread to another or from the
ecore mainloop to or back to the mainloop from threads. It has a
complete test suite too.
2014-07-15 20:39:13 +09:00
Jérémy Zurcher a7dfaef215 Revert "ecore: animator use eo_add() instead of eo_add_custom()"
mmhhmm, missing @ Constructor tag, bad for the bindings,
maybe we must split animator and timeline into 2 classes,
maybe support callback hot swaping ...

This reverts commit ec4ffb86d6.
2014-07-03 23:05:57 +02:00
Jérémy Zurcher ec4ffb86d6 ecore: animator use eo_add() instead of eo_add_custom()
Summary:
- use defauld constructor instead of custom one.
- we don't allow construction of an animator with a NULL callback function,
  this is checked in overriden eo_finalize.
- we don't support changing this callback once the object is created,
  such calls will call ERR() and return.

see 46a78e8c and f92e5d50 for eo_add_custom() -> eo_add() details

Reviewers: tasn

Reviewed By: tasn

CC: cedric

Differential Revision: https://phab.enlightenment.org/D1113
2014-07-03 22:33:15 +02:00
Tom Hacohen 0fc3279db9 Efl: Update code to use the new class names generated by eolian. 2014-06-03 11:28:01 +01:00
Daniel Zaoui 03b99d58b2 Eo2: Fix other forgotten ret. 2014-04-11 05:02:54 +03:00
Tom Hacohen 3a0d62ffcf Ecore audio tests: Updated to Eo2. 2014-04-10 04:20:21 +01:00
Tom Hacohen 374af9b9ca Eo: eo_base's data_*->key_data_*. 2014-04-10 04:20:21 +01:00
Yossi Kantor 70b39368e6 Eolian: Integration of Ecore Audio Out 2014-04-02 15:56:14 +03:00
Yossi Kantor 2c8bc8df52 Eolian: Integration of Ecore Audio In 2014-04-02 15:56:14 +03:00
Jean-Philippe ANDRE 01f0b600ac Ecore suite: Don't fail if PulseAudio is not running
In a previous commit I mentionned that make check would fail
if PulseAudio is not running. Well, this is a bit excessive,
especially for buildbots where it doesn't have to be running.
So let's check that PulseAudio is running before failing.

Other errors should still be caught.

A simple "pulseaudio --check" should do the trick.
2014-03-04 22:31:02 +09:00
Jean-Philippe Andre 9750bd51f2 Ecore suite: Fix hangs when PulseAudio is not present
EFL can be built with PulseAudio support even if PA is
not present on the system. In that case, ecore_suite will
hang forever. Let's just catch the error instead.

Note: make check will fail if PA is not available (but not hang)

This is not related to Tom's recent mail (but yeah it reminded me
of this bug^^)

Fixes T732.
2014-03-04 16:01:45 +09:00
Carsten Haitzler b6f4af28b2 ecore audio: tests - remove #if0'd out code 2014-01-26 18:33:36 +09:00
Cedric BAIL 324f4aebe8 ecore: fix shutdown when using system module.
This patch will detect how many more times ecore_init was called
during initialization and use that as a threshold to do a clean shutdown.
It is a necessary evil as we do have ecore module that will initialize
eldbus that will then reinit ecore_init from within ecore_init and without
a chance for the application to act on it.

I also reenable a test to make sure we will catch earlier this kind of issue.
2013-12-23 11:58:17 +09: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
Cedric BAIL d2c6751983 ecore_audio: update test to not look at ecore_init return to much due to system module. 2013-12-23 11:44:26 +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
Cedric Bail e570ea7805 ecore: remove coroutine for now. Can easily be reverted for 1.9. 2013-11-05 11:12:20 +09:00
Daniel Zaoui 3bfc9ae76f Ecore: fix warnings 2013-05-27 10:49:27 +03: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
Cedric Bail d66517debf ecore: animator can get called with the same value due to rounding and range limit. 2013-05-20 18:59:43 +09:00
Daniel Willmann d1e38b8535 tests/ecore_animators: Don't rely on consistent timing
This may break under heavy load so we shouldn't rely on it. Instead make
sure that time only moves forward.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-05-17 18:16:09 +01:00
Daniel Willmann 62325dd693 tests/ecore: Add test for ecore_animator
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-05-17 17:15:27 +01:00
Daniel Willmann 0c0ff01930 ecore_audio test: Change the volume of the output instead of the input
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-29 19:57:16 +01:00
Daniel Willmann 72e65872d5 ecore_audio: Add test to check correct cleanup when removing input
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-29 19:57:16 +01:00
Daniel Willmann 014c6176b3 ecore_audio: Test sndfile/tone format and source methods better
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-29 19:57:16 +01:00
Daniel Willmann ed011b10cc ecore_audio: Test pulseaudio output if it is enabled
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-29 19:57:16 +01:00
Daniel Willmann bafa8f0ae6 ecore_audio: Test VIO unsetting and freeing
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-29 19:57:16 +01:00
Daniel Willmann b9ad2190ab ecore_audio: Test read-while-paused code path as well
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-26 18:49:25 +01:00
Daniel Willmann fdb73b8a49 ecore_audio: Test VIO input/output of base in/out class
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-26 18:49:25 +01:00
Daniel Willmann 1a8fcf81a0 ecore_audio: Test the looped signal/code path as well
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-26 18:49:24 +01:00
Daniel Willmann 97d4b50c91 ecore_audio: Add more return values for methods, catch up with API
input_attach, input_detach, format_set, and source_set now return an
Eina_Bool

Tests, examples and edje_multisense adapted

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-23 17:13:39 +01:00
Daniel Willmann 6781342d3c ecore_audio: Guard against attaching an input twice
Add check in input_attach and change test case accordingly

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-19 18:34:16 +01:00
Daniel Willmann af8fed32c6 ecore_audio test: Better test coverage for inputs
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-19 15:43:20 +01:00
Valerii Kanunik d601c15302 ecore: update ecore_test_ecore_main_loop_event test for more coverage code.
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-04-19 15:43:42 +09:00
Daniel Willmann 986244339b tests/ecore_audio: Create temporary test files in build dir
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-18 19:47:35 +01:00
Daniel Willmann e99ab4623a ecore_audio: Add return value to input_attach method
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-18 19:32:46 +01:00
Daniel Willmann 8b8dc1fd6d ecore_audio: Enable tone test case
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-18 19:14:32 +01:00
Daniel Willmann 542b8743bb ecore_audio: Enable soundfile test for eo
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-18 19:14:32 +01:00
Daniel Willmann 48b78234a8 ecore_audio: Build Eo-based Ecore_Audio and tests now
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-18 19:12:17 +01:00
Daniel Willmann 53e7fb6edc ecore_timer test: Pre-increment variable to prevent buffer overflow
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-12 10:10:25 +01:00
Cedric Bail 38543ae53b ecore: reduce risk of rounding error. 2013-04-12 11:19:39 +09:00
Valerii Kanunik 89f108312e ecore: add tests for ecore_poll module.
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-04-12 11:07:11 +09:00
Dmytro Kaidalov fc0d46411c ecore: add tests for Ecore_Evas.
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-04-12 10:46:47 +09:00
Vitaliy Venzak b3159a889c ecore: add ecore timer test.
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-04-12 10:46:47 +09:00
Valerii Kanunik 4c992a4f85 ecore: Added tests for ecore_app_args procedures.
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-04-12 10:46:47 +09:00
Daniel Willmann 75aa9118d0 ecore_audio: Rename ecore_audio_*_userdata_{get,set} userdata -> data
As mentioned by Cedric *_data_set is used in other places of EFL
already.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-02 16:21:44 +01:00
Tom Hacohen 3ba9311c0f Tests: Output XML to build dir, not source dir. 2013-03-12 12:46:06 +00:00
Tom Hacohen b13fe184bf Ecore tests: Define TESTS_SRC_DIR in the same way as the other tests.
Deprecate CHECK_SRC_DIR which is not needed anymore because of that.
2013-03-12 11:43:31 +00:00
Stefan Schmidt 85810dac8c tests: Add xml output file for check runs for the use with jenkins.
We can do pretty graphs with jenkins about our unit tests. But we
need the check xml output for that. Enabling it in all suites.
2013-03-12 09:59:06 +00:00
Tom Hacohen 4a1c3d0f57 Ecore coroutine test: Fixed compilation warnings. 2013-03-08 17:32:23 +00:00
Cedric BAIL 91711d8a69 ecore: add Ecore_Coroutine.
That work clearly was possible thanks to Leandro. If you want more information
go to his blog : http://tia.mat.br/posts/async_io_with_coroutines/ .

The main difference with his implementation is more portable and not thread safe.
It does not have a custom swapcontext (would make sense as we don't need to save
the sigcontext) so it will be less fast. If people are ready to contribute asm
patch for that purpose I will be happy to apply them.

As for portability this code should work on all architecture we already support
thanks to a nice hack with setjmp/longjmp borowed from libcoroutine. We do use
Fiber for Windows support, but as 1.8 is completely borken in that regard, this
is theorical work only.

Thinks left to do :
- Eoify the API
- Documentation
- More tests
- Add support for coroutine in fd handler
- Add coroutine support to ecore_thread api
- Write some example
2013-02-18 14:38:33 +01:00
Stefan Schmidt 506a7bc1fe efl/imf test: Remove unused modules varibale.
If you copy and paste functions make sure you adjust for all variables you use. :)

SVN revision: 82984
2013-01-18 15:45:49 +00:00
Daniel Willmann 4010d3cefe ecore_audio tests: Use the correct libcheck functions
Undefined symbols are not nice to have

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 82929
2013-01-17 10:29:19 +00: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
Gustavo Sverzut Barbieri 0f21b187b0 ecore_suite: disable audio tests that will be fixed by asdfuser
SVN revision: 82892
2013-01-16 18:15:07 +00:00
Gustavo Sverzut Barbieri 733425c62c efl: make libraries aware of EFL_RUN_IN_TREE.
this variable tells that the build is being done in tree and we should
not look at install locations.



SVN revision: 82217
2013-01-04 17:19:43 +00:00
Gustavo Sverzut Barbieri 231b69735b efl/ecore_audio: fix test in suite.
SVN revision: 82212
2013-01-04 16:41:53 +00:00
Daniel Willmann 6c054fc7ec ecore_audio: Add tests case
The sounds used are in the public domain and were taken from
freesound.org

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 81004
2012-12-14 23:38:40 +00:00
Vincent Torri 128074a2bd Ecore: merge unit tests, ignore++
SVN revision: 80090
2012-12-03 18:29:51 +00:00