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
f6e6e9d0
Commit
f6e6e9d0
authored
Oct 04, 2020
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
still working on rfsim RA test
parent
d61d42cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
28 deletions
+45
-28
ci-scripts/reportTestLocally.sh
ci-scripts/reportTestLocally.sh
+36
-0
ci-scripts/runTestOnVM.sh
ci-scripts/runTestOnVM.sh
+9
-28
No files found.
ci-scripts/reportTestLocally.sh
View file @
f6e6e9d0
...
@@ -765,6 +765,42 @@ function report_test {
...
@@ -765,6 +765,42 @@ function report_test {
echo
" <td align =
\"
center
\"
colspan = 4 >Test without EPC (aka noS1):
${
TMODE
}
--
${
BW
}
PRB </td>"
>>
./test_simulator_results.html
echo
" <td align =
\"
center
\"
colspan = 4 >Test without EPC (aka noS1):
${
TMODE
}
--
${
BW
}
PRB </td>"
>>
./test_simulator_results.html
fi
fi
echo
" </tr>"
>>
./test_simulator_results.html
echo
" </tr>"
>>
./test_simulator_results.html
#RA test
#RH file names to be checked
RA_ENB_LOG
=
$ARCHIVES_LOC
/RA_CHECK_
${
TMODE
}
_
${
BW
}
prb_
${
CN_CONFIG
}
_gnb.log
UE_LOG
=
`
echo
$ENB_LOG
|
sed
-e
"s#gnb#ue#"
`
RA_UE_LOG
=
if
[
-f
$ENB_LOG
]
&&
[
-f
$UE_LOG
]
then
#RH file names to be checked
NAME_ENB
=
`
echo
$ENB_LOG
|
sed
-e
"s#
$ARCHIVES_LOC
/##"
`
NAME_UE
=
`
echo
$UE_LOG
|
sed
-e
"s#
$ARCHIVES_LOC
/##"
`
echo
" <tr>"
>>
./test_simulator_results.html
echo
" <td>
$NAME_ENB
---
$NAME_UE
</td>"
>>
./test_simulator_results.html
echo
" <td>N/A</td>"
>>
./test_simulator_results.html
#gNB RA check
GNB_RECEIVED
=
`
egrep
-c
"received correctly"
$RA_ENB_LOG
`
GNB_CONNECTED
=
`
egrep
-c
"now 5G connected"
$RA_ENB_LOG
`
#UE RA check
UE_RA_PROC_OK
=
`
egrep
-c
"RA procedure succeeded"
$RA_UE_LOG
`
if
[
$GNB_RECEIVED
-gt
0
]
&&
[
$GNB_CONNECTED
-gt
0
]
&&
[
$UE_RA_PROC_OK
-gt
0
]
then
echo
" <td bgcolor =
\"
green
\"
>OK</td>"
>>
./test_simulator_results.html
else
echo
" <td bgcolor =
\"
red
\"
>KO</td>"
>>
./test_simulator_results.html
fi
echo
" </pre></td>"
>>
./test_simulator_results.html
echo
" </tr>"
>>
./test_simulator_results.html
fi
#sync test
ENB_LOG
=
$ARCHIVES_LOC
/
${
TMODE
}
_
${
BW
}
prb_
${
CN_CONFIG
}
_gnb.log
ENB_LOG
=
$ARCHIVES_LOC
/
${
TMODE
}
_
${
BW
}
prb_
${
CN_CONFIG
}
_gnb.log
UE_LOG
=
`
echo
$ENB_LOG
|
sed
-e
"s#gnb#ue#"
`
UE_LOG
=
`
echo
$ENB_LOG
|
sed
-e
"s#gnb#ue#"
`
if
[
-f
$ENB_LOG
]
&&
[
-f
$UE_LOG
]
if
[
-f
$ENB_LOG
]
&&
[
-f
$UE_LOG
]
...
...
ci-scripts/runTestOnVM.sh
View file @
f6e6e9d0
...
@@ -278,15 +278,15 @@ function check_ping_result {
...
@@ -278,15 +278,15 @@ function check_ping_result {
function
check_ra_result
{
function
check_ra_result
{
local
LOC_GNB_LOG
=
$
2
local
LOC_GNB_LOG
=
$
1
local
LOC_UE_LOG
=
$
4
local
LOC_UE_LOG
=
$
2
#gNB RA test
#gNB RA test
echo
"egrep -c
\"
received correctly
\"
/home/ubuntu/tmp/cmake_targets/log/
$LOC_GNB_LOG
"
>
$1
echo
"egrep -c
\"
received correctly
\"
$1
"
echo
"egrep -c
\"
now 5G connected
\"
/home/ubuntu/tmp/cmake_targets/log/
$LOC_GNB_LOG
"
>>
$1
echo
"egrep -c
\"
now 5G connected
\"
$1
"
#UE RA test
#UE RA test
echo
"egrep -c
\"
RA procedure succeeded
\"
/home/ubuntu/tmp/cmake_targets/log/
$LOC_UE_LOG
"
>
$3
echo
"egrep -c
\"
RA procedure succeeded
\"
$2
"
}
}
...
@@ -2202,29 +2202,10 @@ function run_test_on_vm {
...
@@ -2202,29 +2202,10 @@ function run_test_on_vm {
fi
fi
#checking ping works with --do-ra option
echo
"############################################################"
echo
"
${
CN_CONFIG
}
: Pinging the gNB from NR-UE"
echo
"############################################################"
get_enb_noS1_ip_addr
$GNB_VM_CMDS
$GNB_VM_IP_ADDR
PING_LOG_FILE
=
tdd_
${
PRB
}
prb_
${
CN_CONFIG
}
_ping_gnb_from_nrue.log
ping_epc_ip_addr
$NR_UE_VM_CMDS
$NR_UE_VM_IP_ADDR
$ENB_IP_ADDR
$PING_LOG_FILE
1 0
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$NR_UE_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
check_ping_result
$ARCHIVES_LOC
/
$PING_LOG_FILE
20
echo
"############################################################"
echo
"
${
CN_CONFIG
}
: Pinging the NR-UE from gNB"
echo
"############################################################"
get_ue_ip_addr
$NR_UE_VM_CMDS
$NR_UE_VM_IP_ADDR
1
PING_LOG_FILE
=
tdd_
${
PRB
}
prb_
${
CN_CONFIG
}
_ping_from_gnb_nrue.log
ping_enb_ip_addr
$GNB_VM_CMDS
$GNB_VM_IP_ADDR
$UE_IP_ADDR
$PING_LOG_FILE
0
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$GNB_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
check_ping_result
$ARCHIVES_LOC
/
$PING_LOG_FILE
20
echo
"############################################################"
echo
"############################################################"
echo
"
${
CN_CONFIG
}
: Terminate gNB/NR-UE simulators"
echo
"
${
CN_CONFIG
}
: Terminate gNB/NR-UE simulators"
echo
"############################################################"
echo
"############################################################"
sleep
20
terminate_enb_ue_basic_sim
$NR_UE_VM_CMDS
$NR_UE_VM_IP_ADDR
2
terminate_enb_ue_basic_sim
$NR_UE_VM_CMDS
$NR_UE_VM_IP_ADDR
2
terminate_enb_ue_basic_sim
$GNB_VM_CMDS
$GNB_VM_IP_ADDR
1
terminate_enb_ue_basic_sim
$GNB_VM_CMDS
$GNB_VM_IP_ADDR
1
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$GNB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_GNB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$GNB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_GNB_LOG_FILE
$ARCHIVES_LOC
...
@@ -2237,9 +2218,9 @@ function run_test_on_vm {
...
@@ -2237,9 +2218,9 @@ function run_test_on_vm {
echo
"
${
CN_CONFIG
}
: Checking RA on gNB / NR-UE"
echo
"
${
CN_CONFIG
}
: Checking RA on gNB / NR-UE"
echo
"############################################################"
echo
"############################################################"
mv
$ARCHIVES_LOC
/RA_CHECK_
$CURRENT_GNB_LOG_FILE
mv
$ARCHIVES_LOC
/
$CURRENT_GNB_LOG_FILE
$ARCHIVES_LOC
/
RA_CHECK_
$CURRENT_GNB_LOG_FILE
mv
$ARCHIVES_LOC
/
RA_CHECK_
$CURRENT_NR_UE_LOG_FILE
mv
$ARCHIVES_LOC
/
$CURRENT_NR_UE_LOG_FILE
$ARCHIVES_LOC
/RA_CHECK_
$CURRENT_NR_UE_LOG_FILE
#check_ra_result $GNB_VM_CMDS $CURRENT_GNB_LOG_FILE $NR_UE_VM_CMDS $CURRENT_NR_UE_LOG_FILE (function call to be fixed later)
check_ra_result
$ARCHIVES_LOC
/RA_CHECK_
$CURRENT_GNB_LOG_FILE
$ARCHIVES_LOC
/RA_CHECK_
$CURRENT_NR_UE_LOG_FILE
#end RA test
#end RA test
...
...
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