summaryrefslogtreecommitdiff
path: root/gnu/tests.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-03-05 16:10:40 +0100
committerLudovic Courtès <ludo@gnu.org>2020-03-05 16:33:37 +0100
commitc0b726c2112e0e670dc134583b376541c0a3789a (patch)
treec62de338d9cedee539c153540e67536787addfd6 /gnu/tests.scm
parente7671685a882a2269718c3949b7f2cd995cb85e4 (diff)
tests: Add <system-test> gexp compiler.
* gnu/tests.scm (compile-system-test): New gexp compiler.
Diffstat (limited to 'gnu/tests.scm')
-rw-r--r--gnu/tests.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/tests.scm b/gnu/tests.scm
index 60e7ef30c00..705bf561a65 100644
--- a/gnu/tests.scm
+++ b/gnu/tests.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> 3;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
4;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> 4;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
5;;; 5;;;
@@ -254,6 +254,12 @@ the system under test."
254 254
255(set-record-type-printer! <system-test> write-system-test) 255(set-record-type-printer! <system-test> write-system-test)
256 256
257(define-gexp-compiler (compile-system-test (test <system-test>)
258 system target)
259 "Compile TEST to a derivation."
260 ;; XXX: SYSTEM and TARGET are ignored.
261 (system-test-value test))
262
257(define (test-modules) 263(define (test-modules)
258 "Return the list of modules that define system tests." 264 "Return the list of modules that define system tests."
259 (scheme-modules (dirname (search-path %load-path "guix.scm")) 265 (scheme-modules (dirname (search-path %load-path "guix.scm"))