summaryrefslogtreecommitdiff
path: root/scripts/docker/files/start-client-test.sh
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-06-06 18:06:01 -0300
committerdrebs <drebs@leap.se>2016-06-06 21:40:42 -0300
commit6b34d775613676b2411e1150645a4601c7b3ea46 (patch)
treed3406b25f51e12d9089cddacf84c4824a0235f3b /scripts/docker/files/start-client-test.sh
parentf829832457237b7342e510e4112f66819be3ab3d (diff)
[test] add missing deps to Dockerfile
Diffstat (limited to 'scripts/docker/files/start-client-test.sh')
-rwxr-xr-xscripts/docker/files/start-client-test.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/docker/files/start-client-test.sh b/scripts/docker/files/start-client-test.sh
new file mode 100755
index 00000000..1275b50d
--- /dev/null
+++ b/scripts/docker/files/start-client-test.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# Run Soledad tests.
+
+CMD="/usr/local/soledad/test-env.py"
+REPO="/var/local/soledad"
+
+if [ ! -z "${SOLEDAD_REMOTE}" ]; then
+ git -C ${REPO} remote add test ${SOLEDAD_REMOTE}
+ git -C ${REPO} fetch test
+fi
+
+if [ ! -z "${SOLEDAD_BRANCH}" ]; then
+ git -C ${REPO} checkout ${SOLEDAD_BRANCH}
+fi
+
+${CMD} soledad-client test --server-url ${SOLEDAD_SERVER_URL}