From 2d59e18935e5ea28814cc522c431c0caabe3cd84 Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Sat, 24 Mar 2007 03:05:33 +0000 Subject: 2007-03-23 Jonathon Jongsma * Makefile.am: * autogen.sh: * configure.in: * m4/ax_boost_base.m4: * m4/ax_boost_unit_test_framework.m4: Add some basic test infrastructure. It's disabled by default, and must be explicitly enabled by passing --enable-tests to configure (or by setting the CAIROMM_DEVEL environment variable to "on"). It uses the boost unit test framework, but this should not be required unless you've explicitly enabled tests. If tests are enabled, you can easily run them with 'make check' * tests/Makefile.am: * tests/test-context.cc: added the beginning of a test for Cairo::Context. Most of these tests are really very interesting. Basically what I'm trying to do is a) test some basic behaviors, and b) excercise the functionality a little bit. One of the tests currently fails due to a RefPtr::cast_dynamic failure, so I have to see what's going on there. --- tests/Makefile.am | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/Makefile.am (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am new file mode 100644 index 0000000..366ccfe --- /dev/null +++ b/tests/Makefile.am @@ -0,0 +1,19 @@ +if AUTOTESTS + +# build automated 'tests' +noinst_PROGRAMS = test-context +test_context_SOURCES=test-context.cc +TESTS=test-context + +else + +#don't build anything +TESTS= + +endif + +#Where to find the header files needed by the source files: +INCLUDES = -I$(top_srcdir) @CAIROMM_CFLAGS@ + +#The libraries that the executable needs to link against: +LIBS = $(top_builddir)/cairomm/libcairomm-1.0.la @LIBS@ @CAIROMM_LIBS@ @BOOST_UNIT_TEST_FRAMEWORK_LIB@ -- cgit v1.2.3