Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
常顺宇
OpenXG-RAN
Commits
a7678b33
Commit
a7678b33
authored
Apr 11, 2019
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: better iperf syntax
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
6c475f8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
ci-scripts/main.py
ci-scripts/main.py
+6
-1
ci-scripts/xml_files/enb_ue_usrp210_band7_test_05mhz_tm1.xml
ci-scripts/xml_files/enb_ue_usrp210_band7_test_05mhz_tm1.xml
+6
-6
No files found.
ci-scripts/main.py
View file @
a7678b33
...
@@ -1807,8 +1807,13 @@ class SSHConnection():
...
@@ -1807,8 +1807,13 @@ class SSHConnection():
iClientPasswd
=
self
.
eNBPassword
iClientPasswd
=
self
.
eNBPassword
# Starting the iperf server
# Starting the iperf server
self
.
open
(
iServerIPAddr
,
iServerUser
,
iServerPasswd
)
self
.
open
(
iServerIPAddr
,
iServerUser
,
iServerPasswd
)
# args SHALL be "-c client -u any"
# -c 10.0.1.2 -u -b 1M -t 30 -i 1 -fm -B 10.0.1.1
# -B 10.0.1.1 -u -s -i 1 -fm
server_options
=
re
.
sub
(
'-u.*$'
,
'-u -s -i 1 -fm'
,
str
(
self
.
iperf_args
))
server_options
=
server_options
.
replace
(
'-c'
,
'-B'
)
self
.
command
(
'rm -f /tmp/tmp_iperf_server_'
+
self
.
testCase_id
+
'.log'
,
'\$'
,
5
)
self
.
command
(
'rm -f /tmp/tmp_iperf_server_'
+
self
.
testCase_id
+
'.log'
,
'\$'
,
5
)
self
.
command
(
'echo $USER; nohup iperf
-u -s -i 1
> /tmp/tmp_iperf_server_'
+
self
.
testCase_id
+
'.log 2>&1 &'
,
iServerUser
,
5
)
self
.
command
(
'echo $USER; nohup iperf
'
+
server_options
+
'
> /tmp/tmp_iperf_server_'
+
self
.
testCase_id
+
'.log 2>&1 &'
,
iServerUser
,
5
)
time
.
sleep
(
0.5
)
time
.
sleep
(
0.5
)
self
.
close
()
self
.
close
()
...
...
ci-scripts/xml_files/enb_ue_usrp210_band7_test_05mhz_tm1.xml
View file @
a7678b33
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
<htmlTabName>
Test-05MHz-TM1
</htmlTabName>
<htmlTabName>
Test-05MHz-TM1
</htmlTabName>
<htmlTabIcon>
tasks
</htmlTabIcon>
<htmlTabIcon>
tasks
</htmlTabIcon>
<TestCaseRequestedList>
<TestCaseRequestedList>
030101 000001 090101 000002 040501 040502 000001 040601 040641 000001 090109 030201
030101 000001 090101 000002 040501 040502 000001 040601 040641 0
40642 0
00001 090109 030201
</TestCaseRequestedList>
</TestCaseRequestedList>
<TestCaseExclusionList></TestCaseExclusionList>
<TestCaseExclusionList></TestCaseExclusionList>
...
@@ -86,29 +86,29 @@
...
@@ -86,29 +86,29 @@
<testCase
id=
"040601"
>
<testCase
id=
"040601"
>
<class>
Iperf
</class>
<class>
Iperf
</class>
<desc>
iperf (5MHz - DL/1Mbps/UDP)(30 sec)
</desc>
<desc>
iperf (5MHz - DL/1Mbps/UDP)(30 sec)
</desc>
<iperf_args>
-c 10.0.1.2 -
fm -u -b 1M -t 30 -i
1
</iperf_args>
<iperf_args>
-c 10.0.1.2 -
u -b 1M -t 30 -i 1 -fm -B 10.0.1.
1
</iperf_args>
<iperf_packetloss_threshold>
50
</iperf_packetloss_threshold>
<iperf_packetloss_threshold>
50
</iperf_packetloss_threshold>
</testCase>
</testCase>
<testCase
id=
"040602"
>
<testCase
id=
"040602"
>
<class>
Iperf
</class>
<class>
Iperf
</class>
<desc>
iperf (5MHz - DL/1.2Mbps/UDP)(30 sec)
</desc>
<desc>
iperf (5MHz - DL/1.2Mbps/UDP)(30 sec)
</desc>
<iperf_args>
-c 10.0.1.2 -
fm -u -b 1.2M -t 30 -i
1
</iperf_args>
<iperf_args>
-c 10.0.1.2 -
u -b 1.2M -t 30 -i 1 -fm -B 10.0.1.
1
</iperf_args>
<iperf_packetloss_threshold>
50
</iperf_packetloss_threshold>
<iperf_packetloss_threshold>
50
</iperf_packetloss_threshold>
</testCase>
</testCase>
<testCase
id=
"040641"
>
<testCase
id=
"040641"
>
<class>
Iperf
</class>
<class>
Iperf
</class>
<desc>
iperf (5MHz - UL/1Mbps/UDP)(30 sec)
</desc>
<desc>
iperf (5MHz - UL/1Mbps/UDP)(30 sec)
</desc>
<iperf_args>
-c 10.0.1.1 -
fm -u -b 1M -t 30 -i 1
-R
</iperf_args>
<iperf_args>
-c 10.0.1.1 -
u -b 1M -t 30 -i 1 -fm -B 10.0.1.2
-R
</iperf_args>
<iperf_packetloss_threshold>
50
</iperf_packetloss_threshold>
<iperf_packetloss_threshold>
50
</iperf_packetloss_threshold>
<iperf_profile>
balanced
</iperf_profile>
<iperf_profile>
balanced
</iperf_profile>
</testCase>
</testCase>
<testCase
id=
"040642"
>
<testCase
id=
"040642"
>
<class>
Iperf
</class>
<class>
Iperf
</class>
<desc>
iperf (5MHz - UL/
1.2
Mbps/UDP)(30 sec)
</desc>
<desc>
iperf (5MHz - UL/
8
Mbps/UDP)(30 sec)
</desc>
<iperf_args>
-c 10.0.1.1 -
fm -u -b 1.2M -t 30 -i 1
</iperf_args>
<iperf_args>
-c 10.0.1.1 -
u -b 8M -t 30 -i 1 -fm -B 10.0.1.2 -R
</iperf_args>
<iperf_packetloss_threshold>
50
</iperf_packetloss_threshold>
<iperf_packetloss_threshold>
50
</iperf_packetloss_threshold>
<iperf_profile>
balanced
</iperf_profile>
<iperf_profile>
balanced
</iperf_profile>
</testCase>
</testCase>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment