From f385e5f3e47dec22aa48df02f3f19b06fe0b8780 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Mon, 14 Mar 2005 11:14:13 +0000 Subject: [PATCH] Fixes to force tests to run against locally compiled version (thanks to Manish Singh). --- ChangeLog | 5 +++++ test/Makefile.am | 36 +++++++++++++++++++----------------- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/ChangeLog b/ChangeLog index b66f1f03f..a41cb5f42 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-03-14 Carl Worth + + * test/Makefile.am: Fixes to force tests to run against locally + compiled version (thanks to Manish Singh). + 2005-03-11 Carl Worth * doc/public/cairo-sections.txt: diff --git a/test/Makefile.am b/test/Makefile.am index d0d49e6b5..e32254cdd 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -51,11 +51,11 @@ check_PROGRAMS = $(TESTS) # not be the most portable approach, but it is pragmatic and I'm # willing to do something cleaner as soon as it causes someone a # problem. -INCLUDES = -D_GNU_SOURCE -I$(srcdir) $(CAIRO_CFLAGS) -I$(srcdir)/../src +INCLUDES = -D_GNU_SOURCE -I$(srcdir) $(CAIRO_CFLAGS) -I$(top_srcdir)/src -AM_LDFLAGS = $(CAIRO_LIBS) ../src/libcairo.la +noinst_LTLIBRARIES = libcairotest.la -cairo_test_lib =\ +libcairotest_la_SOURCES =\ buffer_diff.c \ buffer_diff.h \ cairo_test.c \ @@ -67,24 +67,26 @@ write_png.h \ xmalloc.c \ xmalloc.h +LDADDS = libcairotest.la $(top_builddir)/src/libcairo.la + # ARGH! I have to repeat the list of tests a third time. Maybe it's # time to break down and auto-generate the Makefile.am or something # from autogen.sh. My, but this is painful... -clip_twice_SOURCES = clip_twice.c $(cairo_test_lib) -coverage_SOURCES = coverage.c $(cairo_test_lib) -fill_rule_SOURCES = fill_rule.c $(cairo_test_lib) -get_and_set_SOURCES = get_and_set.c $(cairo_test_lib) -leaky_polygon_SOURCES = leaky_polygon.c $(cairo_test_lib) -line_width_SOURCES = line_width.c $(cairo_test_lib) -linear_gradient_SOURCES = linear_gradient.c $(cairo_test_lib) -move_to_show_surface_SOURCES = move_to_show_surface.c $(cairo_test_lib) -path_data_SOURCES = path_data.c $(cairo_test_lib) -pixman_rotate_SOURCES = pixman_rotate.c $(cairo_test_lib) -text_cache_crash_SOURCES = text_cache_crash.c $(cairo_test_lib) -text_rotate_SOURCES = text_rotate.c $(cairo_test_lib) -user_data_SOURCES = user_data.c +clip_twice_LDADD = $(LDADDS) +coverage_LDADD = $(LDADDS) +fill_rule_LDADD = $(LDADDS) +get_and_set_LDADD = $(LDADDS) +leaky_polygon_LDADD = $(LDADDS) +line_width_LDADD = $(LDADDS) +linear_gradient_LDADD = $(LDADDS) +move_to_show_surface_LDADD = $(LDADDS) +path_data_LDADD = $(LDADDS) +pixman_rotate_LDADD = $(LDADDS) +text_cache_crash_LDADD = $(LDADDS) +text_rotate_LDADD = $(LDADDS) +user_data_LDADD = $(LDADDS) noinst_PROGRAMS = imagediff -imagediff_SOURCES = imagediff.c $(cairo_test_lib) +imagediff_LDADD = $(LDADDS) CLEANFILES = *-out.png *-diff.png *.log