forked from enlightenment/efl
tests: parallelize evas mesh tests
Summary: ref T6857 Depends on D5912 Reviewers: stefan_schmidt Subscribers: cedric Maniphest Tasks: T6857 Differential Revision: https://phab.enlightenment.org/D5913
This commit is contained in:
parent
1f4ecd5cf2
commit
35a600c2d0
|
@ -19,6 +19,9 @@ static const Efl_Test_Case etc[] = {
|
|||
{ "Images", evas_test_image_object },
|
||||
{ "Images", evas_test_image_object2 },
|
||||
{ "Meshes", evas_test_mesh },
|
||||
{ "Meshes", evas_test_mesh1 },
|
||||
{ "Meshes", evas_test_mesh2 },
|
||||
{ "Meshes", evas_test_mesh3 },
|
||||
{ "Masking", evas_test_mask },
|
||||
{ "Evas GL", evas_test_evasgl },
|
||||
{ "Object Smart", evas_test_object_smart },
|
||||
|
|
|
@ -13,6 +13,9 @@ void evas_test_filters(TCase *tc);
|
|||
void evas_test_image_object(TCase *tc);
|
||||
void evas_test_image_object2(TCase *tc);
|
||||
void evas_test_mesh(TCase *tc);
|
||||
void evas_test_mesh1(TCase *tc);
|
||||
void evas_test_mesh2(TCase *tc);
|
||||
void evas_test_mesh3(TCase *tc);
|
||||
void evas_test_mask(TCase *tc);
|
||||
void evas_test_evasgl(TCase *tc);
|
||||
void evas_test_object_smart(TCase *tc);
|
||||
|
|
|
@ -139,16 +139,24 @@ EFL_START_TEST(evas_object_mesh_loader_saver)
|
|||
char *file_mask = strdup("evas_test_mesh_XXXXXX");
|
||||
int res = 0, tmpfd;
|
||||
const Eina_File_Direct_Info *file;
|
||||
struct
|
||||
{
|
||||
const char *dir;
|
||||
const char *fmt;
|
||||
} values[4] =
|
||||
{
|
||||
{ TESTS_OBJ_MESH_DIR, ".eet" },
|
||||
{ TESTS_MD2_MESH_DIR, ".eet" },
|
||||
{ TESTS_PLY_MESH_DIR, ".eet" },
|
||||
{ TESTS_PLY_MESH_DIR, ".ply" },
|
||||
};
|
||||
|
||||
/* create tmp file name, assume tmp.eet and tmp.ply also work */
|
||||
tmpfd = eina_file_mkstemp(file_mask, &tmp);
|
||||
fail_if(tmpfd == -1);
|
||||
fail_if(!!close(tmpfd));
|
||||
|
||||
CHECK_MESHES_IN_FOLDER(TESTS_OBJ_MESH_DIR, ".eet")
|
||||
CHECK_MESHES_IN_FOLDER(TESTS_MD2_MESH_DIR, ".eet")
|
||||
CHECK_MESHES_IN_FOLDER(TESTS_PLY_MESH_DIR, ".eet")
|
||||
CHECK_MESHES_IN_FOLDER(TESTS_PLY_MESH_DIR, ".ply")
|
||||
CHECK_MESHES_IN_FOLDER(values[_i].dir, values[_i].fmt)
|
||||
|
||||
unlink(tmp);
|
||||
|
||||
|
@ -158,5 +166,20 @@ EFL_END_TEST
|
|||
|
||||
void evas_test_mesh(TCase *tc)
|
||||
{
|
||||
tcase_add_test(tc, evas_object_mesh_loader_saver);
|
||||
tcase_add_loop_test(tc, evas_object_mesh_loader_saver, 0, 1);
|
||||
}
|
||||
|
||||
void evas_test_mesh1(TCase *tc)
|
||||
{
|
||||
tcase_add_loop_test(tc, evas_object_mesh_loader_saver, 1, 2);
|
||||
}
|
||||
|
||||
void evas_test_mesh2(TCase *tc)
|
||||
{
|
||||
tcase_add_loop_test(tc, evas_object_mesh_loader_saver, 2, 3);
|
||||
}
|
||||
|
||||
void evas_test_mesh3(TCase *tc)
|
||||
{
|
||||
tcase_add_loop_test(tc, evas_object_mesh_loader_saver, 3, 4);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue