Added new network performance test - NETWORK-PERF-CLOUDHARMONY-TEST
This commit is contained in:
Родитель
7841bd79c7
Коммит
60f91d3cd0
|
@ -2722,7 +2722,35 @@
|
|||
<DiskFormat>ext4</DiskFormat>
|
||||
<Priority>P0</Priority>
|
||||
</test>
|
||||
|
||||
|
||||
<!-- NETWORK PERF TESTS -->
|
||||
<test>
|
||||
<testName>NETWORK-PERF-CLOUDHARMONY-TEST</testName>
|
||||
<testScript>network-perf-cloudharmony-server.sh,network-perf-cloudharmony-client.sh</testScript>
|
||||
<testScriptps1>NETWORK-PERF-CLOUDHARMONY-TEST.ps1</testScriptps1>
|
||||
<SubtestValues></SubtestValues>
|
||||
<files1>remote-scripts\network-perf-cloudharmony-server.sh</files1>
|
||||
<files>remote-scripts\network-perf-cloudharmony-client.sh,remote-scripts\perf-cloudharmony-options.txt</files>
|
||||
<setupType>IEndpointSingleHS</setupType>
|
||||
<TestType></TestType>
|
||||
<TestFeature></TestFeature>
|
||||
<TestID>Perf_001</TestID>
|
||||
<Priority>P0</Priority>
|
||||
</test>
|
||||
<test>
|
||||
<testName>NETWORK-PERF-THROUGHPUT-6K-CONNETCTIONS-TEST</testName>
|
||||
<testScript>network-6k-connections-server.sh,network-6k-connections-client.sh</testScript>
|
||||
<testScriptps1>NETWORK-PERF-THROUGHPUT-6K-CONNETCTIONS-TEST.ps1</testScriptps1>
|
||||
<SubtestValues></SubtestValues>
|
||||
<files1>remote-scripts\network-6k-connections-server.sh</files1>
|
||||
<files>remote-scripts\network-6k-connections-client.sh,remote-scripts\perf-statistics.sh</files>
|
||||
<setupType>IEndpointSingleHS</setupType>
|
||||
<TestType></TestType>
|
||||
<TestFeature></TestFeature>
|
||||
<TestID>Perf_002</TestID>
|
||||
<Priority>P0</Priority>
|
||||
</test>
|
||||
|
||||
<test>
|
||||
<testName>ICA-FIO-TEST</testName>
|
||||
<testScript></testScript>
|
||||
|
@ -3516,7 +3544,16 @@
|
|||
<Name>XSMB-XFS-TEST</Name>
|
||||
</test>
|
||||
</Cycle>
|
||||
|
||||
<!-- PERF tests -->
|
||||
<Cycle>
|
||||
<cycleName>PERF</cycleName>
|
||||
<test>
|
||||
<Name>NETWORK-PERF-CLOUDHARMONY-TEST</Name>
|
||||
</test>
|
||||
<test>
|
||||
<Name>NETWORK-PERF-THROUGHPUT-6K-CONNETCTIONS-TEST</Name>
|
||||
</test>
|
||||
</Cycle>
|
||||
<!-- E2E tests -->
|
||||
|
||||
<Cycle>
|
||||
|
|
|
@ -0,0 +1,85 @@
|
|||
Import-Module .\TestLibs\RDFELibs.psm1 -Force
|
||||
$Subtests= $currentTestData.SubtestValues
|
||||
$SubtestValues = $Subtests.Split(",")
|
||||
$result = ""
|
||||
$testResult = ""
|
||||
$resultArr = @()
|
||||
$isDeployed = DeployVMS -setupType $currentTestData.setupType -Distro $Distro -xmlConfig $xmlConfig
|
||||
if($isDeployed)
|
||||
{
|
||||
$hs1Name = $isDeployed
|
||||
$testServiceData = Get-AzureService -ServiceName $hs1Name
|
||||
#Get VMs deployed in the service..
|
||||
$testVMsinService = $testServiceData | Get-AzureVM
|
||||
$hs1vm1 = $testVMsinService[0]
|
||||
$hs1vm1Endpoints = $hs1vm1 | Get-AzureEndpoint
|
||||
$hs1VIP = $hs1vm1Endpoints[0].Vip
|
||||
$hs1ServiceUrl = $hs1vm1.DNSName
|
||||
$hs1ServiceUrl = $hs1ServiceUrl.Replace("http://","")
|
||||
$hs1ServiceUrl = $hs1ServiceUrl.Replace("/","")
|
||||
$hs1vm1IP = $hs1vm1.IpAddress
|
||||
$hs1vm1Hostname = $hs1vm1.InstanceName
|
||||
$hs1vm2 = $testVMsinService[1]
|
||||
$hs1vm2IP = $hs1vm2.IpAddress
|
||||
$hs1vm2Hostname = $hs1vm2.InstanceName
|
||||
$hs1vm2Endpoints = $hs1vm2 | Get-AzureEndpoint
|
||||
$hs1vm1tcpport = GetPort -Endpoints $hs1vm1Endpoints -usage tcp
|
||||
$hs1vm2tcpport = GetPort -Endpoints $hs1vm2Endpoints -usage tcp
|
||||
$hs1vm1udpport = GetPort -Endpoints $hs1vm1Endpoints -usage udp
|
||||
$hs1vm2udpport = GetPort -Endpoints $hs1vm2Endpoints -usage udp
|
||||
$hs1vm1sshport = GetPort -Endpoints $hs1vm1Endpoints -usage ssh
|
||||
$hs1vm2sshport = GetPort -Endpoints $hs1vm2Endpoints -usage ssh
|
||||
try
|
||||
{
|
||||
$out = RemoteCopy -uploadTo $hs1VIP -port $hs1vm1sshport -files $currentTestData.files1 -username $user -password $password -upload 2>&1 | Out-Null
|
||||
$out = RunLinuxCmd -username $user -password $password -ip $hs1VIP -port $hs1vm1sshport -command "chmod +x *" -runAsSudo 2>&1 | Out-Null
|
||||
$out = RemoteCopy -uploadTo $hs1VIP -port $hs1vm2sshport -files $currentTestData.files -username $user -password $password -upload 2>&1 | Out-Null
|
||||
$out = RunLinuxCmd -username $user -password $password -ip $hs1VIP -port $hs1vm2sshport -command "chmod +x *" -runAsSudo 2>&1 | Out-Null
|
||||
$IsServerStarted = RunLinuxCmd -username $user -password $password -ip $hs1VIP -port $hs1vm1sshport -command "./$($currentTestData.testScript.Split(',')[0])" -runAsSudo -ignoreLinuxExitCode
|
||||
if ($IsServerStarted -imatch "not running")
|
||||
{
|
||||
LogErr "Iperf3 server not started .."
|
||||
}
|
||||
else
|
||||
{
|
||||
LogMsg "Iperf3 server started .."
|
||||
$out = RunLinuxCmd -username $user -password $password -ip $hs1VIP -port $hs1vm2sshport -command "./$($currentTestData.testScript.Split(',')[1]) $hs1vm1IP > perf-client.log" -runAsSudo -runmaxallowedtime 86400 -ignoreLinuxExitCode
|
||||
$status = RunLinuxCmd -username $user -password $password -ip $hs1VIP -port $hs1vm2sshport -command "cat /home/$user/teststatus.txt" -runAsSudo -ignoreLinuxExitCode
|
||||
if(($status -imatch "IPERF test completed") -and ($status -imatch "CSV test completed") -and ($status -imatch "PERF test completed"))
|
||||
{
|
||||
$testResult = "PASS"
|
||||
$out = RemoteCopy -download -downloadFrom $hs1VIP -files "/home/$user/logs.tar,/home/$user/teststatus.txt" -downloadTo $LogDir -port $hs1vm2sshport -username $user -password $password 2>&1 | Out-Null
|
||||
}
|
||||
else
|
||||
{
|
||||
$testResult = "FAIL"
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
$ErrorMessage = $_.Exception.Message
|
||||
LogMsg "EXCEPTION : $ErrorMessage"
|
||||
}
|
||||
Finally
|
||||
{
|
||||
if (!$testResult)
|
||||
{
|
||||
$testResult = "Aborted"
|
||||
}
|
||||
$resultArr += $testResult
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$testResult = "Aborted"
|
||||
$resultArr += $testResult
|
||||
}
|
||||
|
||||
$result = GetFinalResultHeader -resultarr $resultArr
|
||||
|
||||
#Clean up the setup
|
||||
#DoTestCleanUp -result $result -testName $currentTestData.testName -deployedServices $isDeployed
|
||||
|
||||
#Return the result and summery to the test suite script..
|
||||
return $result
|
|
@ -0,0 +1,51 @@
|
|||
#!/bin/bash
|
||||
#This script will connect iperf client to server for executing network performance tests using different iperf options
|
||||
#And also format the test results using CSV.
|
||||
server_ip=$1
|
||||
readarray options < perf-cloudharmony-options.txt
|
||||
logs_dir=~/logs
|
||||
[ -d $logs_dir ] && rm -rf $logs_dir
|
||||
mkdir $logs_dir
|
||||
count=0
|
||||
killall iperf3
|
||||
echo "IPERF test started" > ~/teststatus.txt
|
||||
while [ "x${options[count]}" != "x" ]
|
||||
do
|
||||
echo ${options[$count]}
|
||||
echo "IPERF test ${options[$count]} running" >> ~/teststatus.txt
|
||||
file_tag=`echo ${options[$count]}| sed s/-//g| sed "s/ /_/g"`
|
||||
echo $file_tag
|
||||
iperf3 -c $server_ip ${options[$count]} > $logs_dir/$file_tag.log
|
||||
count=$(( $count + 1 ))
|
||||
sleep 30
|
||||
done
|
||||
echo "IPERF test completed" >> ~/teststatus.txt
|
||||
|
||||
#formatting iperf3logs into csv:
|
||||
mkdir $logs_dir/csvs
|
||||
cd $logs_dir/
|
||||
options=(`ls *.log | grep "_u_"|sed s/\.log//`)
|
||||
echo "CSV test started" >> ~/teststatus.txt
|
||||
count=0
|
||||
while [ "x${options[count]}" != "x" ]
|
||||
do
|
||||
echo "${options[count]}"
|
||||
tail -n+5 ${options[count]}.log | awk '!($1="")' | awk '!($1="")' | awk '{$1=$1}1' OFS=","| sed s/\(// | sed s/\)//| sed s/-/,/ | sed s/%//>$logs_dir//csvs/${options[count]}.csv
|
||||
count=$(( $count + 1 ))
|
||||
done
|
||||
|
||||
options=(`ls *.log | grep -v "_u_"|sed s/\.log//`)
|
||||
|
||||
count=0
|
||||
while [ "x${options[count]}" != "x" ]
|
||||
do
|
||||
echo "${options[count]}"
|
||||
cat ${options[count]}.log | grep SUM |awk '!($1="")' | awk '{$1=$1}1' OFS=","| sed s/\(// | sed s/\)//|sed s/-/,/ | sed s/%//>$logs_dir//csvs/${options[count]}.csv
|
||||
count=$(( $count + 1 ))
|
||||
done
|
||||
echo "CSV test completed" >> ~/teststatus.txt
|
||||
cd ~
|
||||
tar -cvf logs.tar logs
|
||||
echo "PERF test completed" >> ~/teststatus.txt
|
||||
|
||||
exit 0
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
#starting iperf server as a daemon
|
||||
killall iperf3
|
||||
iperf3 -s -D -p 8004
|
||||
#
|
||||
# Verify that the iperf server is running
|
||||
pgrep iperf3
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "iperf server is not running as a daemon"
|
||||
else
|
||||
echo "iperf server is running as a daemon"
|
||||
fi
|
|
@ -0,0 +1,131 @@
|
|||
-i 1 -b 1324M -p 8004 -t 600 -R -u -Z -L 49392
|
||||
-i 1 -b 1509M -p 8004 -t 600 -R -u -Z -L 57603
|
||||
-i 1 -b 1510M -p 8004 -t 600 -R -u -Z -L 57603
|
||||
-i 1 -b 1534M -p 8004 -t 600 -R -u -Z -L 57603
|
||||
-i 1 -b 1548M -p 8004 -t 600 -R -u -Z -L 57603
|
||||
-i 1 -b 1665M -p 8004 -t 600 -R -u -Z -L 58478
|
||||
-i 1 -b 1688M -p 8004 -t 600 -R -u -Z -L 49867
|
||||
-i 1 -b 1700M -p 8004 -t 600 -R -u -Z -L 49867
|
||||
-i 1 -b 1709M -p 8004 -t 600 -R -u -Z -L 49392
|
||||
-i 1 -b 1725M -p 8004 -t 600 -R -u -Z -L 58478
|
||||
-i 1 -b 1730M -p 8004 -t 600 -R -u -Z -L 49392
|
||||
-i 1 -b 1731M -p 8004 -t 600 -R -u -Z -L 49393
|
||||
-i 1 -b 1731M -p 8004 -t 600 -R -u -Z -L 58478
|
||||
-i 1 -b 1733M -p 8004 -t 600 -R -u -Z -L 62538
|
||||
-i 1 -b 1734M -p 8004 -t 600 -R -u -Z -L 62538
|
||||
-i 1 -b 1738M -p 8004 -t 600 -R -u -Z -L 49867
|
||||
-i 1 -b 173M -p 8004 -t 600 -R -u -Z -L 55250
|
||||
-i 1 -b 173M -p 8004 -t 600 -R -u -Z -L 55475
|
||||
-i 1 -b 173M -p 8004 -t 600 -R -u -Z -L 62365
|
||||
-i 1 -b 1765M -p 8004 -t 600 -R -u -Z -L 62538
|
||||
-i 1 -b 1770M -p 8004 -t 600 -R -u -Z -L 52795
|
||||
-i 1 -b 1775M -p 8004 -t 600 -R -u -Z -L 52795
|
||||
-i 1 -b 1778M -p 8004 -t 600 -R -u -Z -L 52795
|
||||
-i 1 -b 1793M -p 8004 -t 600 -R -u -Z -L 49393
|
||||
-i 1 -b 1793M -p 8004 -t 600 -R -u -Z -L 49867
|
||||
-i 1 -b 1795M -p 8004 -t 600 -R -u -Z -L 62538
|
||||
-i 1 -b 1808M -p 8004 -t 600 -R -u -Z -L 58478
|
||||
-i 1 -b 1810M -p 8004 -t 600 -R -u -Z -L 58538
|
||||
-i 1 -b 1820M -p 8004 -t 600 -R -u -Z -L 52795
|
||||
-i 1 -b 1878M -p 8004 -t 600 -R -u -Z -L 57475
|
||||
-i 1 -b 1882M -p 8004 -t 600 -R -u -Z -L 57475
|
||||
-i 1 -b 1887M -p 8004 -t 600 -R -u -Z -L 55683
|
||||
-i 1 -b 1892M -p 8004 -t 600 -R -u -Z -L 58538
|
||||
-i 1 -b 1898M -p 8004 -t 600 -R -u -Z -L 62254
|
||||
-i 1 -b 1901M -p 8004 -t 600 -R -u -Z -L 56968
|
||||
-i 1 -b 1914M -p 8004 -t 600 -R -u -Z -L 58538
|
||||
-i 1 -b 1919M -p 8004 -t 600 -R -u -Z -L 49393
|
||||
-i 1 -b 1925M -p 8004 -t 600 -R -u -Z -L 49393
|
||||
-i 1 -b 1940M -p 8004 -t 600 -R -u -Z -L 55683
|
||||
-i 1 -b 1941M -p 8004 -t 600 -R -u -Z -L 56968
|
||||
-i 1 -b 1950M -p 8004 -t 600 -R -u -Z -L 58538
|
||||
-i 1 -b 1965M -p 8004 -t 600 -R -u -Z -L 56968
|
||||
-i 1 -b 1987M -p 8004 -t 600 -R -u -Z -L 55683
|
||||
-i 1 -b 2023M -p 8004 -t 600 -R -u -Z -L 51157
|
||||
-i 1 -b 2029M -p 8004 -t 600 -R -u -Z -L 55683
|
||||
-i 1 -b 2051M -p 8004 -t 600 -R -u -Z -L 61875
|
||||
-i 1 -b 2056M -p 8004 -t 600 -R -u -Z -L 59560
|
||||
-i 1 -b 2089M -p 8004 -t 600 -R -u -Z -L 56198
|
||||
-i 1 -b 2106M -p 8004 -t 600 -R -u -Z -L 62254
|
||||
-i 1 -b 2121M -p 8004 -t 600 -R -u -Z -L 56708
|
||||
-i 1 -b 2131M -p 8004 -t 600 -R -u -Z -L 58543
|
||||
-i 1 -b 2132M -p 8004 -t 600 -R -u -Z -L 52507
|
||||
-i 1 -b 2139M -p 8004 -t 600 -R -u -Z -L 61875
|
||||
-i 1 -b 2151M -p 8004 -t 600 -R -u -Z -L 59560
|
||||
-i 1 -b 2168M -p 8004 -t 600 -R -u -Z -L 57953
|
||||
-i 1 -b 2168M -p 8004 -t 600 -R -u -Z -L 62126
|
||||
-i 1 -b 2177M -p 8004 -t 600 -R -u -Z -L 62459
|
||||
-i 1 -b 2180M -p 8004 -t 600 -R -u -Z -L 51157
|
||||
-i 1 -b 2193M -p 8004 -t 600 -R -u -Z -L 49392
|
||||
-i 1 -b 2194M -p 8004 -t 600 -R -u -Z -L 54049
|
||||
-i 1 -b 2196M -p 8004 -t 600 -R -u -Z -L 59560
|
||||
-i 1 -b 2200M -p 8004 -t 600 -R -u -Z -L 57953
|
||||
-i 1 -b 2213M -p 8004 -t 600 -R -u -Z -L 61875
|
||||
-i 1 -b 2214M -p 8004 -t 600 -R -u -Z -L 61875
|
||||
-i 1 -b 2220M -p 8004 -t 600 -R -u -Z -L 52507
|
||||
-i 1 -b 2228M -p 8004 -t 600 -R -u -Z -L 54049
|
||||
-i 1 -b 2230M -p 8004 -t 600 -R -u -Z -L 52507
|
||||
-i 1 -b 2234M -p 8004 -t 600 -R -u -Z -L 59560
|
||||
-i 1 -b 2235M -p 8004 -t 600 -R -u -Z -L 51157
|
||||
-i 1 -b 2240M -p 8004 -t 600 -R -u -Z -L 57953
|
||||
-i 1 -b 2252M -p 8004 -t 600 -R -u -Z -L 62459
|
||||
-i 1 -b 2260M -p 8004 -t 600 -R -u -Z -L 57953
|
||||
-i 1 -b 2261M -p 8004 -t 600 -R -u -Z -L 62126
|
||||
-i 1 -b 2262M -p 8004 -t 600 -R -u -Z -L 62254
|
||||
-i 1 -b 2265M -p 8004 -t 600 -R -u -Z -L 56198
|
||||
-i 1 -b 2266M -p 8004 -t 600 -R -u -Z -L 56708
|
||||
-i 1 -b 2268M -p 8004 -t 600 -R -u -Z -L 51157
|
||||
-i 1 -b 2268M -p 8004 -t 600 -R -u -Z -L 54049
|
||||
-i 1 -b 2268M -p 8004 -t 600 -R -u -Z -L 58543
|
||||
-i 1 -b 2269M -p 8004 -t 600 -R -u -Z -L 54049
|
||||
-i 1 -b 2273M -p 8004 -t 600 -R -u -Z -L 62459
|
||||
-i 1 -b 2274M -p 8004 -t 600 -R -u -Z -L 58543
|
||||
-i 1 -b 2275M -p 8004 -t 600 -R -u -Z -L 58543
|
||||
-i 1 -b 2280M -p 8004 -t 600 -R -u -Z -L 56198
|
||||
-i 1 -b 2348M -p 8004 -t 600 -R -u -Z -L 60691
|
||||
-i 1 -b 2379M -p 8004 -t 600 -R -u -Z -L 50425
|
||||
-i 1 -b 2383M -p 8004 -t 600 -R -u -Z -L 51772
|
||||
-i 1 -b 2389M -p 8004 -t 600 -R -u -Z -L 51772
|
||||
-i 1 -b 2390M -p 8004 -t 600 -R -u -Z -L 50425
|
||||
-i 1 -b 2390M -p 8004 -t 600 -R -u -Z -L 62957
|
||||
-i 1 -b 2392M -p 8004 -t 600 -R -u -Z -L 50425
|
||||
-i 1 -b 2393M -p 8004 -t 600 -R -u -Z -L 54812
|
||||
-i 1 -b 2396M -p 8004 -t 600 -R -u -Z -L 60691
|
||||
-i 1 -b 2397M -p 8004 -t 600 -R -u -Z -L 60691
|
||||
-i 1 -b 2397M -p 8004 -t 600 -R -u -Z -L 62957
|
||||
-i 1 -b 2398M -p 8004 -t 600 -R -u -Z -L 60691
|
||||
-i 1 -b 2399M -p 8004 -t 600 -R -u -Z -L 50425
|
||||
-i 1 -b 2403M -p 8004 -t 600 -R -u -Z -L 62957
|
||||
-i 1 -b 2407M -p 8004 -t 600 -R -u -Z -L 56708
|
||||
-i 1 -b 246M -p 8004 -t 600 -R -u -Z -L 51886
|
||||
-i 1 -b 246M -p 8004 -t 600 -R -u -Z -L 53549
|
||||
-i 1 -b 246M -p 8004 -t 600 -R -u -Z -L 62163
|
||||
-i 1 -b 2618M -p 8004 -t 600 -R -u -Z -L 56708
|
||||
-i 1 -b 2688M -p 8004 -t 600 -R -u -Z -L 62126
|
||||
-i 1 -b 2925M -p 8004 -t 600 -R -u -Z -L 57475
|
||||
-i 1 -b 3003M -p 8004 -t 600 -R -u -Z -L 62126
|
||||
-i 1 -b 3164M -p 8004 -t 600 -R -u -Z -L 62254
|
||||
-i 1 -b 3284M -p 8004 -t 600 -R -u -Z -L 56968
|
||||
-i 1 -b 3324M -p 8004 -t 600 -R -u -Z -L 57475
|
||||
-i 1 -b 3357M -p 8004 -t 600 -R -u -Z -L 62459
|
||||
-i 1 -b 493M -p 8004 -t 600 -R -u -Z -L 62820
|
||||
-i 1 -b 495M -p 8004 -t 600 -R -u -Z -L 57306
|
||||
-i 1 -b 495M -p 8004 -t 600 -R -u -Z -L 58089
|
||||
-i 1 -b 495M -p 8004 -t 600 -R -u -Z -L 62820
|
||||
-i 1 -b 983M -p 8004 -t 600 -R -u -Z -L 59407
|
||||
-i 1 -b 985M -p 8004 -t 600 -R -u -Z -L 59407
|
||||
-i 1 -b 986M -p 8004 -t 600 -R -u -Z -L 51870
|
||||
-i 1 -b 986M -p 8004 -t 600 -R -u -Z -L 65436
|
||||
-i 1 -b 991M -p 8004 -t 600 -R -u -Z -L 59276
|
||||
-i 1 -b 993M -p 8004 -t 600 -R -u -Z -L 59276
|
||||
-i 1 -b 994M -p 8004 -t 600 -R -u -Z -L 51870
|
||||
-i 1 -b 994M -p 8004 -t 600 -R -u -Z -L 59276
|
||||
-i 1 -b 994M -p 8004 -t 600 -R -u -Z -L 65436
|
||||
-i 1 -b 996M -p 8004 -t 600 -R -u -Z -L 51870
|
||||
-i 1 -b 996M -p 8004 -t 600 -R -u -Z -L 59276
|
||||
-i 1 -b 996M -p 8004 -t 600 -R -u -Z -L 65436
|
||||
-i 1 -p 8004 -P 16 -t 600 -Z
|
||||
-i 1 -p 8004 -P 2 -t 600 -Z
|
||||
-i 1 -p 8004 -P 4 -t 600 -Z
|
||||
-i 1 -p 8004 -P 8 -t 600 -Z
|
||||
-i 1 -p 8004 -t 600 -Z
|
Загрузка…
Ссылка в новой задаче