[gdk-pixbuf/wip/otte/tga] tests: Rename pixbuf-slow-load to pixbuf-reftest



commit d90cd3d176e84c7020edd138fea34281a7704532
Author: Benjamin Otte <otte redhat com>
Date:   Mon Oct 12 06:40:07 2015 +0200

    tests: Rename pixbuf-slow-load to pixbuf-reftest
    
    I want to use it as a reftesting tool.

 tests/Makefile.am                              |    8 ++++----
 tests/{pixbuf-slow-load.c => pixbuf-reftest.c} |    6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 7c20239..8b7cdac 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -37,10 +37,10 @@ test_programs =                     \
        pixbuf-jpeg                     \
        pixbuf-dpi                      \
        pixbuf-stream                   \
+       pixbuf-reftest                  \
        pixbuf-resource                 \
        pixbuf-scale                    \
        pixbuf-short-gif-write          \
-       pixbuf-slow-load                \
        pixbuf-save                     \
        pixbuf-readonly-to-mutable      \
        pixbuf-composite                \
@@ -63,7 +63,7 @@ dist_installed_test_data =            \
        large.png                       \
        large.jpg                       \
        $(wildcard $(srcdir)/test-images/randomly-modified/*) \
-       $(wildcard $(srcdir)/test-images/tga/*) \
+       $(wildcard $(srcdir)/test-images/reftest/tga/*) \
        $(NULL)
 
 pixbuf_randomly_modified_SOURCES =     \
@@ -122,8 +122,8 @@ pixbuf_save_SOURCES =                       \
        test-common.h                   \
        $(NULL)
 
-pixbuf_slow_load_SOURCES =             \
-       pixbuf-slow-load.c              \
+pixbuf_reftest_SOURCES =               \
+       pixbuf-reftest.c                \
        test-common.c                   \
        test-common.h                   \
        $(NULL)
diff --git a/tests/pixbuf-slow-load.c b/tests/pixbuf-reftest.c
similarity index 95%
rename from tests/pixbuf-slow-load.c
rename to tests/pixbuf-reftest.c
index 9633ef0..95a2782 100644
--- a/tests/pixbuf-slow-load.c
+++ b/tests/pixbuf-reftest.c
@@ -84,7 +84,7 @@ is_not_ref_image (const char *filename)
 }
 
 static void
-test_reftest_success (gconstpointer file)
+test_reftest (gconstpointer file)
 {
   GdkPixbufLoader *loader;
   GdkPixbuf *reference, *loaded = NULL;
@@ -150,8 +150,8 @@ main (int argc, char **argv)
 
   g_test_init (&argc, &argv, NULL);
 
-  tga_test_images = g_build_filename (g_test_get_dir (G_TEST_DIST), "test-images/tga", NULL);
-  add_test_for_all_images ("/pixbuf/reftest/success", tga_test_images, test_reftest_success, 
is_not_ref_image);
+  tga_test_images = g_build_filename (g_test_get_dir (G_TEST_DIST), "test-images/reftests", NULL);
+  add_test_for_all_images ("/pixbuf/reftest", tga_test_images, test_reftest, is_not_ref_image);
   g_free (tga_test_images);
 
   return g_test_run ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]