about summary refs log tree commit diff
path: root/tests/common.sh.in
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-17T11·22+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-17T11·22+0100
commit832377bbd6ccd43895ac346131cafe4901f7996b (patch)
tree427b36821bdb5c0bd6d2336df157c300e95b66f1 /tests/common.sh.in
parenta9d99ab55fdaa1c9dde87eaa8d289ecdb8cf9068 (diff)
Add a test for repairing paths
Diffstat (limited to 'tests/common.sh.in')
-rw-r--r--tests/common.sh.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/common.sh.in b/tests/common.sh.in
index 0c4df7119204..48ca7d2dddce 100644
--- a/tests/common.sh.in
+++ b/tests/common.sh.in
@@ -29,6 +29,8 @@ export SHELL="@bash@"
 export version=@PACKAGE_VERSION@
 export system=@system@
 
+cacheDir=$TEST_ROOT/binary-cache
+
 readLink() {
     ls -l "$1" | sed 's/.*->\ //'
 }
@@ -55,6 +57,10 @@ clearManifests() {
     rm -f $NIX_STATE_DIR/manifests/*
 }
 
+clearCache() {
+    rm -rf "$cacheDir"
+}
+
 startDaemon() {
     # Start the daemon, wait for the socket to appear.  !!!
     # ‘nix-daemon’ should have an option to fork into the background.