summary refs log tree commit diff
path: root/tests/nar.scm
AgeCommit message (Collapse)Author
2013-05-11tests: Fix out-of-source builds.Ludovic Courtès
* tests/nar.scm (%test-dir): Compute relative to `pre-inst-env', which is in $top_builddir.
2013-04-12tests: Remove temporary directory created by nar.scm.Ludovic Courtès
* tests/nar.scm ("write-file + restore-file with symlinks"): Add (rm-rf output).
2013-04-12nar: Add support for symlinks.Ludovic Courtès
* guix/nar.scm (write-file): Add case for type `symlink'. (restore-file): Likewise. * tests/nar.scm (random-file-size, make-file-tree, delete-file-tree, with-file-tree, file-tree-equal?, make-random-bytevector, populate-file): New procedures. (%test-dir): New variable. ("write-file + restore-file"): Use `%test-dir' and `file-tree-equal?'. ("write-file + restore-file with symlinks"): New test.
2013-04-08nar: Implement restoration from Nar.Ludovic Courtès
* guix/nar.scm (&nar-error, &nar-read-error): New condition types. (dump): New procedure. (write-contents)[dump]: Remove. Use the one above instead. (read-contents, write-file, restore-file): New procedures. (%archive-version-1): New variable.