[gtksourceviewmm] Transition to mm-common: tests.



commit 94fe4f29938dfa06ce05c93982399bef3028bf9e
Author: Krzesimir Nowak <qdlacz gmail com>
Date:   Wed Dec 9 12:27:22 2009 +0100

    Transition to mm-common: tests.
    
    * tests/Makefile.am: Modified to mm-common.
    * tests/test-{basic, get-buffer, langs, mime-types, search}.cpp:
    Moved each to separate directory and renamed to main.cc.

 tests/Makefile.am                                 |   49 ++++++++++-----------
 tests/{test-basic.cpp => basic/main.cc}           |    0
 tests/{test-get-buffer.cpp => get_buffer/main.cc} |    0
 tests/{test-langs.cpp => langs/main.cc}           |    0
 tests/{test-mime-types.cpp => mime_types/main.cc} |    0
 tests/{test-search.cpp => search/main.cc}         |    0
 6 files changed, 24 insertions(+), 25 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 72a475a..4fa5f91 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,25 +1,24 @@
-noinst_PROGRAMS=\
-runtestbasic runtestlangs \
-runtestsearch \
-runtestgetbuffer
-
-runtestbasic_SOURCES=test-basic.cpp
-runtestbasic_LDFLAGS= GTKSOURCEVIEWMM_LIBS@
-
-runtestlangs_SOURCES=test-langs.cpp
-runtestlangs_LDFLAGS= GTKSOURCEVIEWMM_LIBS@
-
-runtestsearch_SOURCES=test-search.cpp
-runtestsearch_LDFLAGS= GTKSOURCEVIEWMM_LIBS@
-
-#runtestmimetypes_SOURCES=test-mime-types.cpp
-#runtestmimetypes_LDFLAGS= GTKSOURCEVIEWMM_LIBS@
-
-runtestgetbuffer_SOURCES=test-get-buffer.cpp
-runtestgetbuffer_LDFLAGS= GTKSOURCEVIEWMM_LIBS@
-
-INCLUDES=-I$(top_srcdir) -I$(top_srcdir)/gtksourceview \
- GTKSOURCEVIEWMM_CFLAGS@
-
-LDADD=$(top_builddir)/gtksourceview/gtksourceviewmm/libgtksourceviewmm-2.0.la
-
+AUTOMAKE_OPTIONS = subdir-objects
+
+check_PROGRAMS =	\
+	basic/test	\
+	langs/test	\
+	search/test	\
+	mime_types/test	\
+	get_buffer/test
+
+basic_test_SOURCES      = basic/main.cc
+langs_test_SOURCES      = langs/main.cc
+search_test_SOURCES     = search/main.cc
+mime_types_test_SOURCES = mime_types/main.cc
+get_buffer_test_SOURCES = get_buffer/main.cc
+
+gtksourceviewmm_includes = -I$(top_builddir)/gtksourceview $(if $(srcdir:.=),-I$(top_srcdir)/gtksourceview)
+gtksourceviewmm_ldadd    = $(top_builddir)/gtksourceview/gtksourceviewmm/libgtksourceviewmm-$(GTKSOURCEVIEWMM_API_VERSION).la
+
+local_includes = -I$(top_builddir) $(gtksourceviewmm_includes)
+local_ldadd    = $(gtksourceviewmm_ldadd)
+
+AM_CPPFLAGS = $(local_includes) $(GTHREAD_CFLAGS) $(GTKSOURCEVIEWMM_CFLAGS)
+AM_CXXFLAGS = $(GTKSOURCEVIEWMM_WXXFLAGS)
+LDADD       = $(GTKSOURCEVIEWMM_LIBS) $(local_ldadd)
diff --git a/tests/test-basic.cpp b/tests/basic/main.cc
similarity index 100%
rename from tests/test-basic.cpp
rename to tests/basic/main.cc
diff --git a/tests/test-get-buffer.cpp b/tests/get_buffer/main.cc
similarity index 100%
rename from tests/test-get-buffer.cpp
rename to tests/get_buffer/main.cc
diff --git a/tests/test-langs.cpp b/tests/langs/main.cc
similarity index 100%
rename from tests/test-langs.cpp
rename to tests/langs/main.cc
diff --git a/tests/test-mime-types.cpp b/tests/mime_types/main.cc
similarity index 100%
rename from tests/test-mime-types.cpp
rename to tests/mime_types/main.cc
diff --git a/tests/test-search.cpp b/tests/search/main.cc
similarity index 100%
rename from tests/test-search.cpp
rename to tests/search/main.cc



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