summaryrefslogtreecommitdiff
path: root/src/tests/evas/evas_test_image.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-03-26 14:19:28 -0400
committerStefan Schmidt <stefan@osg.samsung.com>2018-04-05 11:10:25 +0200
commitadc601aca2f0a16784af36bf6ae7dd20eeb33202 (patch)
treecac0a78fa40e88abb028b06d985c28bf89da269c /src/tests/evas/evas_test_image.c
parentb340b5e49ccae48a7d5adbbfa301af39e232348c (diff)
tests: add instrumentation to existing tests to find slow tests
efl_check.h must be included and the EFL_START/END_TEST macros must be used in place of normal START/END_TEST macros timing is enabled when TIMING_ENABLED is set https://phab.enlightenment.org/w/improve_tests/ Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Diffstat (limited to 'src/tests/evas/evas_test_image.c')
-rw-r--r--src/tests/evas/evas_test_image.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/tests/evas/evas_test_image.c b/src/tests/evas/evas_test_image.c
index 392084145a..cdd7bff03d 100644
--- a/src/tests/evas/evas_test_image.c
+++ b/src/tests/evas/evas_test_image.c
@@ -51,7 +51,7 @@ static const char *exts[] = {
51#endif 51#endif
52}; 52};
53 53
54START_TEST(evas_object_image_loader) 54EFL_START_TEST(evas_object_image_loader)
55{ 55{
56 Evas *e = _setup_evas(); 56 Evas *e = _setup_evas();
57 Evas_Object *o; 57 Evas_Object *o;
@@ -89,7 +89,7 @@ START_TEST(evas_object_image_loader)
89 evas_free(e); 89 evas_free(e);
90 ecore_evas_shutdown(); 90 ecore_evas_shutdown();
91} 91}
92END_TEST 92EFL_END_TEST
93 93
94typedef struct _Orientation_Test_Res Orientation_Test_Res; 94typedef struct _Orientation_Test_Res Orientation_Test_Res;
95struct _Orientation_Test_Res { 95struct _Orientation_Test_Res {
@@ -236,7 +236,7 @@ static int _compare_img_transverse(const uint32_t *d1, const uint32_t *d2, int w
236 return 0; 236 return 0;
237} 237}
238 238
239START_TEST(evas_object_image_loader_orientation) 239EFL_START_TEST(evas_object_image_loader_orientation)
240{ 240{
241 Evas *e = _setup_evas(); 241 Evas *e = _setup_evas();
242 Evas_Object *orig, *rot; 242 Evas_Object *orig, *rot;
@@ -284,9 +284,9 @@ START_TEST(evas_object_image_loader_orientation)
284 evas_free(e); 284 evas_free(e);
285 ecore_evas_shutdown(); 285 ecore_evas_shutdown();
286} 286}
287END_TEST 287EFL_END_TEST
288 288
289START_TEST(evas_object_image_orient) 289EFL_START_TEST(evas_object_image_orient)
290{ 290{
291 Evas *e = _setup_evas(); 291 Evas *e = _setup_evas();
292 Evas_Object *orig; 292 Evas_Object *orig;
@@ -334,10 +334,10 @@ START_TEST(evas_object_image_orient)
334 evas_free(e); 334 evas_free(e);
335 ecore_evas_shutdown(); 335 ecore_evas_shutdown();
336} 336}
337END_TEST 337EFL_END_TEST
338 338
339#ifdef BUILD_LOADER_TGV 339#ifdef BUILD_LOADER_TGV
340START_TEST(evas_object_image_tgv_loader_data) 340EFL_START_TEST(evas_object_image_tgv_loader_data)
341{ 341{
342 Evas *e = _setup_evas(); 342 Evas *e = _setup_evas();
343 Evas_Object *obj, *ref; 343 Evas_Object *obj, *ref;
@@ -392,10 +392,10 @@ START_TEST(evas_object_image_tgv_loader_data)
392 evas_free(e); 392 evas_free(e);
393 ecore_evas_shutdown(); 393 ecore_evas_shutdown();
394} 394}
395END_TEST 395EFL_END_TEST
396#endif 396#endif
397 397
398START_TEST(evas_object_image_all_loader_data) 398EFL_START_TEST(evas_object_image_all_loader_data)
399{ 399{
400 Evas *e = _setup_evas(); 400 Evas *e = _setup_evas();
401 Evas_Object *obj, *ref; 401 Evas_Object *obj, *ref;
@@ -462,13 +462,13 @@ START_TEST(evas_object_image_all_loader_data)
462 evas_free(e); 462 evas_free(e);
463 ecore_evas_shutdown(); 463 ecore_evas_shutdown();
464} 464}
465END_TEST 465EFL_END_TEST
466 466
467const char *buggy[] = { 467const char *buggy[] = {
468 "BMP301K" 468 "BMP301K"
469}; 469};
470 470
471START_TEST(evas_object_image_buggy) 471EFL_START_TEST(evas_object_image_buggy)
472{ 472{
473 Evas *e = _setup_evas(); 473 Evas *e = _setup_evas();
474 Evas_Object *obj, *ref; 474 Evas_Object *obj, *ref;
@@ -523,7 +523,7 @@ START_TEST(evas_object_image_buggy)
523 evas_free(e); 523 evas_free(e);
524 ecore_evas_shutdown(); 524 ecore_evas_shutdown();
525} 525}
526END_TEST 526EFL_END_TEST
527 527
528static void check_rotate_region(Evas_Image_Orient orientation, int *r_x, int *r_y, int *r_w, int *r_h, int w, int h) 528static void check_rotate_region(Evas_Image_Orient orientation, int *r_x, int *r_y, int *r_w, int *r_h, int w, int h)
529{ 529{
@@ -579,7 +579,7 @@ static void check_rotate_region(Evas_Image_Orient orientation, int *r_x, int *r_
579} 579}
580 580
581 581
582START_TEST(evas_object_image_partially_load_orientation) 582EFL_START_TEST(evas_object_image_partially_load_orientation)
583{ 583{
584 static const Orientation_Test_Res res[] = { 584 static const Orientation_Test_Res res[] = {
585 { TESTS_IMG_DIR"/Light_exif.jpg", "Original", EVAS_IMAGE_ORIENT_NONE, _compare_img }, 585 { TESTS_IMG_DIR"/Light_exif.jpg", "Original", EVAS_IMAGE_ORIENT_NONE, _compare_img },
@@ -634,9 +634,9 @@ START_TEST(evas_object_image_partially_load_orientation)
634 evas_free(e); 634 evas_free(e);
635 ecore_evas_shutdown(); 635 ecore_evas_shutdown();
636} 636}
637END_TEST 637EFL_END_TEST
638 638
639START_TEST(evas_object_image_defaults) 639EFL_START_TEST(evas_object_image_defaults)
640{ 640{
641 Evas *e = _setup_evas(); 641 Evas *e = _setup_evas();
642 Evas_Object *o; 642 Evas_Object *o;
@@ -661,10 +661,10 @@ START_TEST(evas_object_image_defaults)
661 evas_free(e); 661 evas_free(e);
662 ecore_evas_shutdown(); 662 ecore_evas_shutdown();
663} 663}
664END_TEST 664EFL_END_TEST
665 665
666// FIXME: belongs to another file 666// FIXME: belongs to another file
667START_TEST(evas_object_image_map_unmap) 667EFL_START_TEST(evas_object_image_map_unmap)
668{ 668{
669 Evas *e = _setup_evas(); 669 Evas *e = _setup_evas();
670 Evas_Object *o, *o2; 670 Evas_Object *o, *o2;
@@ -825,10 +825,10 @@ START_TEST(evas_object_image_map_unmap)
825 evas_free(e); 825 evas_free(e);
826 ecore_evas_shutdown(); 826 ecore_evas_shutdown();
827} 827}
828END_TEST 828EFL_END_TEST
829 829
830#if BUILD_LOADER_JP2K 830#if BUILD_LOADER_JP2K
831START_TEST(evas_object_image_jp2k_loader_data) 831EFL_START_TEST(evas_object_image_jp2k_loader_data)
832{ 832{
833 Evas *e = _setup_evas(); 833 Evas *e = _setup_evas();
834 Evas_Object *obj, *ref; 834 Evas_Object *obj, *ref;
@@ -877,7 +877,7 @@ START_TEST(evas_object_image_jp2k_loader_data)
877 evas_free(e); 877 evas_free(e);
878 ecore_evas_shutdown(); 878 ecore_evas_shutdown();
879} 879}
880END_TEST 880EFL_END_TEST
881#endif 881#endif
882 882
883void evas_test_image_object(TCase *tc) 883void evas_test_image_object(TCase *tc)