1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

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
This commit is contained in:
Ricardo Wurmus
2026-03-11 14:20:01 +01:00
parent 373064a976
commit b12b1545cf
2 changed files with 2 additions and 2 deletions

View File

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

View File

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