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
wangjie
OpenXG-RAN
Commits
0004490f
Commit
0004490f
authored
Oct 04, 2020
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rfsim RA check : check html formatting
parent
15005cfd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
25 deletions
+36
-25
ci-scripts/reportTestLocally.sh
ci-scripts/reportTestLocally.sh
+36
-25
No files found.
ci-scripts/reportTestLocally.sh
View file @
0004490f
...
...
@@ -767,38 +767,49 @@ function report_test {
echo
" </tr>"
>>
./test_simulator_results.html
#RA test
#check formatting
echo
" <tr>"
>>
./test_simulator_results.html
echo
" <td>ENB LOG file --- UE LOG file </td>"
>>
./test_simulator_results.html
echo
" <td>Check RA succeeded</td>"
>>
./test_simulator_results.html
echo
" <td bgcolor =
\"
red
\"
>KO</td>"
>>
./test_simulator_results.html
echo
" <td><pre>"
>>
./test_simulator_results.html
echo
"<font color =
\"
red
\"
>No check yet</font>"
>>
./test_simulator_results.html
echo
" </pre></td>"
>>
./test_simulator_results.html
echo
" </tr>"
>>
./test_simulator_results.html
#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
#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=
#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 [ -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
# 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
...
...
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