Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tests_api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
tests_api
Commits
c2a18202
Commit
c2a18202
authored
2 years ago
by
Krzysztof Mochocki
Committed by
Bartek Wrona
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add script to setup jmeter
parent
04399127
No related branches found
Branches containing commit
No related tags found
1 merge request
!249
Add benchmark tests for block_api
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/setup_jmeter.bash
+38
-0
38 additions, 0 deletions
benchmarks/setup_jmeter.bash
with
38 additions
and
0 deletions
benchmarks/setup_jmeter.bash
0 → 100644
+
38
−
0
View file @
c2a18202
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment