about summary refs log tree commit diff
path: root/tests/remote-store.sh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-08-13T14·56+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-08-13T14·56+0000
commita7e1a51fdf5d93b0a158a120595443fe9c7c6687 (patch)
treef49f3ea5568ce73e4b80774935a7ce5910c4a4a0 /tests/remote-store.sh
parent550ba9ebb4b1b2415c9930879cfa6937f7fa916a (diff)
* A test for the nix-worker.
Diffstat (limited to 'tests/remote-store.sh')
-rw-r--r--tests/remote-store.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/remote-store.sh b/tests/remote-store.sh
new file mode 100644
index 000000000000..4a31312f58bf
--- /dev/null
+++ b/tests/remote-store.sh
@@ -0,0 +1,17 @@
+source common.sh
+
+export FORCE_NIX_REMOTE=1
+
+echo '*** testing slave mode ***'
+clearStore
+clearManifests
+NIX_REMOTE=slave sh ./user-envs.sh
+
+echo '*** testing daemon mode ***'
+clearStore
+clearManifests
+$nixworker --daemon &
+pidDaemon=$!
+NIX_REMOTE=daemon sh ./user-envs.sh
+kill -9 $pidDaemon
+wait $pidDaemon || true