This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
osmith gerrit-no-reply at lists.osmocom.orgosmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26386 ) Change subject: library/Misc_Helpers: add f_is_osmocom_* functions ...................................................................... library/Misc_Helpers: add f_is_osmocom_* functions Create functions to check which version of the Osmocom stack is running. Put it in Misc_Helpers instead of a new library file since Misc_Helpers is already available in many/all? tests and it fits there too. Depends: docker-playground Ic06532f7a67e59458652c5cf4c8f6fee8113e703 Related: OS#5327 Change-Id: Ic33d08992ea84af006d133db6aec508a7b7c7f28 --- M library/Misc_Helpers.ttcn 1 file changed, 19 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/86/26386/1 diff --git a/library/Misc_Helpers.ttcn b/library/Misc_Helpers.ttcn index a402525..94007be 100644 --- a/library/Misc_Helpers.ttcn +++ b/library/Misc_Helpers.ttcn @@ -1,5 +1,24 @@ module Misc_Helpers { +modulepar { + charstring mp_osmocom_stack_version := "nightly"; +} + +/* Functions for having different test code paths based on the version of the + * Osmocom stack (nightly, latest, 2021q4, ...). See OS#4878. */ + +function f_is_osmocom_nightly() return boolean { + return mp_osmocom_stack_version == "nightly"; +} + +function f_is_osmocom_latest() return boolean { + return mp_osmocom_stack_version == "latest"; +} + +function f_is_osmocom_2021q4() return boolean { + return mp_osmocom_stack_version == "2021q4"; +} + /* Try to properly shutdown a testcase. * The reliable method to stop a testcase without running into dynamic * testcase errors due to unconnected ports receiving messages is to call -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/26386 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: Ic33d08992ea84af006d133db6aec508a7b7c7f28 Gerrit-Change-Number: 26386 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211126/366c6bfc/attachment.htm>