Add tests.
[software/mumi.git] / Makefile.am
index 1f54042a76d41ae04fd714307a913b80d500fc28..61ab60308dfe0540c831113858efc8839111dc14 100644 (file)
@@ -52,3 +52,24 @@ SOURCES =                                                    \
   mumi/debbugs.scm                                     \
   mumi/xapian.scm
 
+TEST_EXTENSIONS = .scm
+
+SCM_TESTS = \
+  tests/xapian.scm
+
+TESTS = $(SCM_TESTS)
+
+EXTRA_DIST += $(TESTS)
+
+AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)" GUILE_AUTO_COMPILE=0
+
+SCM_LOG_DRIVER =                                          \
+  $(top_builddir)/pre-inst-env                            \
+  $(GUILE) --no-auto-compile -e main                      \
+      $(top_srcdir)/build-aux/test-driver.scm
+
+AM_SCM_LOG_DRIVER_FLAGS = --brief=yes
+
+EXTRA_DIST +=                                  \
+  pre-inst-env.in                              \
+  build-aux/test-driver.scm