From: Søren Sandmann Date: Wed, 4 Dec 2013 15:32:29 +0000 (-0500) Subject: pixel-test: Command line argument to specify the regression to run X-Git-Tag: pixman-0.33.2~79 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2fd65dba35027a52696f497d414194514519d0f;p=platform%2Fupstream%2Fpixman.git pixel-test: Command line argument to specify the regression to run A new command line argument allows the user to specify which one of the regressions should be run. --- diff --git a/test/pixel-test.c b/test/pixel-test.c index 1ff4d8c..9d2831d 100644 --- a/test/pixel-test.c +++ b/test/pixel-test.c @@ -302,8 +302,20 @@ main (int argc, char **argv) { int result = 0; int i, j; + int lo, hi; - for (i = 0; i < ARRAY_LENGTH (regressions); ++i) + if (argc > 1) + { + lo = atoi (argv[1]); + hi = lo + 1; + } + else + { + lo = 0; + hi = ARRAY_LENGTH (regressions); + } + + for (i = lo; i < hi; ++i) { const pixel_combination_t *combination = &(regressions[i]);