AboutSummaryRefsLogTreeCommitDiffStats
path: root/Makefile.am
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2017-09-28 17:59:40 +0200
committerMathieu Lirzin <mthl@gnu.org>2017-09-28 18:48:49 +0200
commitc285d36ab2a48f09c14655a0dcec5895700fe4dd (patch)
tree3931d2f71d8eb75dc142085dc820057f537e3c2e /Makefile.am
parent811ad9167a0dc4fe9e13dd20d534d477469dc682 (diff)
downloadmcron-c285d36ab2a48f09c14655a0dcec5895700fe4dd.tar.gz
mcron-c285d36ab2a48f09c14655a0dcec5895700fe4dd.tar.bz2
mcron-c285d36ab2a48f09c14655a0dcec5895700fe4dd.zip
tests: Add 'basic.sh'
* tests/init.sh: New test framework from Gnulib. * tests/basic.sh: New test. * Makefile.am (TESTS): Add it. (TEST_EXTENSIONS): Add '.sh'. (SH_LOG_COMPILER): Use 'pre-inst-env'. (EXTRA_DIST): Add 'tests/init.sh'. * build-aux/pre-inst-env.in: export $srcdir for shell tests.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index edca6a9..84cbf23 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -124,14 +124,17 @@ DISTCLEANFILES = src/mcron/config.scm
## Test suite. ##
## ------------ ##
-TEST_EXTENSIONS = .scm
+TEST_EXTENSIONS = .scm .sh
AM_TESTS_ENVIRONMENT = env GUILE_AUTO_COMPILE='0'
+SH_LOG_COMPILER = ./pre-inst-env $(SHELL)
+
SCM_LOG_DRIVER = \
$(builddir)/pre-inst-env $(GUILE) \
$(srcdir)/build-aux/test-driver.scm
TESTS = \
+ tests/basic.sh \
tests/environment.scm \
tests/job-specifier.scm
@@ -160,6 +163,7 @@ gen-ChangeLog:
EXTRA_DIST = \
bootstrap \
build-aux/guix.scm \
+ tests/init.sh \
$(TESTS)
## -------------- ##