gnucash/test-templates/Makefile.am
John Ralls e8a9591eec [Bug 666329] Empty database after a little while
Create failing test for gnc_sql_commit_edit() showing that it doesn't call book->dirty_cb when the instance gnc_sql_commit_edit() is called on the book itself.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21824 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-07 00:53:43 +00:00

53 lines
1.6 KiB
Makefile

# A template Makefile.am for GLib g_test-based test directories.
# Copyright 2011 John Ralls <jralls@ceridwen.us>
include $(top_srcdir)/test-templates/Makefile.decl
#You will only need one of these: It points to the module directory
#after $(top_srcdir) or ${top_builddir}:
MODULEPATH = path/to/foo
#The libtool convenience library to assemble the common test code
#(fixture code, setup and teardown routines, mocks, etc.). Use it only
#if there are a lot of test programs and support programs. For most
#cases it will make more sense to just include test_module_support.h
#and test_module_support.c in the test program sources & headers
#check_LTLIBRARIES = libgncmod_test_foo.la
#
#libgnc_test_foo_la_SOURCES = \
# test_foo_support.c
#The test program. You'll need to add to this if you have more than one module above.
TEST_PROGS += test-foo
noinst_PROGRAMS = ${TEST_PROGS}
test_foodir = ${top_srcdir}/${MODULEPATH}/test
#Program files for tests go here. It's probably best to have one for
#each file in the parent directory. Include
#test_foo_support.c if you have one and aren't building the
#support library.
test_foo_SOURCES = \
test-foo.c \
test-suite-module1.c \
test-suite-module2.c \
#etc.
test_foo_HEADERSS = \
$(top_srcdir)/${MODULEPATH}/module1.h \
$(top_srcdir)/${MODULEPATH}/module2.h \
#etc.
#The tests might require more libraries, but try to keep them
#as independent as possible.
test_foo_LDADD = ${top_buildir}/${MODULEPATH}/libgnc_foo.la
test_foo_CFLAGS = \
-DTESTPROG=test_foo \
${DEFAULT_INCLUDES} \
-I$(top_srcdir)/${MODULEPATH}/ \
${GLIB_CFLAGS}