mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-27 19:41:50 +02:00
tests: Check the mtime and permissions of substituted items.
* tests/store.scm ("substitute")
("substitute + build-things with output path")
("substitute + build-things with specific output"): Call 'canonical-file?'.
* tests/substitute.scm ("substitute, authorized key"): Check the mtime
and permissions of "substitute-retrieved".
This commit is contained in:
@@ -378,7 +378,7 @@ System: mips64el-linux\n")))
|
||||
(guix-substitute "--substitute")))))
|
||||
|
||||
(test-equal "substitute, authorized key"
|
||||
"Substitutable data."
|
||||
'("Substitutable data." 1 #o444)
|
||||
(with-narinfo (string-append %narinfo "Signature: "
|
||||
(signature-field %narinfo))
|
||||
(dynamic-wind
|
||||
@@ -387,7 +387,9 @@ System: mips64el-linux\n")))
|
||||
(request-substitution (string-append (%store-prefix)
|
||||
"/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa-foo")
|
||||
"substitute-retrieved")
|
||||
(call-with-input-file "substitute-retrieved" get-string-all))
|
||||
(list (call-with-input-file "substitute-retrieved" get-string-all)
|
||||
(stat:mtime (lstat "substitute-retrieved"))
|
||||
(stat:perms (lstat "substitute-retrieved"))))
|
||||
(lambda ()
|
||||
(false-if-exception (delete-file "substitute-retrieved"))))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user