summaryrefslogtreecommitdiff
path: root/tests/nar.scm
Commit message (Collapse)AuthorAge
* tests: Fix out-of-source builds.Ludovic Courtès2013-05-11
| | | | | * tests/nar.scm (%test-dir): Compute relative to `pre-inst-env', which is in $top_builddir.
* tests: Remove temporary directory created by nar.scm.Ludovic Courtès2013-04-12
| | | | | * tests/nar.scm ("write-file + restore-file with symlinks"): Add (rm-rf output).
* nar: Add support for symlinks.Ludovic Courtès2013-04-12
| | | | | | | | | | | * 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.
* nar: Implement restoration from Nar.Ludovic Courtès2013-04-08
* 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.