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.
This commit is contained in:
Mathieu Lirzin 2017-09-28 17:59:40 +02:00
commit c285d36ab2
No known key found for this signature in database
GPG key ID: 0ADEE10094604D37
5 changed files with 647 additions and 1 deletions

View file

@ -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)
## -------------- ##