projects
/
platform
/
upstream
/
pixman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a692e01
)
pixel-test: Command line argument to specify the regression to run
author
Søren Sandmann
<ssp@redhat.com>
Wed, 4 Dec 2013 15:32:29 +0000
(10:32 -0500)
committer
Søren Sandmann
<ssp@redhat.com>
Sat, 4 Jan 2014 21:13:27 +0000
(16:13 -0500)
A new command line argument allows the user to specify which one of
the regressions should be run.
test/pixel-test.c
patch
|
blob
|
history
diff --git
a/test/pixel-test.c
b/test/pixel-test.c
index 1ff4d8c624a434ef17ac0b78afa1e962361c7a8c..9d2831d62971445e976b33d4301997d56c010a85 100644
(file)
--- 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]);