Commit c7c104a6 authored by Raphael Defosseux's avatar Raphael Defosseux

CI: adding dummy skeleton stages in pipeline to run L1/RF simulators

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 8c7ed9f7
...@@ -371,6 +371,36 @@ pipeline { ...@@ -371,6 +371,36 @@ pipeline {
} }
} }
} }
stage ("Test L1 simulator") {
steps {
script {
timeout (time: 30, unit: 'MINUTES') {
try {
gitlabCommitStatus(name: "Test L1-sim") {
sh "./ci-scripts/oai-ci-vm-tool test --workspace $WORKSPACE --variant l1-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID} --keep-vm-alive"
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
}
}
}
}
}
stage ("Test RF simulator") {
steps {
script {
timeout (time: 30, unit: 'MINUTES') {
try {
gitlabCommitStatus(name: "Test RF-sim") {
sh "./ci-scripts/oai-ci-vm-tool test --workspace $WORKSPACE --variant rf-sim --job-name ${JOB_NAME} --build-id ${BUILD_ID} --keep-vm-alive"
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
}
}
}
}
}
stage ("Test L2 simulator") { stage ("Test L2 simulator") {
steps { steps {
script { script {
......
...@@ -44,6 +44,7 @@ function variant_usage { ...@@ -44,6 +44,7 @@ function variant_usage {
echo " # non-OSA Build Variants" echo " # non-OSA Build Variants"
echo " --variant flexran-rtc OR -v10" echo " --variant flexran-rtc OR -v10"
echo " # OpenAirInterface Test Variants" echo " # OpenAirInterface Test Variants"
echo " --variant l1-sim OR -v20"
echo " --variant rf-sim OR -v21" echo " --variant rf-sim OR -v21"
echo " --variant l2-sim OR -v22" echo " --variant l2-sim OR -v22"
} }
...@@ -303,6 +304,13 @@ case $key in ...@@ -303,6 +304,13 @@ case $key in
NBARGS=$[$NBARGS+256] NBARGS=$[$NBARGS+256]
shift shift
;; ;;
-v20)
VM_NAME=ci-l1-sim
ARCHIVES_LOC=l1_sim
RUN_OPTIONS="complex"
NBARGS=$[$NBARGS+256]
shift
;;
-v21) -v21)
VM_NAME=ci-rf-sim VM_NAME=ci-rf-sim
ARCHIVES_LOC=rf_sim ARCHIVES_LOC=rf_sim
...@@ -385,6 +393,12 @@ case $key in ...@@ -385,6 +393,12 @@ case $key in
BUILD_OPTIONS="cmake . && make -j2" BUILD_OPTIONS="cmake . && make -j2"
NBARGS=$[$NBARGS+256] NBARGS=$[$NBARGS+256]
;; ;;
l1-sim)
VM_NAME=ci-l1-sim
ARCHIVES_LOC=l1_sim
RUN_OPTIONS="complex"
NBARGS=$[$NBARGS+256]
;;
rf-sim) rf-sim)
VM_NAME=ci-rf-sim VM_NAME=ci-rf-sim
ARCHIVES_LOC=rf_sim ARCHIVES_LOC=rf_sim
...@@ -589,6 +603,24 @@ then ...@@ -589,6 +603,24 @@ then
fi fi
if [ $TEST_CMD -eq 1 ] if [ $TEST_CMD -eq 1 ]
then then
# Comment out or delete the following lines if you want to run L1-simulator in your branch and/or merge request
if [[ $VM_NAME =~ .*-l1-sim.* ]]
then
echo "Currently L1-Simulator Testing is not implemented / enabled"
echo "Comment out these lines in ./ci-scripts/oai-ci-vm-tool if you want to run it"
echo "STATUS seems OK"
exit $STATUS
fi
# end to comment out for L1-simulator
# Comment out or delete the following lines if you want to run RF-simulator in your branch and/or merge request
if [[ $VM_NAME =~ .*-rf-sim.* ]]
then
echo "Currently RF-Simulator Testing is not implemented / enabled"
echo "Comment out these lines in ./ci-scripts/oai-ci-vm-tool if you want to run it"
echo "STATUS seems OK"
exit $STATUS
fi
# end to comment out for RF-simulator
ARCHIVES_LOC=${ARCHIVES_LOC}/test ARCHIVES_LOC=${ARCHIVES_LOC}/test
run_test_on_vm run_test_on_vm
fi fi
......
...@@ -1474,6 +1474,8 @@ function run_test_on_vm { ...@@ -1474,6 +1474,8 @@ function run_test_on_vm {
if [[ "$RUN_OPTIONS" == "complex" ]] && [[ $VM_NAME =~ .*-rf-sim.* ]] if [[ "$RUN_OPTIONS" == "complex" ]] && [[ $VM_NAME =~ .*-rf-sim.* ]]
then then
PING_STATUS=0
IPERF_STATUS=0
if [ -d $ARCHIVES_LOC ] if [ -d $ARCHIVES_LOC ]
then then
rm -Rf $ARCHIVES_LOC rm -Rf $ARCHIVES_LOC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment