about summary refs log tree commit diff
path: root/tests/remote-store.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/remote-store.sh')
-rw-r--r--tests/remote-store.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/remote-store.sh b/tests/remote-store.sh
new file mode 100644
index 000000000000..8312424f0ac6
--- /dev/null
+++ b/tests/remote-store.sh
@@ -0,0 +1,16 @@
+source common.sh
+
+clearStore
+clearManifests
+
+startDaemon
+
+$SHELL ./user-envs.sh
+
+nix-store --dump-db > $TEST_ROOT/d1
+NIX_REMOTE= nix-store --dump-db > $TEST_ROOT/d2
+cmp $TEST_ROOT/d1 $TEST_ROOT/d2
+
+nix-store --gc --max-freed 1K
+
+killDaemon