From 19dd4e461d1239754bd1a82e30f2a770c99a7f90 Mon Sep 17 00:00:00 2001 From: asteroide Date: Thu, 6 Jul 2017 15:35:12 +0200 Subject: Add test files for the evaluation Change-Id: Ieceeef68ce701b913aaccd900218fbee896f48df --- moonv4/tests/21_slave_scalability/exec_varuna.sh | 47 ++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 moonv4/tests/21_slave_scalability/exec_varuna.sh (limited to 'moonv4/tests/21_slave_scalability/exec_varuna.sh') diff --git a/moonv4/tests/21_slave_scalability/exec_varuna.sh b/moonv4/tests/21_slave_scalability/exec_varuna.sh new file mode 100644 index 00000000..c2f0ac33 --- /dev/null +++ b/moonv4/tests/21_slave_scalability/exec_varuna.sh @@ -0,0 +1,47 @@ +#!/usr/bin/env bash + +HOST_MASTER=varuna +PORT_MASTER=38001 +HOST_SLAVE=172.18.0.11 +PORT_SLAVE=38001 + +TEST_SCRIPT="${MOON_HOME}/moon_interface/tests/apitests/set_authz.py" +POPULATE_SCRIPT=${MOON_HOME}/moon_interface/tests/apitests/populate_default_values.py + +RESULT_DIR=${MOON_HOME}/tests/21_slave_scalability/${HOST_MASTER}_${HOST_SLAVE} +ARGS="--limit=100"; + +mkdir -p ${RESULT_DIR} 2>/dev/null + +CPT="01 02 03 04 05 06 07 08 09 10" + +SC=scenario/10/rbac_10_tenant_01.py +python3 ${POPULATE_SCRIPT} ${SC} + +#cd ${MOON_HOME} + +for REQ in 01 02 03 04 05 06 07 08 09 10; +do + +# ${MOON_HOME}/bin/start.sh & +# +# echo "waiting for Orchestrator..." +# echo -e "\033[35m" +# sed '/Starting MQ server with topic: orchestrator/q' <(tail -f /tmp/orchestrator.log) +# echo -e "\033[m" + + python3 ${TEST_SCRIPT} --host=${HOST_SLAVE} --port=${PORT_SLAVE} ${ARGS} --pdp pdp01 --request-per-second 5 --write="${RESULT_DIR}/data_slave_05_${REQ}.json" ${SC} +# python3 ../../moon_interface/tests/apitests/plot_json.py latency "${RESULT_DIR}/data_slave_05_${REQ}.json" -w + +# kill $(cat moon_orchestrator.pid) +# +# echo "waiting for Orchestrator..." +# echo -e "\033[35m" +# sed '/Moon orchestrator: offline/q' <(tail -f /tmp/orchestrator.log) +# echo -e "\033[m" + + echo ================================= Restart Moon ================================= + read A + +done + -- cgit 1.2.3-korg