summaryrefslogtreecommitdiff
path: root/test/cairo-test.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-09-15 14:05:10 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-09-15 14:05:10 +0100
commit768d39f034f47679492abfeaf6f5cf2ec9929c13 (patch)
tree38329809228b783535ca7f76e1fc328c7afd1af1 /test/cairo-test.c
parent1eaab086f36aeeacdcb12d377e1fd8746a2c7b79 (diff)
downloadcairo-768d39f034f47679492abfeaf6f5cf2ec9929c13.tar.gz
test: Move all the reference images to their own directory
With over two thousand references images now, it is starting to make the test directory look cluttered! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test/cairo-test.c')
-rw-r--r--test/cairo-test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/cairo-test.c b/test/cairo-test.c
index 3d834c233..837b76cc7 100644
--- a/test/cairo-test.c
+++ b/test/cairo-test.c
@@ -354,7 +354,7 @@ cairo_test_reference_filename (const cairo_test_context_t *ctx,
if (target_name != NULL) {
/* Next look for a target/format-specific reference image. */
- xasprintf (&ref_name, "%s/%s.%s.%s%s%s",
+ xasprintf (&ref_name, "%s/reference/%s.%s.%s%s%s",
ctx->srcdir,
test_name,
target_name,
@@ -367,7 +367,7 @@ cairo_test_reference_filename (const cairo_test_context_t *ctx,
goto done;
/* Next, look for target-specific reference image. */
- xasprintf (&ref_name, "%s/%s.%s%s%s",
+ xasprintf (&ref_name, "%s/reference/%s.%s%s%s",
ctx->srcdir,
test_name,
target_name,
@@ -381,7 +381,7 @@ cairo_test_reference_filename (const cairo_test_context_t *ctx,
if (base_target_name != NULL) {
/* Next look for a base/format-specific reference image. */
- xasprintf (&ref_name, "%s/%s.%s.%s%s%s",
+ xasprintf (&ref_name, "%s/reference/%s.%s.%s%s%s",
ctx->srcdir,
test_name,
base_target_name,
@@ -394,7 +394,7 @@ cairo_test_reference_filename (const cairo_test_context_t *ctx,
goto done;
/* Next, look for base-specific reference image. */
- xasprintf (&ref_name, "%s/%s.%s%s%s",
+ xasprintf (&ref_name, "%s/reference/%s.%s%s%s",
ctx->srcdir,
test_name,
base_target_name,
@@ -407,7 +407,7 @@ cairo_test_reference_filename (const cairo_test_context_t *ctx,
}
/* Next, look for format-specific reference image. */
- xasprintf (&ref_name, "%s/%s.%s%s%s",
+ xasprintf (&ref_name, "%s/reference/%s.%s%s%s",
ctx->srcdir,
test_name,
format,
@@ -419,7 +419,7 @@ cairo_test_reference_filename (const cairo_test_context_t *ctx,
goto done;
/* Finally, look for the standard reference image. */
- xasprintf (&ref_name, "%s/%s%s%s", ctx->srcdir,
+ xasprintf (&ref_name, "%s/reference/%s%s%s", ctx->srcdir,
test_name,
suffix,
extension);