mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 13:10:33 +02:00
Add `add-to-store' test for flat files.
* tests/derivations.scm ("add-to-store, flat"): New test.
This commit is contained in:
@@ -66,6 +66,13 @@
|
||||
|
||||
(test-skip (if %store 0 4))
|
||||
|
||||
(test-assert "add-to-store, flat"
|
||||
(let* ((file (search-path %load-path "language/tree-il/spec.scm"))
|
||||
(drv (add-to-store %store "flat-test" #t #f "sha256" file)))
|
||||
(and (eq? 'regular (stat:type (stat drv)))
|
||||
(equal? (call-with-input-file file get-bytevector-all)
|
||||
(call-with-input-file drv get-bytevector-all)))))
|
||||
|
||||
(test-assert "add-to-store, recursive"
|
||||
(let* ((dir (dirname (search-path %load-path "language/tree-il/spec.scm")))
|
||||
(drv (add-to-store %store "dir-tree-test" #t #t "sha256" dir)))
|
||||
|
||||
Reference in New Issue
Block a user