diff options
| author | Yarl Baudig <yarl-baudig@mailoo.org> | 2026-02-07 02:16:01 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-02-10 11:36:16 +0100 |
| commit | a06c9b0ff721a5ec3f0c214cc92dc00175595dab (patch) | |
| tree | f1f56ad916134986d6c8e953edde95be5e084a79 /tests | |
| parent | afcfe2bc3cba9c1c48a63f7cb0202ee6593c1c19 (diff) | |
store: Make derivation-path? use direct-store-path?.
* guix/store.scm (derivation-path?): Use direct-store-path? instead of
store-path?.
* tests/store.scm (derivation-path?): New test.
Change-Id: Ib54b9e2045f19f26039cf072eeb79dab8f0195be
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #6192
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/store.scm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/store.scm b/tests/store.scm index 1f69f14cdcd..2eb6b778396 100644 --- a/tests/store.scm +++ b/tests/store.scm @@ -109,6 +109,18 @@ "/283gqy39v3g9dxjy26rynl0zls82fmcg-guile-2.0.7/bin/guile"))) (not (direct-store-path? (%store-prefix))))) +(test-assert "derivation-path?" + (and (derivation-path? + (string-append (%store-prefix) + "/283gqy39v3g9dxjy26rynl0zls82fmcg-guile-2.0.7.drv")) + (not (derivation-path? + (string-append (%store-prefix) + "/283gqy39v3g9dxjy26rynl0zls82fmcg-guile-2.0.7"))) + (not (derivation-path? + (string-append + (%store-prefix) + "/283gqy39v3g9dxjy26rynl0zls82fmcg-guile-2.0.7/guile.drv"))))) + (test-skip (if %store 0 18)) (test-equal "substitute-urls, default" |
