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/.
Max gerrit-no-reply at lists.osmocom.orgMax has submitted this change and it was merged. Change subject: Add test for gsm48_generate_mid_from_imsi() ...................................................................... Add test for gsm48_generate_mid_from_imsi() Change-Id: Ibe5c0831268c788ceecd10fd7b22ece6480da817 --- M tests/gsm0408/gsm0408_test.c M tests/gsm0408/gsm0408_test.ok 2 files changed, 14 insertions(+), 0 deletions(-) Approvals: Harald Welte: Looks good to me, approved Jenkins Builder: Verified diff --git a/tests/gsm0408/gsm0408_test.c b/tests/gsm0408/gsm0408_test.c index 77a8822..ab2dee4 100644 --- a/tests/gsm0408/gsm0408_test.c +++ b/tests/gsm0408/gsm0408_test.c @@ -194,10 +194,23 @@ printf("passed\n"); } +static void test_mid_from_imsi(void) +{ + char *imsi = "901700000004620"; + uint8_t buf[10], len; + + printf("Simple IMSI encoding test...."); + + len = gsm48_generate_mid_from_imsi(buf, imsi); + + printf("passed: [%u] %s\n", len, osmo_hexdump(buf, len)); +} + int main(int argc, char **argv) { test_bearer_cap(); test_mid_from_tmsi(); + test_mid_from_imsi(); test_ra_cap(); return EXIT_SUCCESS; diff --git a/tests/gsm0408/gsm0408_test.ok b/tests/gsm0408/gsm0408_test.ok index 83165fa..76a7940 100644 --- a/tests/gsm0408/gsm0408_test.ok +++ b/tests/gsm0408/gsm0408_test.ok @@ -1,6 +1,7 @@ Test `CSD 9600/V.110/transparent' passed Test `Speech, all codecs' passed Simple TMSI encoding test....passed +Simple IMSI encoding test....passed: [10] 17 08 99 10 07 00 00 00 64 02 Constructed RA: RA: MNC=121, MCC=77, LAC=666, RAC=5 RA: MNC=121, MCC=77, LAC=666, RAC=5 -- To view, visit https://gerrit.osmocom.org/6458 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ibe5c0831268c788ceecd10fd7b22ece6480da817 Gerrit-PatchSet: 1 Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Owner: Max <msuraev at sysmocom.de> Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: Max <msuraev at sysmocom.de>