build: Add missing test files to the distribution.

* Makefile.am (EXTRA_DIST): Add ‘tests/common.scm’ and ‘tests/mail.sh’.
* tests/database.scm (mailer): Use ‘search-path’ to locate ‘mail.sh’
relative to $top_srcdir.
This commit is contained in:
Ludovic Courtès 2023-10-29 22:58:14 +01:00
parent 5ca1147af3
commit c949436462
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
2 changed files with 5 additions and 2 deletions

View File

@ -211,7 +211,9 @@ EXTRA_DIST = \
examples/cuirass.scm \
examples/random.scm \
examples/random-manifest.scm \
$(TESTS)
$(TESTS) \
tests/common.scm \
tests/mail.sh
dist-hook:
$(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version

View File

@ -42,7 +42,8 @@
(srfi srfi-64))
(define (mailer)
(string-append "sendmail://" (getcwd) "/tests/mail.sh"))
(string-append "sendmail://"
(search-path %load-path "tests/mail.sh")))
;; The above bash program will be invoked by mailutils. It copies what's
;; passed on the standard input to the following file.