diff options
author | Benjamin Otte <otte@redhat.com> | 2015-10-12 06:40:07 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-10-12 16:09:07 +0200 |
commit | d90cd3d176e84c7020edd138fea34281a7704532 (patch) | |
tree | e867ceaa2d98311265511e2addeaaba696692f63 | |
parent | 70e354eb5f106cc5ddef38c3c7bc71fb9cf316cb (diff) | |
download | gdk-pixbuf-d90cd3d176e84c7020edd138fea34281a7704532.tar.gz |
tests: Rename pixbuf-slow-load to pixbuf-reftest
I want to use it as a reftesting tool.
-rw-r--r-- | tests/Makefile.am | 8 | ||||
-rw-r--r-- | tests/pixbuf-reftest.c (renamed from tests/pixbuf-slow-load.c) | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 7c202394e..8b7cdacbd 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 index 9633ef080..95a278255 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 (); |