aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-22 07:39:06 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-22 07:39:06 +0000
commitf7d90f23312f1b2b466ad2d940f4d1a9c9e4061f (patch)
treefe1d9d15e89341ab90a30da02dba90fbd8f03684
parentf40c1a8eb9e46fd3bbfd70981288aba3e8915510 (diff)
downloadpaludis-f7d90f23312f1b2b466ad2d940f4d1a9c9e4061f.tar.gz
paludis-f7d90f23312f1b2b466ad2d940f4d1a9c9e4061f.tar.xz
Avoid recompiling exception_to_debug_string for every single test case.
-rw-r--r--paludis/Makefile.am.m410
1 files changed, 7 insertions, 3 deletions
diff --git a/paludis/Makefile.am.m4 b/paludis/Makefile.am.m4
index 4d84010..dc70ce6 100644
--- a/paludis/Makefile.am.m4
+++ b/paludis/Makefile.am.m4
@@ -7,8 +7,8 @@ define(`filelist', `')dnl
define(`testlist', `')dnl
define(`testscriptlist', `')dnl
define(`addtest', `define(`testlist', testlist `$1_TEST')dnl
-$1_TEST_SOURCES = $1_TEST.cc exception_to_debug_string.hh exception_to_debug_string.cc
-$1_TEST_LDADD = $(top_builddir)/test/libtest.a libpaludis.a
+$1_TEST_SOURCES = $1_TEST.cc
+$1_TEST_LDADD = $(top_builddir)/test/libtest.a libpaludis.a libpaludistestextras.a
$1_TEST_CPPFLAGS = -DPALUDIS_TEST_CASE=1
')dnl
define(`addtestscript', `define(`testscriptlist', testscriptlist `$1_TEST_setup.sh $1_TEST_cleanup.sh')')dnl
@@ -36,12 +36,15 @@ SUBDIRS = . args
libpaludis_a_SOURCES = filelist
+libpaludistestextras_a_CPPFLAGS = -DPALUDIS_TEST_CASE=1
+libpaludistestextras_a_SOURCES = exception_to_debug_string.hh exception_to_debug_string.cc
+
TESTS = testlist
TESTS_ENVIRONMENT = env TEST_SCRIPT_DIR="$(srcdir)/" $(SHELL) $(top_srcdir)/test/run_test.sh
check_PROGRAMS = $(TESTS)
check_SCRIPTS = testscriptlist
-noinst_LIBRARIES = libpaludis.a
+noinst_LIBRARIES = libpaludis.a libpaludistestextras.a
Makefile.am : Makefile.am.m4 files.m4
$(top_srcdir)/misc/do_m4.bash Makefile.am
@@ -54,3 +57,4 @@ smart_record.hh : smart_record.hh.m4
comparison_policy.hh : comparison_policy.hh.m4
$(top_srcdir)/misc/do_m4.bash comparison_policy.hh.m4
+