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

Add script to setup jmeter

parent 04399127
No related branches found
No related tags found
1 merge request!249Add benchmark tests for block_api
#!/bin/bash
set -euo pipefail
WORKDIR=jmeter
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"
echo "creating work directory"
mkdir -p "$WORKDIR"
pushd "$WORKDIR"
echo "downloading jmeter"
wget --quiet "$JMETER_DOWNLOAD_URL" > /dev/null
echo "unzipping jmeter"
unzip -qq apache-*.zip > /dev/null
echo "removing archive and renaming jmeter directory"
rm apache-*.zip
mv apache* apache
pushd apache
pushd lib
echo "downloading postgres driver for jmeter"
wget --quiet "$JMETER_POSTGRES_DOWNLOAD_URL" > /dev/null
popd
export JMETER="$PWD/bin/jmeter"
popd
echo "For handy usage, execute following command"
echo "echo 'export JMETER=$JMETER' >> ~/.bashrc"
echo "testing is jmeter properly configured"
$JMETER --version && echo "ok."
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