Hi Daniel,

Daniel Schäfer <g...@danielschaefer.me> skribis:

> I hacked together a solution that works but is far from nice.
> It is based off of build-aux/run-system-tests.scm and I tried to strip
> it down to the core.

There’s a simpler solution:

--8<---------------cut here---------------start------------->8---
$ cat /tmp/test.scm
(use-modules (gnu tests) (gnu tests rsync))

(lambda ()
  (system-test-value %test-rsync))
$ guix build -f /tmp/test.scm 
…
--8<---------------cut here---------------end--------------->8---

However, note that the (gnu tests …) API could change anytime.  In
particular, I’d like to avoid monadic style there.

HTH!

Ludo’.

Reply via email to