Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
Add hack scripts for smoke-performance testing. (#1242)
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Macík <[email protected]>

Signed-off-by: Pavel Macík <[email protected]>
  • Loading branch information
pmacik committed Oct 4, 2022
1 parent 1747fe9 commit 75bca48
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hack/perf/env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

export WAIT_BEFORE=${WAIT_BEFORE:-120s}
export WAIT_AFTER=${WAIT_AFTER:-300s}
export TEST_PERFORMANCE_USERS_PER_SCENARIO=${TEST_PERFORMANCE_USERS_PER_SCENARIO:-50}
export SKIP_RESOURCE_COUNTS=${SKIP_RESOURCE_COUNTS:-true}
13 changes: 13 additions & 0 deletions hack/perf/reset.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash -x

pushd $(dirname $0)
source ./env.sh

if [ -d ../../test/performance/toolchain-e2e.git ]; then
pushd ../../test/performance/toolchain-e2e.git
make clean-e2e-resources;
popd;
fi

oc delete pod $(oc get pods -n openshift-operators -o json| jq -rc '.items[] | select(.metadata.name | startswith("service-binding-operator")).metadata.name') -n openshift-operators
popd
8 changes: 8 additions & 0 deletions hack/perf/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash -x

pushd $(dirname $0)
source ./env.sh
pushd ../../
time make clean test-performance test-performance-collect-kpi -o deploy-from-index-image
popd
popd

0 comments on commit 75bca48

Please sign in to comment.