diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-09-21T18·54+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-09-21T18·54+0000 |
commit | 0bd5eb71a0a23b27a02af591ba46e4cf2c34aa04 (patch) | |
tree | 46e32a4eee45d30bcb2d5f780fe9ccd3bb41552d /tests/common.sh.in | |
parent | 4e91d8621f6620f8b15535002309882fd7794a1f (diff) |
* `nix-install-package --url': install from a URL (NIX-12).
* `nix-install-package --help' (NIX-9). * `nix-install-package --non-interactive': don't prompt or pause. * Tests for nix-install-package. * Security fixes: filter the values obtained from the nixpkg.
Diffstat (limited to 'tests/common.sh.in')
-rw-r--r-- | tests/common.sh.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/common.sh.in b/tests/common.sh.in index 12162649e4b2..ca4c62d91493 100644 --- a/tests/common.sh.in +++ b/tests/common.sh.in @@ -47,3 +47,18 @@ export nixhash=$TOP/src/nix-hash/nix-hash readLink() { ls -l "$1" | sed 's/.*->\ //' } + +clearStore() { + echo "clearing store..." + chmod -R +w "$NIX_STORE_DIR" + rm -rf "$NIX_STORE_DIR" + mkdir "$NIX_STORE_DIR" + rm -rf "$NIX_DB_DIR" + mkdir "$NIX_DB_DIR" + $nixstore --init +} + +clearProfiles() { + profiles="$NIX_STATE_DIR"/profiles + rm -f $profiles/* +} |