diff --git a/src/core-utils/test/Makefile.am b/src/core-utils/test/Makefile.am new file mode 100644 index 0000000000..b87aa7633a --- /dev/null +++ b/src/core-utils/test/Makefile.am @@ -0,0 +1,44 @@ + +AM_CPPFLAGS = \ + -I${top_srcdir} \ + -I${top_srcdir}/src \ + -I${top_srcdir}/src/libqof/qof \ + -I${top_srcdir}/src/core-utils \ + ${GUILE_INCS} \ + ${GLIB_CFLAGS} + +LDADD = \ + ../libgnc-core-utils.la \ + ${top_builddir}/src/libqof/qof/libgnc-qof.la \ + ${GLIB_LIBS} + +# these tests are ordered kind more or less in the order +# that they should be executed, with more basic tests coming first. +# +TESTS = \ + test-resolve-file-path \ + test-resolve-url + +GNC_TEST_DEPS = \ + --library-dir ${top_builddir}/lib/libqof/qof \ + --library-dir ${top_builddir}/src/core-utils + +TESTS_ENVIRONMENT = \ + SRCDIR=${srcdir} \ + $(shell ${top_srcdir}/src/gnc-test-env --no-exports ${GNC_TEST_DEPS}) + +check_PROGRAMS = \ + test-resolve-file-path \ + test-resolve-url + + +test_link_SOURCES = test-link.c +test_link_LDADD = ../libgnc-core-utils.la \ + ${top_builddir}/src/libqof/qof/libgnc-qof.la + +EXTRA_DIST = + +clean-local: + rm -f translog.* + +distclean-local: clean-local diff --git a/src/engine/test/test-resolve-file-path.c b/src/core-utils/test/test-resolve-file-path.c similarity index 100% rename from src/engine/test/test-resolve-file-path.c rename to src/core-utils/test/test-resolve-file-path.c diff --git a/src/engine/test/test-resolve-url.c b/src/core-utils/test/test-resolve-url.c similarity index 100% rename from src/engine/test/test-resolve-url.c rename to src/core-utils/test/test-resolve-url.c diff --git a/src/engine/test/Makefile.am b/src/engine/test/Makefile.am index f69a733ecd..afc4dfac70 100644 --- a/src/engine/test/Makefile.am +++ b/src/engine/test/Makefile.am @@ -39,8 +39,6 @@ TESTS = \ test-querynew \ test-query \ test-recursive \ - test-resolve-file-path \ - test-resolve-url \ test-split-vs-account \ test-transaction-reversal \ test-transaction-voiding \ @@ -78,8 +76,6 @@ check_PROGRAMS = \ test-query \ test-querynew \ test-recursive \ - test-resolve-file-path \ - test-resolve-url \ test-scm-query \ test-split-vs-account \ test-transaction-reversal \