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/.
Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Review at https://gerrit.osmocom.org/7445
gsm0408_test: drop LAI encoding test
The LAI encoding test in gsm0408_test.c uses deprecated API, and a more
thorough test for LAI encoding has been added in libosmocore/test/gsm0408/.
Change-Id: I8a55d717ab15ba23943a2639accaadc33a4f731a
---
M tests/gsm0408/gsm0408_test.c
M tests/gsm0408/gsm0408_test.ok
2 files changed, 0 insertions(+), 28 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/45/7445/1
diff --git a/tests/gsm0408/gsm0408_test.c b/tests/gsm0408/gsm0408_test.c
index 5a4c168..0a2adcd 100644
--- a/tests/gsm0408/gsm0408_test.c
+++ b/tests/gsm0408/gsm0408_test.c
@@ -58,32 +58,6 @@
-/*
- * Test Location Area Identifier formatting. Table 10.5.3 of 04.08
- */
-static void test_location_area_identifier(void)
-{
- struct gsm48_loc_area_id lai48;
-
- printf("Testing test location area identifier\n");
-
- /*
- * Test the default/test setup. Coming from
- * bsc_hack.c dumps
- */
- gsm48_generate_lai(&lai48, 1, 1, 1);
- COMPARE(lai48.digits[0], ==, 0x00);
- COMPARE(lai48.digits[1], ==, 0xF1);
- COMPARE(lai48.digits[2], ==, 0x10);
- COMPARE(lai48.lac, ==, htons(0x0001));
-
- gsm48_generate_lai(&lai48, 602, 1, 15);
- COMPARE(lai48.digits[0], ==, 0x06);
- COMPARE(lai48.digits[1], ==, 0xF2);
- COMPARE(lai48.digits[2], ==, 0x10);
- COMPARE(lai48.lac, ==, htons(0x000f));
-}
-
static inline void gen(struct gsm_bts *bts, const char *s)
{
int r;
@@ -839,7 +813,6 @@
return EXIT_FAILURE;
}
- test_location_area_identifier();
test_mi_functionality();
test_si_range_helpers();
diff --git a/tests/gsm0408/gsm0408_test.ok b/tests/gsm0408/gsm0408_test.ok
index 00f87d5..ef9fea7 100644
--- a/tests/gsm0408/gsm0408_test.ok
+++ b/tests/gsm0408/gsm0408_test.ok
@@ -1,4 +1,3 @@
-Testing test location area identifier
Testing parsing and generating TMSI/IMSI
hex: 17 08 99 78 56 34 12 90 78 36
hex: 17 09 91 78 56 34 12 90 78 56 f4
--
To view, visit https://gerrit.osmocom.org/7445
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8a55d717ab15ba23943a2639accaadc33a4f731a
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>