summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/derivations.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/derivations.scm b/tests/derivations.scm
index 29b341e2bb..4b36758c25 100644
--- a/tests/derivations.scm
+++ b/tests/derivations.scm
@@ -173,6 +173,11 @@
                 (= (stat:ino (lstat file1))
                    (stat:ino (lstat file2))))))))
 
+(test-equal "derivation-name"
+  "foo-0.0"
+  (let ((drv (derivation %store "foo-0.0" %bash '())))
+    (derivation-name drv)))
+
 (test-assert "offloadable-derivation?"
   (and (offloadable-derivation? (derivation %store "foo" %bash '()))
        (not (offloadable-derivation?