summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2026-03-11 14:20:01 +0100
committerRicardo Wurmus <rekado@elephly.net>2026-04-02 07:37:05 +0200
commitb12b1545cf06f9ab5e11d1c025d4ddcfaa2abdd4 (patch)
treecbb67e674b14d231af7355776ce30478473d11f2
parent373064a97683d1c9ac98cd9b20275911ff45f208 (diff)
build-system/r: Make test directory configurable.
Previously we would accept the #:test-directory argument but ignore the value. * guix/build-system/r.scm (r-build): Set default value for TEST-DIRECTORY field. * guix/build/r-build-system.scm (patch-tests): Use value of TEST-DIRECTORY argument. Change-Id: If435577bc0e90ede360ee281ee5bc27fa1b0b3f0
-rw-r--r--guix/build-system/r.scm2
-rw-r--r--guix/build/r-build-system.scm2
2 files changed, 2 insertions, 2 deletions
diff --git a/guix/build-system/r.scm b/guix/build-system/r.scm
index 565c7db344a..f14a4c61c05 100644
--- a/guix/build-system/r.scm
+++ b/guix/build-system/r.scm
@@ -110,7 +110,7 @@ release corresponding to NAME and VERSION."
(tests? #t)
(test-target "tests")
(test-types #f)
- test-directory
+ (test-directory "tests/testthat")
skipped-tests
(configure-flags ''())
(phases '%standard-phases)
diff --git a/guix/build/r-build-system.scm b/guix/build/r-build-system.scm
index b32df93d2d3..2473d61a6f9 100644
--- a/guix/build/r-build-system.scm
+++ b/guix/build/r-build-system.scm
@@ -72,7 +72,7 @@
each consisting of a file name under TEST-DIRECTORY and one or more names of
tests to be skipped. If the entry is just a file name, delete the test file."
(when skipped-tests
- (with-directory-excursion "tests/testthat/"
+ (with-directory-excursion test-directory
(for-each (match-lambda
((file test-names ...)
(substitute file