Commit Graph

94 Commits

Author SHA1 Message Date
Tom Hacohen 9696f44a67 Evas text tests: Start shipping DejaVuSans with the test suite.
We can finally rely on having fonts in all cases (even when there's no
fontconfig) and we can also rely on specific sizing.
2013-02-25 14:59:03 +00:00
Tom Hacohen d6dababe78 Evas text: Fixed bug with the text object direction detection. 2013-02-21 13:39:37 +00:00
Cedric BAIL 8a818ad79d edje: let's fix the edje test to init/shutdown edje correctly.
We have so much wonderfull tool, like git and make lcov-check. Sadly
we are lacking a tool to check their usage ! PEBKAC is still an issue.
2013-02-21 18:45:45 +09:00
Tom Hacohen a77cb9ee41 Revert "tests/edje: Disable edje mising file test until the needed header is commited."
I added the file in the previous commit.

This reverts commit 251eac7d7a.
2013-02-21 08:41:09 +00:00
Tom Hacohen ac16677405 Edje tests: Added missing file. 2013-02-21 08:41:09 +00:00
Stefan Schmidt 251eac7d7a tests/edje: Disable edje mising file test until the needed header is commited.
I tried to get it from Tom's machine but I can't log in there. :)
2013-02-20 09:11:07 +00:00
Cedric BAIL 1637e99931 eina: make that test not depend on efl configuration. 2013-02-20 17:50:19 +09:00
Tom Hacohen 9654db3b16 Edje tests: Added a failing test for the file doesn't exist issue. 2013-02-19 16:00:45 +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
Tom Hacohen 3974cb3dc1 Evas textblock: Fixed a selection bug introduced in my previous commit.
I matched against the wrong values so it never included items in the middle
even when needed.

SVN revision: 83869
2013-02-13 12:42:44 +00:00
Tom Hacohen 548e548632 Evas textblock: Fixed a selection issue.
The issue happens when selecting in strings that have both bidi and different
scripts in the same bidi run. E.g: "עבריתenglishрусскийעברית".

SVN revision: 83786
2013-02-08 15:31:25 +00:00
Cedric BAIL e684f5a823 efl/eina: Eina_Tiler take tile size into account.
SVN revision: 83708
2013-02-07 07:32:45 +00:00
Cedric BAIL 57badb0587 efl/eina: check that we always put some random value in hash.
SVN revision: 83655
2013-02-06 07:03:38 +00:00
Tom Hacohen f9cf5bb374 Eo tests: Beginning of test output cleanup.
SVN revision: 83635
2013-02-05 14:37:28 +00:00
Stefan Schmidt eae46ba95d efl/eina: Fix strings to compare correctly and pass test suite.
This one is for Cedric.

SVN revision: 83332
2013-01-25 16:03:47 +00:00
Cedric BAIL 93d1705f77 efl/eina: what the ?? Update text for magic test...
SVN revision: 83319
2013-01-25 06:16:33 +00:00
Stefan Schmidt b9d18d770b efl: Switch from deprecated eina_unicode_utf8_get_next to eina_unicode_utf8_next_get
SVN revision: 83130
2013-01-23 09:09:57 +00:00
José Roberto de Souza ba63fa7ed2 efl/edbus: Fix edbus_name_owner_changed() when bus name is not on bus
If we pass the last argument as TRUE, that means user want to know the actual
bus id of the bus name and if the bus name is not registered it never notify
the user.

This bug was insert when fixing another one, because of that there more code
here to fix the previous bug too.

Patch by: José Roberto de Souza <zezsouza@gmail.com>



SVN revision: 83082
2013-01-22 13:34:34 +00:00
José Roberto de Souza 623a73d1ed efl/edbus: Init ecore on test suites
Patch by: José Roberto de Souza <zezsouza@gmail.com>



SVN revision: 83081
2013-01-22 13:34:25 +00:00
Tom Hacohen 21a6a84667 Eo: Changed NDEBUG to EO_DEBUG.
This was stupid from the start, but now it casuse even more issues.
We'll have to just add a configure option to it when the time comes.

SVN revision: 82989
2013-01-18 16:57:57 +00:00
Tom Hacohen 37efa5efd7 Eo tests: Fix function overrides test to not test some things when NDEBUG is used.
SVN revision: 82987
2013-01-18 16:13:30 +00: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
Stefan Schmidt 4d7909ae3a efl/eina tests: Allow libcheck 0.9.8 usage.
This commit is for all the poor souls that see no need to update their system
each day with everything the world may offer just to be sure they have the
latest. This commit is for people that like the idea of having something
working when it did so the day before. Kudos fot Tom for pointing out the
function.

SVN revision: 82980
2013-01-18 14:32:08 +00:00
Gustavo Sverzut Barbieri b830048a64 god... it was using localtime, so should we when we test.
SVN revision: 82950
2013-01-17 20:36:52 +00:00
Gustavo Sverzut Barbieri 69650dd84c eeze: remove warning and add a bit more test.
it's basically not testing anything, just calling the API :-( Added
some tests that check if the listed type is of that type (mouse,
touchpad, joystick).



SVN revision: 82949
2013-01-17 20:31:06 +00:00
Gustavo Sverzut Barbieri 09e5bc40ef remove unused result warning
SVN revision: 82948
2013-01-17 20:22:23 +00:00
Gustavo Sverzut Barbieri 14ff8920a6 eina/tests: fix and improve eina value tests.
improve: use ck_assert_str_eq() instead of fail_unless(strcmp() == 0),
it's shorter and will print a proper error message on failure.

fix: timeval changed from seconds to asctime(), cope with that.

fix: hash tests now search for substrings and thus are not prone to
algorithm changes. the format is pretty simple to avoid false results.



