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
ZhouShuya
OpenXG-RAN
Commits
e772899b
Commit
e772899b
authored
Sep 10, 2018
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: better reporting on basic simulator
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
c8eb68d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
161 additions
and
89 deletions
+161
-89
ci-scripts/reportTestLocally.sh
ci-scripts/reportTestLocally.sh
+161
-89
No files found.
ci-scripts/reportTestLocally.sh
View file @
e772899b
...
...
@@ -317,9 +317,74 @@ then
echo
" <th>Statistics</th>"
>>
./test_simulator_results.html
echo
" </tr>"
>>
./test_simulator_results.html
PING_TESTS
=
`
ls
$ARCHIVES_LOC
/
*
ping
*
txt
`
for
PING_CASE
in
$PING_TESTS
BW_CASES
=(
05 10 20
)
for
BW
in
${
BW_CASES
[@]
}
do
ENB_LOG
=
$ARCHIVES_LOC
/enb_
${
BW
}
MHz.log
UE_LOG
=
`
echo
$ENB_LOG
|
sed
-e
"s#enb#ue#"
`
if
[
-f
$ENB_LOG
]
&&
[
-f
$UE_LOG
]
then
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
NB_ENB_GOT_SYNC
=
`
egrep
-c
"got sync"
$ENB_LOG
`
NB_UE_GOT_SYNC
=
`
egrep
-c
"got sync"
$UE_LOG
`
NB_ENB_SYNCED_WITH_UE
=
`
egrep
-c
"got UE capabilities for UE"
$ENB_LOG
`
if
[
$NB_ENB_GOT_SYNC
-eq
1
]
&&
[
$NB_UE_GOT_SYNC
-eq
2
]
&&
[
$NB_ENB_SYNCED_WITH_UE
-eq
1
]
then
echo
" <td bgcolor =
\"
green
\"
>OK</td>"
>>
./test_simulator_results.html
else
echo
" <td bgcolor =
\"
red
\"
>OK</td>"
>>
./test_simulator_results.html
fi
echo
" <td><pre>"
>>
./test_simulator_results.html
if
[
$NB_ENB_GOT_SYNC
-eq
1
]
then
echo
"<font color =
\"
blue
\"
>- eNB --> got sync</font>"
>>
./test_simulator_results.html
else
echo
"<font color =
\"
red
\"
><b>- eNB NEVER got sync</b></font>"
>>
./test_simulator_results.html
fi
if
[
$NB_UE_GOT_SYNC
-eq
2
]
then
echo
"<font color =
\"
blue
\"
>- UE --> got sync</font>"
>>
./test_simulator_results.html
else
echo
"<font color =
\"
red
\"
><b>- UE NEVER got sync</b></font>"
>>
./test_simulator_results.html
fi
if
[
$NB_ENB_SYNCED_WITH_UE
-eq
1
]
then
echo
"<font color =
\"
blue
\"
>- UE attached to eNB</font>"
>>
./test_simulator_results.html
else
echo
"<font color =
\"
red
\"
><b>- UE NEVER attached to eNB</b></font>"
>>
./test_simulator_results.html
fi
NB_SEGFAULT_ENB
=
`
egrep
-i
-c
"Segmentation Fault"
$ENB_LOG
`
if
[
$NB_SEGFAULT_ENB
-ne
0
]
then
echo
"<font color =
\"
red
\"
><b>- eNB --> Segmentation Fault</b></font>"
>>
./test_simulator_results.html
fi
NB_SEGFAULT_UE
=
`
egrep
-i
-c
"Segmentation Fault"
$UE_LOG
`
if
[
$NB_SEGFAULT_UE
-ne
0
]
then
echo
"<font color =
\"
red
\"
><b>- UE --> Segmentation Fault</b></font>"
>>
./test_simulator_results.html
fi
NB_ASSERTION_ENB
=
`
egrep
-i
-c
"Assertion"
$ENB_LOG
`
if
[
$NB_ASSERTION_ENB
-ne
0
]
then
echo
"<font color =
\"
red
\"
><b>- eNB --> Assertion</b></font>"
>>
./test_simulator_results.html
awk
'BEGIN{assertion=10}{if(assertion < 3){print " " $0; assertion++};if ($0 ~/Assertion/){print " " $0;assertion=1}}END{}'
$ENB_LOG
>>
./test_simulator_results.html
fi
NB_ASSERTION_UE
=
`
egrep
-i
-c
"Assertion"
$UE_LOG
`
if
[
$NB_ASSERTION_UE
-ne
0
]
then
echo
"<font color =
\"
red
\"
><b>- eNB --> Assertion</b></font>"
>>
./test_simulator_results.html
awk
'BEGIN{assertion=10}{if(assertion < 3){print " " $0; assertion++};if ($0 ~/Assertion/){print " " $0;assertion=1}}END{}'
$UE_LOG
>>
./test_simulator_results.html
fi
echo
" </pre></td>"
>>
./test_simulator_results.html
echo
" </tr>"
>>
./test_simulator_results.html
fi
PING_CASE
=
$ARCHIVES_LOC
/
${
BW
}
MHz_ping_ue.txt
if
[
-f
$PING_CASE
]
then
echo
" <tr>"
>>
./test_simulator_results.html
NAME
=
`
echo
$PING_CASE
|
sed
-e
"s#
$ARCHIVES_LOC
/##"
`
echo
" <td>
$NAME
</td>"
>>
./test_simulator_results.html
...
...
@@ -353,9 +418,15 @@ then
echo
" </td>"
>>
./test_simulator_results.html
fi
echo
" </tr>"
>>
./test_simulator_results.html
done
fi
IPERF_TESTS
=
`
ls
$ARCHIVES_LOC
/
*
iperf
*
client
*
txt
`
if
[
-f
$ARCHIVES_LOC
/
${
BW
}*
iperf
*
dl
*
client
*
txt
]
then
IPERF_TESTS
=
`
ls
$ARCHIVES_LOC
/
${
BW
}*
iperf
*
client
*
txt
`
else
echo
"There are no iperf files"
IPERF_TESTS
=
""
fi
for
IPERF_CASE
in
$IPERF_TESTS
do
echo
" <tr>"
>>
./test_simulator_results.html
...
...
@@ -429,6 +500,7 @@ then
echo
" </td>"
>>
./test_simulator_results.html
echo
" </tr>"
>>
./test_simulator_results.html
done
done
echo
" </table>"
>>
./test_simulator_results.html
fi
...
...
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