aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/derivations.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/derivations.scm b/tests/derivations.scm
index e774fed4c3..698640b548 100644
--- a/tests/derivations.scm
+++ b/tests/derivations.scm
@@ -173,6 +173,12 @@
(= (stat:ino (lstat file1))
(stat:ino (lstat file2))))))))
+(test-assert "offloadable-derivation?"
+ (and (offloadable-derivation? (derivation %store "foo" %bash '()))
+ (not (offloadable-derivation?
+ (derivation %store "foo" %bash '()
+ #:local-build? #t)))))
+
(test-assert "fixed-output-derivation?"
(let* ((builder (add-text-to-store %store "my-fixed-builder.sh"
"echo -n hello > $out" '()))