diff options
author | Mike Blumenkrantz <zmike@samsung.com> | 2019-07-24 16:19:26 -0400 |
---|---|---|
committer | Cedric BAIL <cedric.bail@free.fr> | 2019-07-29 11:17:40 -0700 |
commit | 7f2ce2f99a345d4b3b667755db1d73f7db213f03 (patch) | |
tree | f820f4999a01947ed92a5c7ac96d1861f85d9326 /src/bin | |
parent | 44ff1e73bb7cefdf99c9cd68b250df0a497aa37d (diff) | |
download | efl-7f2ce2f99a345d4b3b667755db1d73f7db213f03.tar.gz |
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.c | 4 |
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; static Eina_List *tests, *cur_test;; static Eina_Bool hide_legacy = EINA_FALSE; static Eina_Bool hide_beta = EINA_FALSE; +static Eina_Bool all_tests = EINA_FALSE; struct elm_test { @@ -580,6 +581,7 @@ _menu_create(const char *option_str) } pcat = t->category; if (t == tt) tt = cfr; + if (all_tests) t->cb(NULL, NULL, NULL); } } @@ -1444,6 +1446,8 @@ efl_main(void *data EINA_UNUSED, { test_win_only = EINA_TRUE; } + else if (eina_streq(arg, "--all") || eina_streq(arg, "-a")) + all_tests = EINA_TRUE; else if ((i == eina_array_count(arge->argv) - 1) && (arg[0] != '-')) autorun = arg; |