ttcn3-pcu-test: use PFUIF v10 for 2023q1
Change-Id: Iae895240276fa68bfd9fdb2e13358a3a7fb65f59
This commit is contained in:
parent
f15080eb62
commit
c68d4d9f0f
|
@ -503,6 +503,14 @@ image_suffix_is_master() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Check if IMAGE_SUFFIX starts with "2023q1" (e.g. "2023q1-centos8")
|
||||||
|
image_suffix_is_2023q1() {
|
||||||
|
case "$IMAGE_SUFFIX" in
|
||||||
|
2023q1*) return 0 ;;
|
||||||
|
*) return 1 ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
# Write the Osmocom repository to the TTCN3 config file, so the tests may take
|
# Write the Osmocom repository to the TTCN3 config file, so the tests may take
|
||||||
# different code paths (OS#5327)
|
# different code paths (OS#5327)
|
||||||
# $1: path to TTCN3 config file (e.g. BSC_Tests.cfg)
|
# $1: path to TTCN3 config file (e.g. BSC_Tests.cfg)
|
||||||
|
|
|
@ -34,7 +34,8 @@ SGSN_Components.mp_nsconfig := {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Osmocom_VTY_Functions.mp_prompt_prefix := "OsmoPCU";
|
Osmocom_VTY_Functions.mp_prompt_prefix := "OsmoPCU"
|
||||||
|
PCUIF_Types.mp_pcuif_version := 11
|
||||||
|
|
||||||
[MAIN_CONTROLLER]
|
[MAIN_CONTROLLER]
|
||||||
|
|
||||||
|
|
|
@ -9,10 +9,17 @@ docker_images_require \
|
||||||
set_clean_up_trap
|
set_clean_up_trap
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
mkdir $VOL_BASE_DIR/pcu-tester
|
mkdir $VOL_BASE_DIR/pcu-tester
|
||||||
mkdir $VOL_BASE_DIR/pcu-tester/unix
|
mkdir $VOL_BASE_DIR/pcu-tester/unix
|
||||||
cp sns/PCU_Tests.cfg $VOL_BASE_DIR/pcu-tester/
|
cp sns/PCU_Tests.cfg $VOL_BASE_DIR/pcu-tester/
|
||||||
write_mp_osmo_repo "$VOL_BASE_DIR/pcu-tester/PCU_Tests.cfg"
|
write_mp_osmo_repo "$VOL_BASE_DIR/pcu-tester/PCU_Tests.cfg"
|
||||||
|
set_pcuif_version "$VOL_BASE_DIR/pcu-tester/PCU_Tests.cfg"
|
||||||
|
|
||||||
mkdir $VOL_BASE_DIR/pcu
|
mkdir $VOL_BASE_DIR/pcu
|
||||||
mkdir $VOL_BASE_DIR/pcu/unix
|
mkdir $VOL_BASE_DIR/pcu/unix
|
||||||
|
|
|
@ -9,10 +9,17 @@ docker_images_require \
|
||||||
set_clean_up_trap
|
set_clean_up_trap
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
mkdir $VOL_BASE_DIR/pcu-tester
|
mkdir $VOL_BASE_DIR/pcu-tester
|
||||||
mkdir $VOL_BASE_DIR/pcu-tester/unix
|
mkdir $VOL_BASE_DIR/pcu-tester/unix
|
||||||
cp PCU_Tests.cfg $VOL_BASE_DIR/pcu-tester/
|
cp PCU_Tests.cfg $VOL_BASE_DIR/pcu-tester/
|
||||||
write_mp_osmo_repo "$VOL_BASE_DIR/pcu-tester/PCU_Tests.cfg"
|
write_mp_osmo_repo "$VOL_BASE_DIR/pcu-tester/PCU_Tests.cfg"
|
||||||
|
set_pcuif_version "$VOL_BASE_DIR/pcu-tester/PCU_Tests.cfg"
|
||||||
|
|
||||||
mkdir $VOL_BASE_DIR/pcu
|
mkdir $VOL_BASE_DIR/pcu
|
||||||
mkdir $VOL_BASE_DIR/pcu/unix
|
mkdir $VOL_BASE_DIR/pcu/unix
|
||||||
|
|
|
@ -59,6 +59,7 @@ SGSN_Components.mp_nsconfig := {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
PCUIF_Types.mp_pcuif_version := 11
|
||||||
|
|
||||||
[MAIN_CONTROLLER]
|
[MAIN_CONTROLLER]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue