diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2017-11-14 11:13:24 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2017-11-14 11:13:24 +0100 |
commit | 22f7fa4d893e9e32bd0196ae0a9616f16a7768d9 (patch) | |
tree | 1ff0a31412bf0aed69d36246cc0924a029d9d57f | |
parent | 462a4f5e49bf6362403e96f7da069a393d0c04e3 (diff) |
Fix "make distcheck".
* Makefile.am (AM_TESTS_ENVIRONMENT): New variable.
(EXTRA_DIST): Add test-driver.scm and tests.
* tests/operations.scm (asset): Look up abs_top_srcdir environment
variable.
-rw-r--r-- | Makefile.am | 6 | ||||
-rw-r--r-- | tests/operations.scm | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 1e982ee..77886b2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -33,13 +33,17 @@ SCM_TESTS = \ TESTS = $(SCM_TESTS) +AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)" GUILE_AUTO_COMPILE=0 + EXTRA_DIST += \ env.in \ tests/responses/newest-bugs1.xml \ tests/responses/get-status1.xml \ tests/requests/get-status.xml \ tests/requests/newest-bugs.xml \ - tests/requests/get-bugs.xml + tests/requests/get-bugs.xml \ + build-aux/test-driver.scm \ + $(SCM_TESTS) SCM_LOG_DRIVER = \ $(top_builddir)/env \ diff --git a/tests/operations.scm b/tests/operations.scm index 52d1896..3cd8d1a 100644 --- a/tests/operations.scm +++ b/tests/operations.scm @@ -28,7 +28,7 @@ (test-begin "operations") (define (asset name) - (with-input-from-file (string-append (getenv "srcdir") + (with-input-from-file (string-append (getenv "abs_top_srcdir") "/tests/" name) read-string)) |