summaryrefslogtreecommitdiff
path: root/scripts/docker/Makefile
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-06-10 22:07:35 -0300
committerdrebs <drebs@leap.se>2016-06-22 17:51:18 -0300
commit78d61dfaadf9bcac7258a33738c660b238b7bf27 (patch)
tree9cb2797e0cf0b09335be32d4f54b1e6d583a9558 /scripts/docker/Makefile
parente14f17247ce03f1c49cab3c944039ff9aba84f64 (diff)
[test] refactor of docker scripts
Diffstat (limited to 'scripts/docker/Makefile')
-rw-r--r--scripts/docker/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/docker/Makefile b/scripts/docker/Makefile
index 080fd16c..9dbe9062 100644
--- a/scripts/docker/Makefile
+++ b/scripts/docker/Makefile
@@ -10,7 +10,7 @@
# Example usage:
#
# make run-server CONTAINER_ID_FILE=/tmp/container-id.txt
-# make run-client-test CONTAINER_ID_FILE=/tmp/container-id.txt
+# make run-client-perf CONTAINER_ID_FILE=/tmp/container-id.txt
#####################################################################
# Some configurations you might override when calling this makefile #
@@ -50,9 +50,9 @@ run-server:
--cidfile=$(CONTAINER_ID_FILE) \
--detach \
$(IMAGE_NAME) \
- /usr/local/soledad/start-server.sh
+ /usr/local/soledad/run-server.sh # --drop-to-shell
-run-client-test:
+run-client-bootstrap:
@if [ -z "$(CONTAINER_ID_FILE)" ]; then \
echo "Error: you have to pass a value to CONTAINER_ID_FILE."; \
exit 2; \
@@ -65,28 +65,28 @@ run-client-test:
--env="SOLEDAD_BRANCH=$(SOLEDAD_BRANCH)" \
--env="SOLEDAD_SERVER_URL=http://$${server_ip}:2424" \
$(IMAGE_NAME) \
- /usr/local/soledad/start-client-test.sh
+ /usr/local/soledad/run-client-bootstrap.sh
#################################################
# Run all trial tests inside a docker container #
#################################################
-run-trial-test:
+run-trial:
docker run -t -i \
--memory="$(MEMORY)" \
--env="SOLEDAD_REMOTE=$(SOLEDAD_REMOTE)" \
--env="SOLEDAD_BRANCH=$(SOLEDAD_BRANCH)" \
$(IMAGE_NAME) \
- /usr/local/soledad/start-trial-test.sh
+ /usr/local/soledad/run-trial.sh
############################################
# Performance tests and graphic generation #
############################################
-run-perf:
+run-perf-test:
helper/run-test.sh perf
-run-perf-test:
+run-client-perf:
@if [ -z "$(CONTAINER_ID_FILE)" ]; then \
echo "Error: you have to pass a value to CONTAINER_ID_FILE."; \
exit 2; \
@@ -105,7 +105,7 @@ run-perf-test:
--env="SOLEDAD_STATS=1" \
--env="SOLEDAD_SERVER_URL=http://$${server_ip}:2424" \
$(IMAGE_NAME) \
- /usr/local/soledad/run-perf-test.sh
+ /usr/local/soledad/run-client-perf.sh # --drop-to-shell
cp-perf-result:
@if [ -z "$(CONTAINER_ID_FILE)" ]; then \