Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
f1c8c96c
Commit
f1c8c96c
authored
Jun 06, 2016
by
Rohit Gupta
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-34-test_framework' into develop
parents
302d7c29
3536a964
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
20 deletions
+20
-20
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
+7
-8
cmake_targets/autotests/test_case_list.xml
cmake_targets/autotests/test_case_list.xml
+7
-7
cmake_targets/autotests/tools/configure_cots_sony_experia_m4_ue.py
...gets/autotests/tools/configure_cots_sony_experia_m4_ue.py
+2
-1
cmake_targets/autotests/tools/iperf3_script_phone
cmake_targets/autotests/tools/iperf3_script_phone
+4
-4
No files found.
cmake_targets/autotests/run_exec_lte-softmodem_tests.py
View file @
f1c8c96c
...
...
@@ -29,10 +29,7 @@
# *******************************************************************************/
# \file test01.py
# \brief test 01 for OAI
# \author Navid Nikaein
# \date 2013 - 2015
# \author Rohit Gupta
# \version 0.1
# @ingroup _test
...
...
@@ -1529,9 +1526,8 @@ for testcase in testcaseList:
print
"Now copying files to NFS Share"
oai_localhost
=
openair
(
'localdomain'
,
'localhost'
)
oai_localhost
.
connect
(
user
,
pw
)
cmd
=
'
rm -fr '
+
NFSTestsResultsDir
+
' ;
mkdir -p '
+
NFSTestsResultsDir
cmd
=
' mkdir -p '
+
NFSTestsResultsDir
res
=
oai_localhost
.
send_recv
(
cmd
)
print
"Deleting NFSTestResults Dir..."
+
res
print
"Copying files from GilabCI Runner Machine : "
+
host
+
" .locallogdir = "
+
locallogdir
+
", NFSTestsResultsDir = "
+
NFSTestsResultsDir
SSHSessionWrapper
(
'localhost'
,
user
,
None
,
pw
,
NFSTestsResultsDir
,
locallogdir
,
"put_all"
)
...
...
@@ -1568,12 +1564,15 @@ res=os.system(cmd)
print
"Now copying files to NFS Share"
oai_localhost
=
openair
(
'localdomain'
,
'localhost'
)
oai_localhost
.
connect
(
user
,
pw
)
cmd
=
'
rm -fr '
+
NFSTestsResultsDir
+
' ;
mkdir -p '
+
NFSTestsResultsDir
cmd
=
'mkdir -p '
+
NFSTestsResultsDir
res
=
oai_localhost
.
send_recv
(
cmd
)
print
"Deleting NFSTestResults Dir..."
+
res
print
"Copying files from GilabCI Runner Machine : "
+
host
+
" .locallogdir = "
+
locallogdir
+
", NFSTestsResultsDir = "
+
NFSTestsResultsDir
SSHSessionWrapper
(
'localhost'
,
user
,
None
,
pw
,
NFSTestsResultsDir
,
locallogdir
,
"put_all"
)
cmd
=
"cat "
+
NFSTestsResultsDir
+
"/log/*/*.xml > "
+
NFSTestsResultsDir
+
"/log/results_autotests.xml"
res
=
oai_localhost
.
send_recv
(
cmd
)
oai_localhost
.
disconnect
()
sys
.
exit
()
cmake_targets/autotests/test_case_list.xml
View file @
f1c8c96c
...
...
@@ -6146,7 +6146,7 @@ c
<HSS_main_exec_args></HSS_main_exec_args>
<EPC_traffic_exec>
$OPENAIRCN_DIR/TEST/autotests/tools/iperf_script 5 lo -s -i 1 -u -f m
</EPC_traffic_exec>
<EPC_traffic_exec_args></EPC_traffic_exec_args>
<EPC_search_expr_true>
throughput_test min=
1.0Mbits/sec max=1.0Mbits/sec average=1
.0Mbits/sec
</EPC_search_expr_true>
<EPC_search_expr_true>
throughput_test min=
5.0Mbits/sec max=5.0Mbits/sec average=5
.0Mbits/sec
</EPC_search_expr_true>
<EPC_search_expr_false></EPC_search_expr_false>
<EPC_terminate_missing_procs>
False
</EPC_terminate_missing_procs>
<tags>
USRPb210.ALU_EPC.SonyExperiaM4.5MHz.FDD.Band_7.UL.1TX.1RX
</tags>
...
...
@@ -6199,7 +6199,7 @@ c
<UE_pre_exec_args></UE_pre_exec_args>
<UE_main_exec>
sleep 50; $OPENAIR_DIR/cmake_targets/autotests/tools/configure_cots_sony_experia_m4_ue.py --stop-ue ; $OPENAIR_DIR/cmake_targets/autotests/tools/configure_cots_sony_experia_m4_ue.py --start-ue
</UE_main_exec>
<UE_main_exec_args></UE_main_exec_args>
<UE_traffic_exec>
$OPENAIR_DIR/cmake_targets/autotests/tools/iperf_script_phone 1 YT9115PX1E -u -c 192.172.0.1 -b
1
0Mbits/s -B 192.172.0.2
</UE_traffic_exec>
<UE_traffic_exec>
$OPENAIR_DIR/cmake_targets/autotests/tools/iperf_script_phone 1 YT9115PX1E -u -c 192.172.0.1 -b
2
0Mbits/s -B 192.172.0.2
</UE_traffic_exec>
<UE_traffic_exec_args></UE_traffic_exec_args>
<UE_search_expr_true></UE_search_expr_true>
<UE_search_expr_false></UE_search_expr_false>
...
...
@@ -6221,7 +6221,7 @@ c
<HSS_main_exec_args></HSS_main_exec_args>
<EPC_traffic_exec>
$OPENAIRCN_DIR/TEST/autotests/tools/iperf_script 5 lo -s -i 1 -u -f m
</EPC_traffic_exec>
<EPC_traffic_exec_args></EPC_traffic_exec_args>
<EPC_search_expr_true>
throughput_test min=1
.0Mbits/sec max=1.0Mbits/sec average=1
.0Mbits/sec
</EPC_search_expr_true>
<EPC_search_expr_true>
throughput_test min=1
0.0Mbits/sec max=10.0Mbits/sec average=10
.0Mbits/sec
</EPC_search_expr_true>
<EPC_search_expr_false></EPC_search_expr_false>
<EPC_terminate_missing_procs>
False
</EPC_terminate_missing_procs>
<tags>
USRPb210.ALU_EPC.SonyExperiaM4.10MHz.FDD.Band_7.UL.1TX.1RX
</tags>
...
...
@@ -6347,7 +6347,7 @@ c
<UE_pre_exec_args></UE_pre_exec_args>
<UE_main_exec>
sleep 50; $OPENAIR_DIR/cmake_targets/autotests/tools/configure_cots_sony_experia_m4_ue.py --stop-ue ; $OPENAIR_DIR/cmake_targets/autotests/tools/configure_cots_sony_experia_m4_ue.py --start-ue
</UE_main_exec>
<UE_main_exec_args></UE_main_exec_args>
<UE_traffic_exec>
$OPENAIR_DIR/cmake_targets/autotests/tools/iperf
_script_phone 1 YT9115PX1E -u -s -i 1 -u -f m -B 192.172.0.2
</UE_traffic_exec>
<UE_traffic_exec>
$OPENAIR_DIR/cmake_targets/autotests/tools/iperf
3_script_phone 1 YT9115PX1E -c 192.172.0.1 -i 1 -u -f m -B 192.172.0.2 -b 10M -R
</UE_traffic_exec>
<UE_traffic_exec_args></UE_traffic_exec_args>
<UE_search_expr_true>
throughput_test min=4.0Mbits/sec max=5.0Mbits/sec average=4.0Mbits/sec
</UE_search_expr_true>
<UE_search_expr_false></UE_search_expr_false>
...
...
@@ -6368,7 +6368,7 @@ c
<EPC_main_exec_args></EPC_main_exec_args>
<HSS_main_exec>
/opt/hss_sim0609/starthss >> /dev/null ; sleep 3000
</HSS_main_exec>
<HSS_main_exec_args></HSS_main_exec_args>
<EPC_traffic_exec>
$OPENAIRCN_DIR/TEST/autotests/tools/iperf
_script 60 lo -u -c 192.172.0.2 -b 10Mbits/s
</EPC_traffic_exec>
<EPC_traffic_exec>
$OPENAIRCN_DIR/TEST/autotests/tools/iperf
3_script 5 lo -s -i 1 -f m
</EPC_traffic_exec>
<EPC_traffic_exec_args></EPC_traffic_exec_args>
<EPC_search_expr_false></EPC_search_expr_false>
<EPC_terminate_missing_procs>
False
</EPC_terminate_missing_procs>
...
...
@@ -6421,7 +6421,7 @@ c
<UE_pre_exec_args></UE_pre_exec_args>
<UE_main_exec>
sleep 50; $OPENAIR_DIR/cmake_targets/autotests/tools/configure_cots_sony_experia_m4_ue.py --stop-ue ; $OPENAIR_DIR/cmake_targets/autotests/tools/configure_cots_sony_experia_m4_ue.py --start-ue
</UE_main_exec>
<UE_main_exec_args></UE_main_exec_args>
<UE_traffic_exec>
$OPENAIR_DIR/cmake_targets/autotests/tools/iperf
_script_phone 1 YT9115PX1E -s -i 1 -u -f m -B 192.172.0.2
</UE_traffic_exec>
<UE_traffic_exec>
$OPENAIR_DIR/cmake_targets/autotests/tools/iperf
3_script_phone 1 YT9115PX1E -c 192.172.0.1 -i 1 -u -f m -B 192.172.0.2 -b 20M -R
</UE_traffic_exec>
<UE_traffic_exec_args></UE_traffic_exec_args>
<UE_search_expr_true>
throughput_test min=8.0Mbits/sec max=9.0Mbits/sec average=8.5Mbits/sec
</UE_search_expr_true>
<UE_search_expr_false></UE_search_expr_false>
...
...
@@ -6442,7 +6442,7 @@ c
<EPC_main_exec_args></EPC_main_exec_args>
<HSS_main_exec>
/opt/hss_sim0609/starthss >> /dev/null ; sleep 3000
</HSS_main_exec>
<HSS_main_exec_args></HSS_main_exec_args>
<EPC_traffic_exec>
$OPENAIRCN_DIR/TEST/autotests/tools/iperf
_script 60 lo -u -c 192.172.0.2 -b 15Mbits/s
</EPC_traffic_exec>
<EPC_traffic_exec>
$OPENAIRCN_DIR/TEST/autotests/tools/iperf
3_script 5 lo -s -i 1 -f m
</EPC_traffic_exec>
<EPC_traffic_exec_args></EPC_traffic_exec_args>
<EPC_search_expr_false></EPC_search_expr_false>
<EPC_terminate_missing_procs>
False
</EPC_terminate_missing_procs>
...
...
cmake_targets/autotests/tools/configure_cots_sony_experia_m4_ue.py
View file @
f1c8c96c
...
...
@@ -43,7 +43,8 @@ def kill_processes(name):
cmd
=
'sudo adb -s '
+
device_id
+
' shell "ps |grep '
+
name
+
'"'
status
,
out
=
commands
.
getstatusoutput
(
cmd
)
if
status
!=
0
:
print
"Error execting command to kill process "
+
name
print
"Error executing command to kill process "
+
name
print
"Error ="
+
out
sys
.
exit
(
1
)
print
"Out = "
+
out
if
out
==
''
:
...
...
cmake_targets/autotests/tools/iperf3_script_phone
View file @
f1c8c96c
...
...
@@ -32,7 +32,7 @@
#arg1 timeout to wait before running the script
#arg2 interface
#arg3 iperf arguments
#arg3 iperf
3
arguments
args
=(
$*
)
timeout
=
${
args
[0]
}
...
...
@@ -43,7 +43,7 @@ iperf3_args=(${args[@]:2})
echo
"args =
${
args
[@]
}
"
echo
"timeout =
$timeout
"
echo
"device_id =
$device_id
"
echo
"iperf
_args =
${
iperf
_args
[@]
}
"
echo
"iperf
3_args =
${
iperf3
_args
[@]
}
"
sleep
$timeout
...
...
@@ -58,6 +58,6 @@ while true ; do
fi
done
echo
"Starting iperf now..."
echo
"Starting iperf
3
now..."
sudo
adb
-s
$device_id
shell /data/local/tmp/iperf3
${
iperf_args
[@]
}
sudo
adb
-s
$device_id
shell /data/local/tmp/iperf3
${
iperf
3
_args
[@]
}
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