[gthumb] moved the tests in the gthumb directory



commit 3729585c5ef74abb2936a7f0d522d8a46cc63a16
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Oct 19 09:03:54 2013 +0200

    moved the tests in the gthumb directory

 Makefile.am                                        |    2 +-
 configure.ac                                       |    3 +-
 gthumb/Makefile.am                                 |   20 +++++++++++++++++++
 tests/dom-test.c => gthumb/test-dom.c              |    0
 .../glib-utils-test.c => gthumb/test-glib-utils.c  |    0
 .../gsignature-test.c => gthumb/test-gsignature.c  |    0
 tests/oauth-test.c => gthumb/test-oauth.c          |    0
 tests/Makefile.am                                  |   21 --------------------
 8 files changed, 22 insertions(+), 24 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 1b51d71..63f1efe 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = m4 copy-n-paste data po gthumb extensions tests help
+SUBDIRS = m4 copy-n-paste data po gthumb extensions help
 
 ACLOCAL_AMFLAGS = -I m4
 
diff --git a/configure.ac b/configure.ac
index d2121f4..a8ea5b6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,7 +10,7 @@ AC_PREREQ(2.63)
 AC_INIT([gthumb], [gthumb_version],
         [http://bugzilla.gnome.org/enter_bug.cgi?product=gthumb],
         [gthumb])
-AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz tar-ustar subdir-objects])
+AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz tar-ustar])
 
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_MACRO_DIR([m4])
@@ -788,7 +788,6 @@ extensions/webalbums/data/ui/Makefile
 gthumb/Makefile
 gthumb/resources/Makefile
 po/Makefile.in
-tests/Makefile
 ])
 
 AC_OUTPUT
diff --git a/gthumb/Makefile.am b/gthumb/Makefile.am
index 67d0265..614ffe3 100644
--- a/gthumb/Makefile.am
+++ b/gthumb/Makefile.am
@@ -411,4 +411,24 @@ install-exec-hook:
        $(INSTALL_DATA) .libs/libgthumb.a $(DESTDIR)$(pkglibdir)/libgthumb.a
 endif
 
+if BUILD_TEST_SUITE
+noinst_PROGRAMS = test-dom test-glib-utils test-gsignature test-oauth
+endif
+
+test_dom_SOURCES = test-dom.c dom.c
+test_dom_LDADD = $(GTHUMB_LIBS) 
+test_dom_CFLAGS = $(GTHUMB_CFLAGS)
+
+test_glib_utils_SOURCES = test-glib-utils.c glib-utils.c
+test_glib_utils_LDADD = $(GTHUMB_LIBS) 
+test_glib_utils_CFLAGS = $(GTHUMB_CFLAGS)
+
+test_gsignature_SOURCES = test-gsignature.c gsignature.c
+test_gsignature_LDADD = $(GTHUMB_LIBS) 
+test_gsignature_CFLAGS = $(GTHUMB_CFLAGS)
+
+test_oauth_SOURCES = test-oauth.c gsignature.c
+test_oauth_LDADD = $(GTHUMB_LIBS)
+test_oauth_CFLAGS = $(GTHUMB_CFLAGS)
+
 -include $(top_srcdir)/git.mk
diff --git a/tests/dom-test.c b/gthumb/test-dom.c
similarity index 100%
rename from tests/dom-test.c
rename to gthumb/test-dom.c
diff --git a/tests/glib-utils-test.c b/gthumb/test-glib-utils.c
similarity index 100%
rename from tests/glib-utils-test.c
rename to gthumb/test-glib-utils.c
diff --git a/tests/gsignature-test.c b/gthumb/test-gsignature.c
similarity index 100%
rename from tests/gsignature-test.c
rename to gthumb/test-gsignature.c
diff --git a/tests/oauth-test.c b/gthumb/test-oauth.c
similarity index 100%
rename from tests/oauth-test.c
rename to gthumb/test-oauth.c


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