Skip to content
Snippets Groups Projects
Commit dd419d6b authored by Krzysztof Mochocki's avatar Krzysztof Mochocki Committed by Bartek Wrona
Browse files

Add cache check in jmeter setp script

parent 6c9bc5dd
No related branches found
No related tags found
1 merge request!249Add benchmark tests for block_api
...@@ -6,6 +6,11 @@ WORKDIR=jmeter ...@@ -6,6 +6,11 @@ WORKDIR=jmeter
JMETER_DOWNLOAD_URL="https://dlcdn.apache.org//jmeter/binaries/apache-jmeter-5.4.3.zip" JMETER_DOWNLOAD_URL="https://dlcdn.apache.org//jmeter/binaries/apache-jmeter-5.4.3.zip"
JMETER_POSTGRES_DOWNLOAD_URL="https://jdbc.postgresql.org/download/postgresql-42.3.1.jar" JMETER_POSTGRES_DOWNLOAD_URL="https://jdbc.postgresql.org/download/postgresql-42.3.1.jar"
if [[ -f "$WORKDIR/activate" ]]; then
echo "using cached jmeter"
exit 0
fi
echo "creating work directory" echo "creating work directory"
mkdir -p "$WORKDIR" mkdir -p "$WORKDIR"
...@@ -32,7 +37,8 @@ mv apache* apache ...@@ -32,7 +37,8 @@ mv apache* apache
echo "For handy usage, execute following command" echo "For handy usage, execute following command"
echo "echo 'export JMETER=$JMETER' >> ~/.bashrc" echo "echo 'export JMETER=$JMETER' >> ~/.bashrc"
echo "JMETER=$JMETER" > activate
echo "testing is jmeter properly configured" echo "testing is jmeter properly configured"
$JMETER --version && echo "ok." $JMETER --version
popd popd
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment