Commit Graph

345 Commits

Author SHA1 Message Date
Daniel Willmann 35d203d9e7 eina_cow: Fix compilation for tests again
eina_cow_add now requires a gc parameter

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-04-02 15:07:25 +01:00
Vladislav Brovko 7584a7e84d eina: add eina_file_mkdtemp and tests for Eina_File.
Test added for :
eina_file_direct_ls_simple
eina_file_ls_simple

Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
2013-03-27 22:45:34 +09:00
Valerii Kanunik 940543d972 eina: improve Eina_Value coverage.
Added test 1: eina_value_test_convert_long.
Added test 2: eina_value_test_convert_ulong.

Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
2013-03-25 13:00:00 +09:00
Tom Hacohen 8fb14b29c0 Eina tests: Fixed warnings with clang.
Clang doesn't appreciate passing 'char' to %hdd, although they are the right
size. So change to %d and cast to 'int' before passing it.
2013-03-21 13:21:10 +00:00
Daniel Willmann 07b5c33f90 eina_test_list: Move fail_if out of the hot path
fail_if() from libcheck always writes to a file created with tmpfile(),
so it is not a good idea to call it millions of times. This wastes
memory and time, let's use both for something better. :-)

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-03-20 18:42:54 +00:00
Jérémy Zurcher d0f3357f77 TES
Conflicts:
	src/lib/eina/eina_list.c
	src/lib/eina/eina_types.h
2013-03-20 11:48:44 +01:00
Cedric BAIL e02bb36e3a eina: improve speed of Eina_Cow.
* Use an Eina_Hash for the garbage collector list.
* Turn off garbage collection on object that are unlikely to match.

This patch make 1.8 as fast as 1.7 again.
2013-03-20 10:59:56 +09:00
Tom Hacohen fab36d8869 Eina cow: Don't tests things that depend on magic when it's off. 2013-03-19 15:48:59 +00:00
Stefan Schmidt 9f8744a50a eina/tests: Adding return to non void function.
This fixes the test case for me. Also fixes two small wanring while being there.
2013-03-13 13:19:54 +00:00
Vladislav Brovko 8ca2871f82 eina: add tests.
Added tests:
- eina_simple_xml_parser_null_node_dump,
- eina_simple_xml_parser_childs_count,
- eina_simple_xml_parser_parse_with_custom_callback.

Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
2013-03-13 18:02:44 +09:00
Tom Hacohen 3ba9311c0f Tests: Output XML to build dir, not source dir. 2013-03-12 12:46:06 +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 973d0b475b Eina test strbuf: Fixed compilation warnings. 2013-03-11 10:39:20 +00:00
Nikolay Lopatka 779356b45f eina: add test for strbuf trim function.
Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
2013-03-11 10:53:19 +09:00
Vladislav Brovko 21505d1edf eina: Eina_Tmpstr test for eina_tmpstr_add, eina_tmpstr_del.
Signed-off-by: Cedric BAIL <cedric.bail@free.fr>
2013-03-11 10:45:41 +09:00
Cedric BAIL 1637e99931 eina: make that test not depend on efl configuration. 2013-02-20 17:50:19 +09: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
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
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 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
Cedric BAIL 515282006f efl: Add Eina_Cow_Data...
SVN revision: 82923
2013-01-17 06:51:35 +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
Ulisses Furquim eade5b8251 eina/tests: add basic Eina_Barrier test
Also rearranged test suite creation to allow setting the timeout in
the build callback.



SVN revision: 82415
2013-01-08 14:10:33 +00:00
Cedric BAIL 0e50f122e5 efl: Add eina copy on write infrastructure.
SVN revision: 82396
2013-01-08 09:17:56 +00:00
Cedric BAIL 158759d507 efl: eina_magic_fail now trigger an ERR on NULL instead of CRITICAL.
Updating the test suite.


SVN revision: 82391
2013-01-08 09:04:29 +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 4668d04f04 efl: cleanup HAVE_THREADS and pthread usage outside of eina.
Eina now abstracts threads, so use that.

the touched files had the EFL_HAVE_THREADS as it's mandatory now.



SVN revision: 81935
2012-12-31 16:14:40 +00:00
Vincent Torri 4ae8b8cf86 merge: do not use recursive make for unit tests
SVN revision: 79413
2012-11-18 07:12:38 +00:00
Vincent Torri aac3e95ccf merge: -Wl,--enable-auto-import is useless with recent versions of gcc on Windows
SVN revision: 78495
2012-10-25 22:01:28 +00:00
Vincent Torri 77d90bd45e merge: pass directly to the preprocessor the Windows macro instead of using autotools
SVN revision: 78350
2012-10-23 05:43:57 +00:00
Vincent Torri 7fe3d35994 merge: __UNUSED__ --> EINA_UNUSED and some fixes in eo.
SVN revision: 77542
2012-10-05 20:09:47 +00:00
Cedric BAIL 1000f350e3 efl: backport Igor's eina patch.
SVN revision: 77415
2012-10-04 09:31:46 +00:00
Carsten Haitzler 8eb2fc8c4f and pass distcehck
SVN revision: 77123
2012-09-27 04:16:55 +00:00
Carsten Haitzler 156f4a783f and more include dir fixes.
SVN revision: 77122
2012-09-27 04:14:38 +00:00
Carsten Haitzler f763955119 efl -> pass distcheck.
SVN revision: 77110
2012-09-27 03:17:31 +00:00
Vincent Torri aeadf86ba6 merge: "fix" distcheck
I can't be sure that distcheck is fixed as the check of eet is failing.
I've disable the run of the eina test for now as it is *very* long. I'll
re-enable it once eet check is running flawlessly



SVN revision: 76772
2012-09-17 17:17:55 +00:00
Vincent Torri c83143c889 merge: mostly fix tests and benchmark
need to fix the city stuff in tests and the benchmark
with the e17 data (need help with make rules :)


SVN revision: 76712
2012-09-16 14:25:29 +00:00
Vincent Torri 528a9831c8 merge: move the files in their own directory
SVN revision: 76711
2012-09-16 11:05:51 +00:00
Vincent Torri 785f2a6b3a merge : add eina
currently, examples, tests and benchmark are not set. That's the next things i'll do


SVN revision: 76710
2012-09-16 10:57:48 +00:00