Commit Graph

739 Commits

Author SHA1 Message Date
vivek be5eb3f2de eina: add test case for eina_file_copy function.
Summary:
Added test case for eina_file_copy function to check copying of two files

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

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-18 10:52:57 +02:00
Vivek Ellur c3a644acff eina: add test cases for various eina_inarray functions
Summary:
Added test cases for eina_inarray_search, eina_inarray_search_sorted,
eina_inarray_foreach_remove and other functions

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

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-14 19:36:32 +02:00
Daniel Kolesa d2365e6267 eolian: allow forced retrieval of enum field values 2015-05-13 17:57:03 +01:00
Daniel Kolesa 333e876629 eolian: use the actual enum type in tests 2015-05-13 17:22:37 +01:00
Tom Hacohen 8db866f636 Eeze tests: Remove an unreliable test.
I hope this will be enough to make the suite less broken.
This fails often on jenkins and cedric's box. This should
either be made reliable, or removed, but the current state
is definitely not good if we would like to increase the trust
in Jenkins.
2015-05-13 17:18:32 +01:00
Daniel Kolesa e90e3af8b5 eolian: fix evaluation of "undefined" enum fields 2015-05-13 17:15:45 +01:00
Daniel Kolesa ec73644cb6 eolian: generate underscored structs as well as correct opaque struct typedefs 2015-05-13 11:14:49 +01:00
Daniel Kolesa 96d16eabb4 eolian: remove unused variables 2015-05-12 17:07:26 +01:00
Daniel Kolesa 211b650c4b eolian: new API eolian_type_enum_field_c_name_get
This API allows you to retrieve the C name of an arbitrary enum field,
respecting the legacy prefix and properly uppercasing the name.
2015-05-12 17:04:54 +01:00
Daniel Kolesa ed58165b50 eolian: butts 2015-05-12 16:25:52 +01:00
Daniel Kolesa 6e7ab244f7 eolian: fix wrong enum tests 2015-05-12 14:37:16 +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 e27f40111d Eo: Mark composite APIs as beta.
Until now we used @protected, but now we can finally properly use @beta.
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
Daniel Kolesa a5ce9e5d75 eolian: API and tests for beta events 2015-05-08 14:37:02 +01:00
Daniel Kolesa fbf622db0c eolian: fix generation tests 2015-05-08 14:28:42 +01:00
Daniel Kolesa 0c07b9bea4 eolian: is_beta API plus tests 2015-05-08 14:12:27 +01:00
Daniel Kolesa ed0988a22d eolian: change all EFL .eo files to use new syntax for properties 2015-05-07 16:36:58 +01:00
Daniel Kolesa b1eb5b56a6 elua: use a minimal app to avoid loading eolian at runtime
Otherwise it would fail on systems with no Eolian installed.

@fix
2015-05-07 11:56:59 +01:00
Vincent Torri 92ff90ecca evil: fix dladdr() implementation, add 2 unit tests for evil.
@fix

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-07 09:53:12 +02:00
vivek edfd621d06 eina: add test case for eina_hash_crc function.
Summary:
Added test case for eina_hash_crc function which uses crc32 for hashing
algorithm

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

Reviewers: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-07 09:53:11 +02:00
vivek 48dea34240 eina: add test case for eina_crc function in eina module.
Summary:
I added test cases using seed 0xffffffff, I was not
able to get crc value for different seeds online. Checked some of the links, but they are
using entirely different logic and value was not matching for other seed value.

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

Reviewers: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-07 09:53:09 +02:00
Cedric BAIL 68343123c1 ecore_con: remove warning when not testing ftp/http push. 2015-05-07 09:53:08 +02:00
vivek a415fa9a7f emile: add emile_suite_build function to separate creation of test suite.
Summary: Signed-off-by: vivek <vivek.ellur@samsung.com>

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-07 09:53:07 +02:00
Daniel Zaoui b0da753aaa Eolian/Generator: fix enums generation
Typedef word was not generated for enums. Camel case was not respected
for type definition.
Tests have been updated to check enums generation.

