Skip 'test-out-of-memory', which is unreliable in Guile 2.2.4: https://bugs.gnu.org/34155 --- a/test-suite/standalone/Makefile.in 1969-12-31 19:00:00.000000000 -0500 +++ b/test-suite/standalone/Makefile.in 2019-05-27 16:44:32.302355990 -0400 @@ -103,7 +103,7 @@ test-scm-c-bind-keyword-arguments$(EXEEXT) \ test-srfi-4$(EXEEXT) $(am__append_6) $(am__EXEEXT_1) \ test-smob-mark$(EXEEXT) test-smob-mark-race$(EXEEXT) \ - test-stack-overflow test-out-of-memory + test-stack-overflow check_PROGRAMS = test-num2integral$(EXEEXT) test-round$(EXEEXT) \ test-foreign-object-c$(EXEEXT) test-list$(EXEEXT) \ test-unwind$(EXEEXT) test-conversion$(EXEEXT) \ @@ -1938,8 +1938,7 @@ test-command-line-encoding test-command-line-encoding2 \ test-language test-guild-compile $(am__append_3) \ test-foreign-object-scm test-fast-slot-ref test-mb-regexp \ - test-use-srfi $(am__append_5) test-stack-overflow \ - test-out-of-memory + test-use-srfi $(am__append_5) test-stack-overflow BUILT_SOURCES = $(am__append_2) EXTRA_DIST = test-import-order-a.scm test-import-order-b.scm \ test-import-order-c.scm test-import-order-d.scm \ fslogtreecommitdiff
path: root/tests/nar.scm
AgeCommit message (Expand)Author
2020-12-15nar: Deduplicate files right as they are restored....This avoids having to traverse and re-read the files that we have just restored, thereby reducing I/O. * guix/serialization.scm (dump-file): New procedure. (restore-file): Add #:dump-file parameter and honor it. * guix/store/deduplication.scm (tee, dump-file/deduplicate): New procedures. * guix/nar.scm (restore-one-item): Pass #:dump-file to 'restore-file'. (finalize-store-file): Pass #:deduplicate? #f to 'register-items'. * tests/nar.scm <top level>: Call 'setenv' to set "NIX_STORE". Ludovic Courtès
2020-12-15serialization: 'restore-file' sets canonical timestamp and permissions....* guix/serialization.scm (restore-file): Set the permissions and mtime of FILE. * guix/nar.scm (finalize-store-file): Pass #:reset-timestamps? #f to 'register-items'. * tests/nar.scm (rm-rf): Add 'chmod' calls to ensure files are writable. ("write-file + restore-file with symlinks"): Ensure every file in OUTPUT passes 'canonical-file?'. * tests/guix-archive.sh: Run "chmod -R +w" before "rm -rf". Ludovic Courtès
2020-12-15serialization: 'fold-archive' notifies about directory processing completion....* guix/serialization.scm (fold-archive): Call PROC with a 'directory-complete tag when done with a directory. (restore-file): Handle it. * guix/scripts/archive.scm (list-contents): Likewise. * guix/scripts/challenge.scm (archive-contents): Likewise. * tests/nar.scm ("write-file-tree + fold-archive"): Adjust accordingly. Ludovic Courtès
2019-12-12serialization: Add 'fold-archive'....* guix/serialization.scm (read-contents): Remove. (read-file-type, fold-archive): New procedures. (restore-file): Rewrite in terms of 'fold-archive'. * tests/nar.scm ("write-file-tree + fold-archive") ("write-file-tree + fold-archive, flat file"): New tests. Ludovic Courtès
2019-01-18serialization: 'restore-file' errors out upon non-convertible file names....Fixes <https://bugs.gnu.org/33603>. Reported by Maxim Cournoyer <maxim.cournoyer@gmail.com>. * guix/serialization.scm (port-conversion-strategy): New variable. (restore-file): Parameterize it. * tests/nar.scm ("restore-file with non-UTF8 locale"): New test. Ludovic Courtès
2018-11-13deduplication: Restore directory mtime and permissions after deduplication....Fixes <https://bugs.gnu.org/33361>. * guix/store/deduplication.scm (replace-with-link): Call 'set-file-time' and 'chmod' after 'rename-file'. * tests/nar.scm ("restore-file-set with directories (signed, valid)"): New test. Ludovic Courtès
2018-11-13tests: Check file canonicalization for 'restore-file-set'....* guix/tests.scm (canonical-file?): New procedure. * tests/nar.scm ("restore-file-set (signed, valid)"): Check that every item of FILES matches 'canonical-file?'. Ludovic Courtès
2018-11-13tests: Remove check for a feature that appeared in Guile 2.0.10....* tests/nar.scm: Remove test for 'open-sha256-input-port'. Ludovic Courtès