job-specifier: range: Add tests.
* build-aux/test-driver.scm: New script. * configure.ac (AC_REQUIRE_AUX_FILE): Add it. * tests/job-specifier.scm: New test. * Makefile.am (TEST_EXTENSIONS, AM_TESTS_ENVIRONMENT, SCM_LOG_DRIVER) (TESTS): New variables. (EXTRA_DIST): Update. * .gitignore: Likewise.
This commit is contained in:
parent
c9064dde98
commit
9d173e23bc
5 changed files with 249 additions and 1 deletions
11
Makefile.am
11
Makefile.am
|
|
@ -61,6 +61,15 @@ modules = \
|
|||
$(dist_mcronscript_DATA) \
|
||||
src/mcron/config.scm
|
||||
|
||||
TEST_EXTENSIONS = .scm
|
||||
AM_TESTS_ENVIRONMENT = env GUILE_AUTO_COMPILE='0'
|
||||
|
||||
SCM_LOG_DRIVER = \
|
||||
$(builddir)/pre-inst-env $(GUILE) \
|
||||
$(srcdir)/build-aux/test-driver.scm
|
||||
|
||||
TESTS = tests/job-specifier.scm
|
||||
|
||||
# Unset 'GUILE_LOAD_COMPILED_PATH' altogether while compiling. Otherwise, if
|
||||
# $GUILE_LOAD_COMPILED_PATH contains $(mcronmoduledir), we may find .go files
|
||||
# in there that are newer than the local .scm files (for instance because the
|
||||
|
|
@ -124,7 +133,7 @@ uninstall-hook:
|
|||
rm -f $(fpp){cron,crontab}$(EXEEXT); \
|
||||
fi
|
||||
|
||||
EXTRA_DIST = BUGS
|
||||
EXTRA_DIST = BUGS $(TESTS)
|
||||
DISTCLEANFILES = src/config.scm
|
||||
CLEANFILES = \
|
||||
$(modules:%.scm=%.go) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue