ttcn3-bts/pcu-test: Use PCUIF v12 for current master and PCUIF v11 for latest

At the moment we use PCUIF v11 in latest and in master. This will now
change (see Depends) so that we will have to use v12 in master. This
patch adds the necessary conditional config changes.

Depends: osmo-pcu.git I48eb75f65ab54fdec41ef913e24c1f18cd4a4047
Change-Id: I5c0914c0bf906b51a500a3b099578700798cf8c0
Related: OS#6191
This commit is contained in:
Philipp Maier 2023-11-01 16:38:45 +01:00 committed by dexter
parent ff0b8c6d94
commit 48ef15bd63
2 changed files with 23 additions and 0 deletions

View File

@ -121,17 +121,31 @@ start_testsuite() {
$REPO_USER/ttcn3-bts-test
}
set_pcuif_version() {
# This changes the PCUIF module parameter of the TTCN3 testsuite when the testsuite is
# executed for current master. For latest the PCUIF module parameter must stay at v.11
# since in osmo-bts-latest PCUIF v.12 is not yet supported. After the next release, PCUIF
# v.12 will be supported in osmo-bts-latest as well and this function, including the
# PCUIF_Types.mp_pcuif_version setting in the configuration files can be removed.
if image_suffix_is_master; then
sed -i 's/PCUIF_Types.mp_pcuif_version := 11/PCUIF_Types.mp_pcuif_version := 12/g' $1
fi
}
network_create
mkdir $VOL_BASE_DIR/bts-tester-generic
cp generic/BTS_Tests.cfg $VOL_BASE_DIR/bts-tester-generic/
write_mp_osmo_repo "$VOL_BASE_DIR/bts-tester-generic/BTS_Tests.cfg"
set_pcuif_version "$VOL_BASE_DIR/bts-tester-generic/BTS_Tests.cfg"
mkdir $VOL_BASE_DIR/bts-tester-virtphy
cp virtphy/BTS_Tests.cfg $VOL_BASE_DIR/bts-tester-virtphy/
write_mp_osmo_repo "$VOL_BASE_DIR/bts-tester-virtphy/BTS_Tests.cfg"
set_pcuif_version "$VOL_BASE_DIR/bts-tester-virtphy/BTS_Tests.cfg"
mkdir $VOL_BASE_DIR/bts-tester-oml
cp oml/BTS_Tests.cfg $VOL_BASE_DIR/bts-tester-oml/
write_mp_osmo_repo "$VOL_BASE_DIR/bts-tester-oml/BTS_Tests.cfg"
set_pcuif_version "$VOL_BASE_DIR/bts-tester-oml/BTS_Tests.cfg"
mkdir $VOL_BASE_DIR/bts-tester-hopping
cp fh/BTS_Tests.cfg $VOL_BASE_DIR/bts-tester-hopping/
write_mp_osmo_repo "$VOL_BASE_DIR/bts-tester-hopping/BTS_Tests.cfg"

View File

@ -13,6 +13,15 @@ set_pcuif_version() {
if image_suffix_is_2023q1; then
sed -i 's/PCUIF_Types.mp_pcuif_version := 11/PCUIF_Types.mp_pcuif_version := 10/g' $1
fi
# This changes the PCUIF module parameter of the TTCN3 testsuite when the testsuite is
# executed for current master. For latest the PCUIF module parameter must stay at v.11
# since in osmo-pcu-latest PCUIF v.12 is not yet supported. After the next release, PCUIF
# v.12 will be supported in osmo-pcu-latest as well and this function, including the
# PCUIF_Types.mp_pcuif_version setting in the configuration files can be removed.
if image_suffix_is_master; then
sed -i 's/PCUIF_Types.mp_pcuif_version := 11/PCUIF_Types.mp_pcuif_version := 12/g' $1
fi
}
mkdir $VOL_BASE_DIR/pcu-tester