summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-24 16:19:26 -0400
committerCedric BAIL <cedric.bail@free.fr>2019-07-29 11:17:40 -0700
commit7f2ce2f99a345d4b3b667755db1d73f7db213f03 (patch)
treef820f4999a01947ed92a5c7ac96d1861f85d9326 /src/bin
parent44ff1e73bb7cefdf99c9cd68b250df0a497aa37d (diff)
elm_test: add option for running all tests on startup
this is useful for doing quick testing when making invasive changes that affect a large number of widgets, such as rewriting all sizing calc code Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9407
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/elementary/test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/elementary/test.c b/src/bin/elementary/test.c
index adae27b52c..f4400695e5 100644
--- a/src/bin/elementary/test.c
+++ b/src/bin/elementary/test.c
@@ -409,6 +409,7 @@ static void *tt;
409static Eina_List *tests, *cur_test;; 409static Eina_List *tests, *cur_test;;
410static Eina_Bool hide_legacy = EINA_FALSE; 410static Eina_Bool hide_legacy = EINA_FALSE;
411static Eina_Bool hide_beta = EINA_FALSE; 411static Eina_Bool hide_beta = EINA_FALSE;
412static Eina_Bool all_tests = EINA_FALSE;
412 413
413struct elm_test 414struct elm_test
414{ 415{
@@ -580,6 +581,7 @@ _menu_create(const char *option_str)
580 } 581 }
581 pcat = t->category; 582 pcat = t->category;
582 if (t == tt) tt = cfr; 583 if (t == tt) tt = cfr;
584 if (all_tests) t->cb(NULL, NULL, NULL);
583 } 585 }
584} 586}
585 587
@@ -1444,6 +1446,8 @@ efl_main(void *data EINA_UNUSED,
1444 { 1446 {
1445 test_win_only = EINA_TRUE; 1447 test_win_only = EINA_TRUE;
1446 } 1448 }
1449 else if (eina_streq(arg, "--all") || eina_streq(arg, "-a"))
1450 all_tests = EINA_TRUE;
1447 else if ((i == eina_array_count(arge->argv) - 1) && (arg[0] != '-')) 1451 else if ((i == eina_array_count(arge->argv) - 1) && (arg[0] != '-'))
1448 autorun = arg; 1452 autorun = arg;
1449 1453