diff options
author | Jonathon Jongsma <jjongsma@gnome.org> | 2007-03-24 03:05:33 +0000 |
---|---|---|
committer | Jonathon Jongsma <jjongsma@gnome.org> | 2007-03-24 03:05:33 +0000 |
commit | 2d59e18935e5ea28814cc522c431c0caabe3cd84 (patch) | |
tree | 0e203313c1fb867c10c5b70bac5f793d5b2ce517 /tests/Makefile.am | |
parent | ea07f5b2076a75ac15e9b3f99c4f8285a857c0d1 (diff) |
2007-03-23 Jonathon Jongsma <jjongsma@gnome.org>
* 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.
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r-- | tests/Makefile.am | 19 |
1 files changed, 19 insertions, 0 deletions
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@ |