Skip to content

Commit

Permalink
MCNP Performance Test
Browse files Browse the repository at this point in the history
Signed-off-by: graysonwu <wgrayson@vmware.com>
  • Loading branch information
GraysonWu committed Nov 27, 2023
1 parent ed80978 commit 675fa4b
Show file tree
Hide file tree
Showing 9 changed files with 537 additions and 15 deletions.
12 changes: 12 additions & 0 deletions batch_mcnp_pt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

START=$1
END=$2
STEP=$3
POD_SHARE_ID=$4

for ((i=$START;i<=$END;i+=$STEP))
do
sleep 30
bash mcnp_performance_test.sh 1 $i $POD_SHARE_ID
done
24 changes: 12 additions & 12 deletions ci/jenkins/test-mc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ function echoerr {
>&2 echo "$@"
}

DEFAULT_WORKDIR="/var/lib/jenkins"
DEFAULT_WORKDIR="/root/grayson"
WORKDIR=$DEFAULT_WORKDIR
TESTCASE=""
TEST_FAILURE=false
DOCKER_REGISTRY=$(head -n1 "${WORKSPACE}/ci/docker-registry")
MULTICLUSTER_KUBECONFIG_PATH=$WORKDIR/.kube
DOCKER_REGISTRY=$(head -n1 "${DEFAULT_WORKDIR}/antrea/ci/docker-registry")
MULTICLUSTER_KUBECONFIG_PATH="$WORKDIR/.kube"
LEADER_CLUSTER_CONFIG="--kubeconfig=$MULTICLUSTER_KUBECONFIG_PATH/leader"
EAST_CLUSTER_CONFIG="--kubeconfig=$MULTICLUSTER_KUBECONFIG_PATH/east"
WEST_CLUSTER_CONFIG="--kubeconfig=$MULTICLUSTER_KUBECONFIG_PATH/west"
Expand Down Expand Up @@ -440,15 +440,15 @@ function run_multicluster_e2e {
options+=" --provider kind"
fi

set -x
go test -v antrea.io/antrea/multicluster/test/e2e --logs-export-dir `pwd`/antrea-multicluster-test-logs $options
if [[ "$?" != "0" ]]; then
TEST_FAILURE=true
fi
set +x
set -e

tar -zcf antrea-test-logs.tar.gz antrea-multicluster-test-logs
# set -x
# go test -v antrea.io/antrea/multicluster/test/e2e --logs-export-dir `pwd`/antrea-multicluster-test-logs $options
# if [[ "$?" != "0" ]]; then
# TEST_FAILURE=true
# fi
# set +x
# set -e
#
# tar -zcf antrea-test-logs.tar.gz antrea-multicluster-test-logs
}

function collect_coverage {
Expand Down
Loading

0 comments on commit 675fa4b

Please sign in to comment.