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
c355a26a
Commit
c355a26a
authored
Oct 30, 2020
by
Eurecom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing RA test iteration to 10 times to have a chance (unstable in CI env)
parent
b18c3611
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
37 deletions
+22
-37
ci-scripts/runTestOnVM.sh
ci-scripts/runTestOnVM.sh
+22
-37
No files found.
ci-scripts/runTestOnVM.sh
View file @
c355a26a
...
@@ -1246,16 +1246,6 @@ function start_rf_sim_gnb {
...
@@ -1246,16 +1246,6 @@ function start_rf_sim_gnb {
ssh
-T
-o
StrictHostKeyChecking
=
no ubuntu@
$LOC_GNB_VM_IP_ADDR
<
$1
ssh
-T
-o
StrictHostKeyChecking
=
no ubuntu@
$LOC_GNB_VM_IP_ADDR
<
$1
rm
$1
rm
$1
# For the moment, in RA test, no check and no copy of generated raw files
if
[
$LOC_RA_TEST
-eq
1
]
# RA test
then
sleep
30
echo
"echo
\"
free -m
\"
"
>
$1
echo
"free -m"
>>
$1
ssh
-T
-o
StrictHostKeyChecking
=
no ubuntu@
$LOC_GNB_VM_IP_ADDR
<
$1
rm
$1
return
0
fi
local
i
=
"0"
local
i
=
"0"
echo
"egrep -c
\"
got sync
\"
/home/ubuntu/tmp/cmake_targets/log/
$LOC_LOG_FILE
"
>
$1
echo
"egrep -c
\"
got sync
\"
/home/ubuntu/tmp/cmake_targets/log/
$LOC_LOG_FILE
"
>
$1
...
@@ -1279,7 +1269,9 @@ function start_rf_sim_gnb {
...
@@ -1279,7 +1269,9 @@ function start_rf_sim_gnb {
GNB_SYNC
=
1
GNB_SYNC
=
1
echo
"RF-SIM gNB is sync'ed: waiting for UE(s) to connect"
echo
"RF-SIM gNB is sync'ed: waiting for UE(s) to connect"
fi
fi
if
[
$LOC_S1_CONFIGURATION
-eq
0
]
# check noS1 config only outside RA test (as it does not support noS1)
if
[
$LOC_S1_CONFIGURATION
-eq
0
]
&&
[
$LOC_RA_TEST
-eq
0
]
then
then
echo
"ifconfig oaitun_enb1 | egrep -c
\"
inet addr
\"
"
>
$1
echo
"ifconfig oaitun_enb1 | egrep -c
\"
inet addr
\"
"
>
$1
# Checking oaitun_enb1 interface has now an IP address
# Checking oaitun_enb1 interface has now an IP address
...
@@ -1362,14 +1354,6 @@ function start_rf_sim_nr_ue {
...
@@ -1362,14 +1354,6 @@ function start_rf_sim_nr_ue {
ssh
-T
-o
StrictHostKeyChecking
=
no ubuntu@
$LOC_NR_UE_VM_IP_ADDR
<
$1
ssh
-T
-o
StrictHostKeyChecking
=
no ubuntu@
$LOC_NR_UE_VM_IP_ADDR
<
$1
rm
$1
rm
$1
# In case of RA test mode, no UE sync check for the moment.
# To be removed later?
if
[
$LOC_RA_TEST
-eq
1
]
# RA test
then
sleep
30
NR_UE_SYNC
=
1
return
0
fi
local
i
=
"0"
local
i
=
"0"
echo
"egrep -c
\"
Initial sync: pbch decoded sucessfully
\"
/home/ubuntu/tmp/cmake_targets/log/
$LOC_LOG_FILE
"
>
$1
echo
"egrep -c
\"
Initial sync: pbch decoded sucessfully
\"
/home/ubuntu/tmp/cmake_targets/log/
$LOC_LOG_FILE
"
>
$1
while
[
$i
-lt
10
]
while
[
$i
-lt
10
]
...
@@ -1393,11 +1377,13 @@ function start_rf_sim_nr_ue {
...
@@ -1393,11 +1377,13 @@ function start_rf_sim_nr_ue {
else
else
echo
"RF-SIM NR-UE is sync'ed w/ gNB"
echo
"RF-SIM NR-UE is sync'ed w/ gNB"
fi
fi
# Checking oaitun_ue1 interface has now an IP address
# Checking oaitun_ue1 interface has now an IP address (only outside RA test)
i
=
"0"
if
[
$LOC_RA_TEST
-eq
0
]
echo
"ifconfig oaitun_ue1 | egrep -c
\"
inet addr
\"
"
>
$1
then
while
[
$i
-lt
10
]
i
=
"0"
do
echo
"ifconfig oaitun_ue1 | egrep -c
\"
inet addr
\"
"
>
$1
while
[
$i
-lt
10
]
do
sleep
5
sleep
5
CONNECTED
=
`
ssh
-T
-o
StrictHostKeyChecking
=
no ubuntu@
$LOC_NR_UE_VM_IP_ADDR
<
$1
`
CONNECTED
=
`
ssh
-T
-o
StrictHostKeyChecking
=
no ubuntu@
$LOC_NR_UE_VM_IP_ADDR
<
$1
`
if
[
$CONNECTED
-eq
1
]
if
[
$CONNECTED
-eq
1
]
...
@@ -1406,21 +1392,20 @@ function start_rf_sim_nr_ue {
...
@@ -1406,21 +1392,20 @@ function start_rf_sim_nr_ue {
else
else
i
=
$[$i
+1]
i
=
$[$i
+1]
fi
fi
done
done
echo
"echo
\"
free -m
\"
"
>
$1
echo
"echo
\"
free -m
\"
"
>
$1
echo
"free -m"
>>
$1
echo
"free -m"
>>
$1
ssh
-T
-o
StrictHostKeyChecking
=
no ubuntu@
$LOC_NR_UE_VM_IP_ADDR
<
$1
ssh
-T
-o
StrictHostKeyChecking
=
no ubuntu@
$LOC_NR_UE_VM_IP_ADDR
<
$1
rm
$1
rm
$1
if
[
$i
-lt
50
]
if
[
$i
-lt
50
]
then
then
NR_UE_SYNC
=
0
NR_UE_SYNC
=
0
echo
"RF-SIM NR-UE oaitun_ue1 is DOWN or NOT CONFIGURED"
echo
"RF-SIM NR-UE oaitun_ue1 is DOWN or NOT CONFIGURED"
else
else
echo
"RF-SIM NR-UE oaitun_ue1 is UP and CONFIGURED"
echo
"RF-SIM NR-UE oaitun_ue1 is UP and CONFIGURED"
fi
fi
sleep
10
sleep
10
fi
}
}
...
@@ -2217,7 +2202,7 @@ function run_test_on_vm {
...
@@ -2217,7 +2202,7 @@ function run_test_on_vm {
NR_STATUS
=
0
NR_STATUS
=
0
######### start of RA TEST loop
######### start of RA TEST loop
while
[
$try_cnt
-lt
4
]
while
[
$try_cnt
-lt
10
]
#10 because it hardly succeed within CI
do
do
SYNC_STATUS
=
0
SYNC_STATUS
=
0
...
...
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