summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@yahoo.com>2018-06-10 11:57:28 +0300
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2018-06-10 11:57:28 +0300
commite59cca6fcee294ef640dc57b2a9f74f83d61918e (patch)
tree2b4359dafb26f3b193cea65a195e689f76d1f840
parent08a6abd881c2abb274843c4de7692bd1cdbd18a7 (diff)
Suite: support player --disable-screenshots options
-rw-r--r--src/bin/exactness.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/exactness.c b/src/bin/exactness.c
index c8ac444..b46d64e 100644
--- a/src/bin/exactness.c
+++ b/src/bin/exactness.c
@@ -38,7 +38,7 @@ static Eina_List *_base_dirs = NULL;
38static char *_dest_dir; 38static char *_dest_dir;
39static char *_wrap_command = NULL, *_fonts_dir = NULL; 39static char *_wrap_command = NULL, *_fonts_dir = NULL;
40static int _verbose = 0; 40static int _verbose = 0;
41static Eina_Bool _scan_objs = EINA_FALSE; 41static Eina_Bool _scan_objs = EINA_FALSE, _disable_screenshots = EINA_FALSE;
42 42
43static Run_Mode _mode; 43static Run_Mode _mode;
44static List_Entry *_next_test_to_run = NULL; 44static List_Entry *_next_test_to_run = NULL;
@@ -226,12 +226,13 @@ _run_command_prepare(const List_Entry *ent, char *buf)
226ok: 226ok:
227 sbuf = eina_strbuf_new(); 227 sbuf = eina_strbuf_new();
228 eina_strbuf_append_printf(sbuf, 228 eina_strbuf_append_printf(sbuf,
229 "%s %s exactness_play %s %s%s %s%.*s %s-t '%s' ", 229 "%s %s exactness_play %s %s%s %s%.*s %s%s-t '%s' ",
230 CONFIG, _wrap_command ? _wrap_command : "", 230 CONFIG, _wrap_command ? _wrap_command : "",
231 _mode == RUN_SIMULATION ? "-s" : "", 231 _mode == RUN_SIMULATION ? "-s" : "",
232 _fonts_dir ? "-f " : "", _fonts_dir ? _fonts_dir : "", 232 _fonts_dir ? "-f " : "", _fonts_dir ? _fonts_dir : "",
233 _verbose ? "-" : "", _verbose, "vvvvvvvvvv", 233 _verbose ? "-" : "", _verbose, "vvvvvvvvvv",
234 _scan_objs ? "--scan-objects " : "", 234 _scan_objs ? "--scan-objects " : "",
235 _disable_screenshots ? "--disable-screenshots " : "",
235 scn_path 236 scn_path
236 ); 237 );
237 if (is_exu) 238 if (is_exu)
@@ -465,6 +466,7 @@ static const Ecore_Getopt optdesc = {
465 ECORE_GETOPT_STORE_TRUE('i', "init", "Run in init mode."), 466 ECORE_GETOPT_STORE_TRUE('i', "init", "Run in init mode."),
466 ECORE_GETOPT_STORE_TRUE('s', "simulation", "Run in simulation mode."), 467 ECORE_GETOPT_STORE_TRUE('s', "simulation", "Run in simulation mode."),
467 ECORE_GETOPT_STORE_TRUE(0, "scan-objects", "Extract information of all the objects at every shot."), 468 ECORE_GETOPT_STORE_TRUE(0, "scan-objects", "Extract information of all the objects at every shot."),
469 ECORE_GETOPT_STORE_TRUE(0, "disable-screenshots", "Disable screenshots."),
468 ECORE_GETOPT_STORE_STR('f', "fonts-dir", "Specify a directory of the fonts that should be used."), 470 ECORE_GETOPT_STORE_STR('f', "fonts-dir", "Specify a directory of the fonts that should be used."),
469 ECORE_GETOPT_COUNT('v', "verbose", "Turn verbose messages on."), 471 ECORE_GETOPT_COUNT('v', "verbose", "Turn verbose messages on."),
470 472
@@ -497,6 +499,7 @@ main(int argc, char *argv[])
497 ECORE_GETOPT_VALUE_BOOL(mode_init), 499 ECORE_GETOPT_VALUE_BOOL(mode_init),
498 ECORE_GETOPT_VALUE_BOOL(mode_simulation), 500 ECORE_GETOPT_VALUE_BOOL(mode_simulation),
499 ECORE_GETOPT_VALUE_BOOL(scan_objs), 501 ECORE_GETOPT_VALUE_BOOL(scan_objs),
502 ECORE_GETOPT_VALUE_BOOL(_disable_screenshots),
500 ECORE_GETOPT_VALUE_STR(_fonts_dir), 503 ECORE_GETOPT_VALUE_STR(_fonts_dir),
501 ECORE_GETOPT_VALUE_INT(_verbose), 504 ECORE_GETOPT_VALUE_INT(_verbose),
502 505