More Makefile changes to get distcheck to pass

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22851 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
John Ralls 2013-03-30 21:31:17 +00:00
parent bef51d212c
commit 5fa2cf898c
4 changed files with 15 additions and 7 deletions

View File

@ -60,4 +60,7 @@ else
perl -pi.bak -e 's/" *$$/\n/' $@
endif
DISTCLEANFILES = gnucash.1 tip_of_the_day.list
DISTCLEANFILES = \
gnucash.1 \
tip_of_the_day.list \
tip_of_the_day.list.bak

View File

@ -46,7 +46,8 @@ TESTS_ENVIRONMENT = \
EXTRA_DIST += \
test-dbi-stuff.h \
test-dbi-business-stuff.h
test-dbi-business-stuff.h \
test-dbi.xml
TEST_PROGS += \
test-backend-dbi

View File

@ -30,8 +30,12 @@ static void
setup (Fixture *fixture, gconstpointer pData)
{
fixture->session = qof_session_new();
qof_session_begin( fixture->session, DBI_TEST_XML_FILENAME, FALSE,
FALSE, FALSE );
/* When running distcheck the source directory is read-only, which
* prevents creating the lock file. Force the session to get
* around that.
*/
qof_session_begin( fixture->session, DBI_TEST_XML_FILENAME, TRUE,
FALSE, TRUE );
g_assert_cmpint (qof_session_get_error (fixture->session), ==,
ERR_BACKEND_NO_ERR);
qof_session_load( fixture->session, NULL );

View File

@ -53,7 +53,7 @@ AM_CPPFLAGS = \
AM_CPPFLAGS += -DG_LOG_DOMAIN=\"gnc.backend.sql\"
TEST_PROGS += test-sqlbe
test_sqlbedir = ${top_srcdir}/${MODULEPATH}/test
#test_sqlbedir = ${top_srcdir}/${MODULEPATH}/test
noinst_PROGRAMS = $(TESTS) $(TEST_PROGS)
@ -61,8 +61,8 @@ test_sqlbe_SOURCES = \
test-sqlbe.c \
utest-gnc-backend-sql.c
test_sqlbe_HEADERS = \
$(top_srcdir)/$(MODULEPATH)/gnc-backend-sql.h
#test_sqlbe_HEADERS = \
# $(top_srcdir)/$(MODULEPATH)/gnc-backend-sql.h
test_sqlbe_LDADD = \
$(top_builddir)/$(MODULEPATH)/libgnc-backend-sql.la \