Cedric Bail
1281a8369f
eina: fix uninitialized data use.
2013-11-12 19:01:10 +09:00
Cedric BAIL
da559ee5d0
eina: use portable infrastructure to detect page size.
2013-11-10 09:26:12 +01:00
Cedric Bail
65c33f6369
eina: eina_lock_debug is only on Eina_Lock.
2013-11-09 20:06:59 +09:00
Cedric Bail
91025a1e04
eina: fix warning of unsigned int being compared to an int.
2013-11-09 20:06:36 +09:00
Cedric Bail
be3afd8f4b
eina: update Eina_Cow test to latest API change.
2013-11-04 12:47:12 +09:00
Cedric Bail
fe5dd4bcda
eina: add test for old ABI supported function, but not exposed anymore.
2013-10-25 20:16:10 +09:00
Cedric Bail
7f8665a266
eina: improve test coverage of Eina_File API.
2013-10-25 19:57:57 +09:00
Cedric Bail
cae6b0b0e4
eina: improve test coverage of virtual file.
2013-10-25 19:50:14 +09:00
Cedric Bail
39931d295b
eina: use Eina_Barrier to improve coverage and reduce race condition during testing.
...
This should hopefully solve the failing test on Jenkins. As I can't reproduce them
here, it is just an educated guess... We will see !
2013-10-25 15:12:28 +09:00
Cedric Bail
577ae1debc
eina: let's add some straight forward test.
2013-10-16 16:51:41 +09:00
Carsten Haitzler
69e27abdc3
eina - and e3fl in general - stop using eina_error_get/set - useless really
2013-10-11 16:50:40 +09:00
Oleksander Sirook
337b3d4daf
eina: add test for 'eina_file_map_new' function.
2013-08-13 17:31:41 +09:00
Vladislav Brovko
56adc51e83
eina: add Eina_Value tests convert from short, int.
2013-07-18 16:19:26 +09:00
Sergii Kanaev
f21bcaccbb
eina: improve test coverage for Eina_Clist.
...
Add tests for eina_clist_add_after, eina_clist_add_head, eina_clist_next
and eina_clist_add_tail.
2013-07-09 10:23:00 +09:00
Daniel Willmann
3e5ff22ab9
eina_test_fp: Improve speed of eina_fp test
...
Test less values in between, but still have a decent combination of
large/small values to test.
Fixes -WTasn
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-06-27 14:34:02 +01:00
Sebastian Dransfeld
068f1ddc62
efl: formatting
2013-06-20 13:08:36 +02:00
Daniel Willmann
0e51bff61a
eina_test_str: Make sure we have an empty string before using strcat
...
Caused issues with address sanitizer. Just calling allocating memory for
a string does not mean that it's empty/NULL-terminated.
2013-06-12 23:57:42 +01:00
Jérémy Zurcher
22220ca70a
improve eina_str coverage
...
my time killer, what a sad life ;))
2013-06-12 23:34:40 +02:00
Jérémy Zurcher
d0d1b705fb
indent eina_list tests
2013-06-12 23:34:40 +02:00
Eduardo Lima (Etrunko)
d3292a7ae9
Split .gitignore into multiple files
...
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-06-11 18:18:50 -03:00
Daniel Willmann
7c20a90c3d
eina_test_fp: Test multiplication and division as well
...
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-05-17 17:10:55 +01:00
Jérémy Zurcher
52b20f0334
eina_stringshare: improve coverage
2013-05-08 12:14:57 +02:00
Jérémy Zurcher
2036f7d344
eina: add eina_inlist_first and eina_inlist_last
...
- both as static inline functions
- test added in eina_inlist_simple
2013-04-09 12:03:05 +02:00
Cedric BAIL
be2cebab17
eina: fix test logic after change in Eina_Cow GC.
2013-04-03 19:21:51 +09:00
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