@fix T2400
2015-05-07 09:57:23 +03:00
Daniel Zaoui 2c5ec0b132 Eolian: Add API to retrieve an event of a class by its name
@feature
2015-05-07 09:57:15 +03:00
Tom Hacohen 663ea6cf53 Eo tests: Add the needed define for accessing protected calls. (2)
I don't know how came I missed that one the last time.
2015-05-06 18:03:57 +01:00
Tom Hacohen 6cb22bae35 Eo: Add eo_do_part.
This is a convenience macro to be used by the common pattern of getting
a part and then immediately calling functions on it. For example,
  without this macro, you'd have to write code like:

Eo *part;
eo_do(obj, part = efl_part_name_get("partname"));
eo_do(part, a_set(7));

while using the helper function trims it to:

eo_do_part(obj, efl_part_name_get("partname"), a_set(7));

@feature
2015-05-06 17:56:05 +01:00
Tom Hacohen 875bc15146 Eo tests: Add the needed define for accessing protected calls.
Fixes the warnings. Thanks to cedric for reporting.
2015-05-06 17:05:38 +01:00
Daniel Kolesa db66fe6255 elua lib: fix elua_util_app_load + docs 2015-05-06 15:05:23 +01:00
Daniel Kolesa e73f7f7a40 elua lib: use Eina_Bool as return val in some utils 2015-05-06 15:05:23 +01:00
Daniel Kolesa e9aadea402 elua lib: fix tests 2015-05-06 15:05:23 +01:00
Daniel Kolesa 145cd1a615 elua lib: test elua_util_script_run 2015-05-06 15:05:21 +01:00
Daniel Kolesa 4da4f7a534 elua lib: test elua_util_file_run 2015-05-06 15:05:21 +01:00
Daniel Kolesa 9e28b90010 elua lib: unset environment vars in tests 2015-05-06 15:05:21 +01:00
Daniel Kolesa 5bfa8e8b14 elua lib: test raw file load 2015-05-06 15:05:21 +01:00
Daniel Kolesa 07133df0b5 elua lib: test error reporting + lua stack state 2015-05-06 15:05:21 +01:00
Daniel Kolesa e8a4f47f93 elua lib: test more utility APIs 2015-05-06 15:05:21 +01:00
Daniel Kolesa 3b17064c10 elua lib: test some util APIs 2015-05-06 15:05:21 +01:00
Daniel Kolesa 259f9067c2 elua lib: tests for require/appload refs 2015-05-06 15:05:21 +01:00
Daniel Kolesa a6c5ec55a7 elua lib: setup funcs tests 2015-05-06 15:05:21 +01:00
Daniel Kolesa 75dd60d62d elua lib: test elua_state_dirs_fill 2015-05-06 15:05:21 +01:00
Daniel Kolesa e77ba60a58 elua lib: tests for core dirs + fix core dirs 2015-05-06 15:05:21 +01:00
Daniel Kolesa 8a3a32b6fa elua lib: test progname 2015-05-06 15:05:20 +01:00
Daniel Kolesa a2e2eb7f89 elua: test state retrieval 2015-05-06 15:05:20 +01:00
Daniel Kolesa 1f35cdd473 elua: initial test (state creation/deletion) 2015-05-06 15:05:20 +01:00
Daniel Kolesa dbe34d803c elua lib: add test suite 2015-05-06 15:05:20 +01:00
vivek 400436cd1a eina_xattr: Fixed T2381, eina xattr tests failing
Summary:
This fixes the case where the system runs with SELinux enabled and enforced.
In this scenario the system does add a selinux attribute to new files which
we need to handle during our testing.

@Fix

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

Reviewers: cedric, stefan_schmidt

Subscribers: stefan_schmidt, cedric

Maniphest Tasks: T2381

Differential Revision: https://phab.enlightenment.org/D2467
2015-05-06 08:42:55 +02:00
Cedric BAIL c0c59bdb19 emile: only disable tests timeout on Windows. 2015-04-29 09:50:51 +02:00