SVN revision: 82945
2013-01-17 19:44:13 +00:00
Gustavo Sverzut Barbieri 9768d40f85 fix magic check tests
SVN revision: 82944
2013-01-17 19:30:54 +00:00
Gustavo Sverzut Barbieri 94f2f63228 eina/tests: fix some warnings and use better ck macros.
SVN revision: 82943
2013-01-17 19:13:24 +00:00
Gustavo Sverzut Barbieri c757cba26f disable edbus tests that requires a daemon.
demarchi should fix this after his honeymoon :-P



SVN revision: 82941
2013-01-17 17:00:18 +00:00
Tom Hacohen 6aa4eb7d86 Evas text test: Fixed the test to work with Clang.
Apparently L'' doesn't work there.

SVN revision: 82940
2013-01-17 16:58:23 +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
Cedric BAIL 515282006f efl: Add Eina_Cow_Data...
SVN revision: 82923
2013-01-17 06:51:35 +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
Lucas De Marchi 9d8774403d efl/edbus: Add test for creating/destroy obj without mainloop
The second test was crashing before r82784, which is also the fix for
terminology's issue with efreet_init()/efreet_shutown().



SVN revision: 82843
2013-01-15 21:52:51 +00:00
Lucas De Marchi 48e207859a efl/edbus: Add initial testsuite
Right now this contains only 2 tests, for checking if
init/shutdown works correctly.



SVN revision: 82842
2013-01-15 21:50:57 +00:00
Tom Hacohen f5af9566d0 Eo tests: fix warnings.
SVN revision: 82828
2013-01-15 17:17:39 +00:00
Tom Hacohen e183866d21 Evas text test: Use the more verbose test macros.
SVN revision: 82799
2013-01-15 11:07:22 +00:00
Lucas De Marchi 366a3dee3b efl/efreet: better printing of test results
Print the name of each test together with the status so it's easier to
check which test failed/passed regardless the test's output:

./src/tests/efreet/efreet_test 2>/dev/null | grep -e "^FINISHED"

The tests themselves should not print to stdout, so we wouldn't need the
grep. But this is already better than we had before.



SVN revision: 82782
2013-01-14 21:04:40 +00:00
Lucas De Marchi 522bb558e9 efl/efreet: fix leaking test list and return code
SVN revision: 82781
2013-01-14 21:04:35 +00:00
Lucas De Marchi 1a4535b5ff efl/efreet: formatting tests
SVN revision: 82780
2013-01-14 21:04:30 +00:00
Lucas De Marchi 2d7e10363d efl/efreet: remove clearenv usage
This improves the tests on freebsd, which doesn't have clearenv()  (
though this commit was untested on such environement). clearenv was
rejected from POSIX so we better aim to stop its usage. However since
tests use setenv() this may lead to leaks, but it's better a leak than a
failing test.

On Linux all tests that were passing continue to pass.



SVN revision: 82779
2013-01-14 21:04:22 +00:00
Cedric BAIL c7aead6fdc efl: fix cow after review by k-s.
NOTE: I didn't find a way to tell valgrind that some memory is read only.


SVN revision: 82742
2013-01-14 03:34:19 +00:00
Gustavo Sverzut Barbieri 4f52ae0f1b efl/ethumb: the test is actually an example.
SVN revision: 82676
2013-01-12 03:59:25 +00:00
Gustavo Sverzut Barbieri 34f5315141 merge ethumb.
This one was a painful bitch. The edbus2 port was quite broken, mainly
leaking eina_stringshare and also not adding the '\0' to the strings
that are represented as bytearray (paths cannot be utf8 to avoid
translations).

Emotion plugin was also quite bogus and the video thumbnail as edje
(animated) is not working yet due bug in Edje_Edit api -- someone
needs to investigate this, seems strange.

Emotion plugin also had a bug that it was deleting the object from
inside object callback.

Now it seems to work. Please report if it does not.



SVN revision: 82675
2013-01-12 01:15:45 +00:00
Gustavo Sverzut Barbieri 070074d355 printf--
SVN revision: 82610
2013-01-11 04:31:09 +00:00
Gustavo Sverzut Barbieri 66829fa21e efl/emotion_test: hint that we can be running from inside the build tree.
otherwise evas modules won't be found.


SVN revision: 82608
2013-01-11 04:23:01 +00:00
Gustavo Sverzut Barbieri 96878d9d8e efl/emotion_test: allow to run in tree.
if you EFL_RUN_IN_TREE=1 before running it, it will work without
installing.



SVN revision: 82511
2013-01-10 06:04:28 +00:00
Gustavo Sverzut Barbieri dfb84c1657 efl: merge emotion.
this one was quite a huge work, but hopefully it's correct.

NOTES:
 * removed vlc generic module, it should go into a separate package.
 * gstreamer is enabled by default (see --disable-gstreamer)
 * xine is disabled by default (see --enable-gstreamer)
 * generic is always built statically if supported
 * gstreamer and xine can't be configured as static (just lacks command line options, build system supports it)
 * v4l2 is enabled by default on linux if eeze is built (see --disable-v4l2)
 * emotion_test moved to src/tests/emotion and depends on EFL_ENABLE_TESTS (--with-tests), but is still installed if enabled.

TODO (need your help!):
 * fix warnings with gstreamer and xine engine
 * call engine shutdown functions if building as static
 * remove direct usage of PACKAGE_*_DIR and use eina_prefix
 * add eina_prefix checkme file as evas and others
 * add support for $EFL_RUN_IN_TREE
 * create separate package for emotion_generic_modules
 * check docs hierarchy (doxygen is segv'in here)



SVN revision: 82501
2013-01-10 03:43:32 +00:00