[easytag] Use versioning guards for tests
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Use versioning guards for tests
- Date: Mon, 23 Feb 2015 19:31:41 +0000 (UTC)
commit 3fc01f03d7730524cf02ede2e9adcf1f5df70dde
Author: David King <amigadave amigadave com>
Date: Mon Feb 23 19:04:04 2015 +0000
Use versioning guards for tests
Simplify test declaration by factoring out the common variables, and add
the versioning guards to those.
Makefile.am | 56 ++++++++++++++++++++++++++------------------------------
1 files changed, 26 insertions(+), 30 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 51b698a..73ef15f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -445,13 +445,21 @@ check_PROGRAMS = \
tests/test-picture \
tests/test-scan
-tests_test_dlm_CPPFLAGS = \
+common_test_cppflags = \
-I$(top_srcdir)/src \
- -I$(top_builddir)
+ -I$(top_builddir) \
+ $(GLIB_DEPRECATION_FLAGS) \
+ $(GTK_DEPRECATION_FLAGS)
+
+common_test_cflags = \
+ $(EASYTAG_CFLAGS) \
+ $(WARN_CFLAGS)
+
+tests_test_dlm_CPPFLAGS = \
+ $(common_test_cppflags)
tests_test_dlm_CFLAGS = \
- $(WARN_CFLAGS) \
- $(EASYTAG_CFLAGS)
+ $(common_test_cflags)
tests_test_dlm_SOURCES = \
tests/test-dlm.c \
@@ -461,12 +469,10 @@ tests_test_dlm_LDADD = \
$(EASYTAG_LIBS)
tests_test_file_description_CPPFLAGS = \
- -I$(top_srcdir)/src \
- -I$(top_builddir)
+ $(common_test_cppflags)
tests_test_file_description_CFLAGS = \
- $(WARN_CFLAGS) \
- $(EASYTAG_CFLAGS)
+ $(common_test_cflags)
tests_test_file_description_SOURCES = \
tests/test-file_description.c \
@@ -476,12 +482,10 @@ tests_test_file_description_LDADD = \
$(EASYTAG_LIBS)
tests_test_file_info_CPPFLAGS = \
- -I$(top_srcdir)/src \
- -I$(top_builddir)
+ $(common_test_cppflags)
tests_test_file_info_CFLAGS = \
- $(WARN_CFLAGS) \
- $(EASYTAG_CFLAGS)
+ $(common_test_cflags)
tests_test_file_info_SOURCES = \
tests/test-file_info.c \
@@ -491,13 +495,11 @@ tests_test_file_info_LDADD = \
$(EASYTAG_LIBS)
tests_test_file_tag_CPPFLAGS = \
- -I$(top_srcdir)/src \
- -I$(top_srcdir)/src/tags \
- -I$(top_builddir)
+ $(common_test_cppflags) \
+ -I$(top_srcdir)/src/tags
tests_test_file_tag_CFLAGS = \
- $(WARN_CFLAGS) \
- $(EASYTAG_CFLAGS)
+ $(common_test_cflags)
tests_test_file_tag_SOURCES = \
tests/test-file_tag.c \
@@ -509,13 +511,11 @@ tests_test_file_tag_LDADD = \
$(EASYTAG_LIBS)
tests_test_misc_CPPFLAGS = \
- -I$(top_srcdir)/src \
- -I$(top_srcdir)/src/tags \
- -I$(top_builddir)
+ $(common_test_cppflags) \
+ -I$(top_srcdir)/src/tags
tests_test_misc_CFLAGS = \
- $(WARN_CFLAGS) \
- $(EASYTAG_CFLAGS)
+ $(common_test_cflags)
tests_test_misc_SOURCES = \
tests/test-misc.c \
@@ -525,12 +525,10 @@ tests_test_misc_LDADD = \
$(EASYTAG_LIBS)
tests_test_picture_CPPFLAGS = \
- -I$(top_srcdir)/src \
- -I$(top_builddir)
+ $(common_test_cppflags)
tests_test_picture_CFLAGS = \
- $(WARN_CFLAGS) \
- $(EASYTAG_CFLAGS)
+ $(common_test_cflags)
tests_test_picture_SOURCES = \
tests/test-picture.c \
@@ -540,12 +538,10 @@ tests_test_picture_LDADD = \
$(EASYTAG_LIBS)
tests_test_scan_CPPFLAGS = \
- -I$(top_srcdir)/src \
- -I$(top_builddir)
+ $(common_test_cppflags)
tests_test_scan_CFLAGS = \
- $(WARN_CFLAGS) \
- $(EASYTAG_CFLAGS)
+ $(common_test_cflags)
tests_test_scan_SOURCES = \
tests/test-scan.c \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]