[folks] Build tests with extra debug information.
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Build tests with extra debug information.
- Date: Thu, 25 Aug 2011 22:27:52 +0000 (UTC)
commit fa38471cd772613c5c78f8bd769c117cb18fcc57
Author: Travis Reitter <travis reitter collabora co uk>
Date: Thu Aug 25 14:28:06 2011 -0700
Build tests with extra debug information.
Notably, this provides gdb with Vala source file line numbers for
backtraces (which should save a bit of digging through generated C
files).
Gdb still lists generated C line numbers for lines farther up the
stack when there's no obvious Vala line equivalent.
configure.ac | 5 +++++
tests/eds/Makefile.am | 1 +
tests/folks/Makefile.am | 1 +
tests/key-file/Makefile.am | 1 +
tests/lib/Makefile.am | 1 +
tests/lib/eds/Makefile.am | 1 +
tests/lib/key-file/Makefile.am | 1 +
tests/lib/libsocialweb/Makefile.am | 1 +
tests/lib/tracker/Makefile.am | 1 +
tests/libsocialweb/Makefile.am | 1 +
tests/telepathy/Makefile.am | 1 +
tests/tracker/Makefile.am | 1 +
12 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6249e0f..9b5a082 100644
--- a/configure.ac
+++ b/configure.ac
@@ -424,6 +424,11 @@ AS_IF([test "x$enable_vala" = "xyes"],
$ERROR_INTROSPECTION_SCANNER_ARGS --warn-error"
ERROR_VALAFLAGS="$ERROR_VALAFLAGS --fatal-warnings"])
+m4_if(folks_released, [1], [],
+ [
+ ERROR_VALAFLAGS="$ERROR_VALAFLAGS -g"
+ ])
+
AC_SUBST([ERROR_INTROSPECTION_SCANNER_ARGS])
AC_SUBST([ERROR_VALAFLAGS])
diff --git a/tests/eds/Makefile.am b/tests/eds/Makefile.am
index 07bc809..54e134c 100644
--- a/tests/eds/Makefile.am
+++ b/tests/eds/Makefile.am
@@ -39,6 +39,7 @@ AM_VALAFLAGS = \
--pkg folks-eds \
--pkg eds-test \
--pkg gconf-2.0 \
+ -g \
$(NULL)
# in order from least to most complex
diff --git a/tests/folks/Makefile.am b/tests/folks/Makefile.am
index cbb895b..a37bd78 100644
--- a/tests/folks/Makefile.am
+++ b/tests/folks/Makefile.am
@@ -35,6 +35,7 @@ AM_VALAFLAGS = \
--pkg folks-test \
--pkg kf-test \
--pkg tp-test-contactlist \
+ -g \
$(NULL)
# in order from least to most complex
diff --git a/tests/key-file/Makefile.am b/tests/key-file/Makefile.am
index 65cccc7..1e42695 100644
--- a/tests/key-file/Makefile.am
+++ b/tests/key-file/Makefile.am
@@ -26,6 +26,7 @@ AM_VALAFLAGS = \
--pkg folks \
--pkg folks-test \
--pkg kf-test \
+ -g \
$(NULL)
# in order from least to most complex
diff --git a/tests/lib/Makefile.am b/tests/lib/Makefile.am
index eed9207..428131c 100644
--- a/tests/lib/Makefile.am
+++ b/tests/lib/Makefile.am
@@ -35,6 +35,7 @@ libfolks_test_la_VALAFLAGS = \
--pkg gio-2.0 \
--library folks-test \
-H folks-test.h \
+ -g \
$(NULL)
MAINTAINERCLEANFILES = \
diff --git a/tests/lib/eds/Makefile.am b/tests/lib/eds/Makefile.am
index 3c767ee..cc48639 100644
--- a/tests/lib/eds/Makefile.am
+++ b/tests/lib/eds/Makefile.am
@@ -13,6 +13,7 @@ VALAFLAGS += \
--pkg libedataserver-1.2 \
--pkg libxml-2.0 \
--pkg folks-eds \
+ -g \
$(NULL)
noinst_LTLIBRARIES = libeds-test.la
diff --git a/tests/lib/key-file/Makefile.am b/tests/lib/key-file/Makefile.am
index 1392588..2bfc3be 100644
--- a/tests/lib/key-file/Makefile.am
+++ b/tests/lib/key-file/Makefile.am
@@ -2,6 +2,7 @@ VALAFLAGS += \
--library=kf-test \
--header=kf-test.h \
--vapidir=. \
+ -g \
$(NULL)
noinst_LTLIBRARIES = libkf-test.la
diff --git a/tests/lib/libsocialweb/Makefile.am b/tests/lib/libsocialweb/Makefile.am
index 31180d7..56158a9 100644
--- a/tests/lib/libsocialweb/Makefile.am
+++ b/tests/lib/libsocialweb/Makefile.am
@@ -10,6 +10,7 @@ VALAFLAGS += \
--pkg folks \
--pkg libsocialweb-client \
--pkg folks-libsocialweb \
+ -g \
$(NULL)
noinst_LTLIBRARIES = libsocialweb-test.la
diff --git a/tests/lib/tracker/Makefile.am b/tests/lib/tracker/Makefile.am
index 84d7313..8c52165 100644
--- a/tests/lib/tracker/Makefile.am
+++ b/tests/lib/tracker/Makefile.am
@@ -10,6 +10,7 @@ VALAFLAGS += \
--pkg folks \
--pkg tracker-sparql-0.10 \
--pkg folks-tracker \
+ -g \
$(NULL)
noinst_LTLIBRARIES = libtracker-test.la
diff --git a/tests/libsocialweb/Makefile.am b/tests/libsocialweb/Makefile.am
index 92c87b5..6c037c7 100644
--- a/tests/libsocialweb/Makefile.am
+++ b/tests/libsocialweb/Makefile.am
@@ -38,6 +38,7 @@ AM_VALAFLAGS = \
--pkg folks-libsocialweb \
--pkg libsocialweb-client \
--pkg libsocialweb-test \
+ -g \
$(NULL)
# in order from least to most complex
diff --git a/tests/telepathy/Makefile.am b/tests/telepathy/Makefile.am
index 3df4f2d..bfc0ba5 100644
--- a/tests/telepathy/Makefile.am
+++ b/tests/telepathy/Makefile.am
@@ -39,6 +39,7 @@ AM_VALAFLAGS = \
--pkg folks-telepathy \
--pkg folks-test \
--pkg tp-test-contactlist \
+ -g \
$(NULL)
# in order from least to most complex
diff --git a/tests/tracker/Makefile.am b/tests/tracker/Makefile.am
index c09a1a3..bb58efd 100644
--- a/tests/tracker/Makefile.am
+++ b/tests/tracker/Makefile.am
@@ -39,6 +39,7 @@ AM_VALAFLAGS = \
--pkg tracker-sparql-0.10 \
--pkg gconf-2.0 \
--pkg tracker-test \
+ -g \
$(NULL)
# in order from least to most complex
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]