[MERGED] osmo-bts[master]: Remove redundant test

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.org
Mon May 22 09:37:28 UTC 2017


Max has submitted this change and it was merged.

Change subject: Remove redundant test
......................................................................


Remove redundant test

After switching to libosmocoding there's no need in low-level bursts
test which is part of libosmocoding anyway.

Change-Id: Icb8caf62ac653a39a7a82f2225e8edeab7f5afb5
---
M .gitignore
M configure.ac
M tests/Makefile.am
D tests/bursts/Makefile.am
D tests/bursts/bursts_test.c
D tests/bursts/bursts_test.ok
M tests/testsuite.at
7 files changed, 1 insertion(+), 535 deletions(-)

Approvals:
  Vadim Yanitskiy: Looks good to me, but someone else must approve
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/.gitignore b/.gitignore
index b449f92..19ca274 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,7 +46,6 @@
 tests/cipher/cipher_test
 tests/sysmobts/sysmobts_test
 tests/misc/misc_test
-tests/bursts/bursts_test
 tests/handover/handover_test
 tests/tx_power/tx_power_test
 tests/testsuite
diff --git a/configure.ac b/configure.ac
index 72dd600..b848605 100644
--- a/configure.ac
+++ b/configure.ac
@@ -186,7 +186,6 @@
     tests/cipher/Makefile
     tests/sysmobts/Makefile
     tests/misc/Makefile
-    tests/bursts/Makefile
     tests/handover/Makefile
     tests/tx_power/Makefile
     Makefile)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 6635ae7..5b6f65e 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = paging cipher agch misc bursts handover tx_power
+SUBDIRS = paging cipher agch misc handover tx_power
 
 if ENABLE_SYSMOBTS
 SUBDIRS += sysmobts
diff --git a/tests/bursts/Makefile.am b/tests/bursts/Makefile.am
deleted file mode 100644
index 380b4b8..0000000
--- a/tests/bursts/Makefile.am
+++ /dev/null
@@ -1,8 +0,0 @@
-AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include -I$(OPENBSC_INCDIR)
-AM_CFLAGS = -Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOCODEC_CFLAGS) $(LIBOSMOCODING_CFLAGS)
-LDADD = $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(LIBOSMOCODEC_LIBS) $(LIBOSMOCODING_LIBS)
-noinst_PROGRAMS = bursts_test
-EXTRA_DIST = bursts_test.ok
-
-bursts_test_SOURCES = bursts_test.c
-bursts_test_LDADD = $(top_builddir)/src/common/libbts.a $(LDADD)
diff --git a/tests/bursts/bursts_test.c b/tests/bursts/bursts_test.c
deleted file mode 100644
index 9c2efdf..0000000
--- a/tests/bursts/bursts_test.c
+++ /dev/null
@@ -1,497 +0,0 @@
-/* (C) 2013 by Andreas Eversberg <jolly at eversberg.eu>
- * (C) 2015 by Alexander Chemeris <Alexander.Chemeris at fairwaves.co>
- *
- * All Rights Reserved
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-#include <stdio.h>
-#include <errno.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdlib.h>
-
-#include <osmocom/core/bits.h>
-#include <osmocom/core/utils.h>
-#include <osmocom/coding/gsm0503_coding.h>
-
-#include <osmo-bts/gsm_data.h>
-#include <osmo-bts/logging.h>
-
-#define ASSERT_TRUE(rc) \
-	if (!(rc)) { \
-		printf("Assert failed in %s:%d.\n",  \
-		       __FILE__, __LINE__);          \
-		abort();			     \
-	}
-
-/* set condition to 1, to show debugging */
-#define printd if (0) printf
-
-static int ubits2sbits(ubit_t *ubits, sbit_t *sbits, int count)
-{
-	int i;
-
-	for (i = 0; i < count; i++) {
-		if (*ubits == 0x23) {
-			ubits++;
-			sbits++;
-			continue;
-		}
-		if ((*ubits++) & 1)
-			*sbits++ = -127;
-		else
-			*sbits++ = 127;
-	}
-
-	return count;
-}
-
-static void test_xcch(uint8_t *l2)
-{
-	uint8_t result[23];
-	ubit_t bursts_u[116 * 4];
-	sbit_t bursts_s[116 * 4];
-	int n_errors, n_bits_total;
-
-	printd("Encoding: %s\n", osmo_hexdump(l2, 23));
-
-	/* encode */
-	gsm0503_xcch_encode(bursts_u, l2);
-
-	printd("U-Bits:\n");
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u, 57),
-		bursts_u[57], bursts_u[58]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 116, 57),
-		bursts_u[57 + 116], bursts_u[58 + 116]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 116, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 232, 57),
-		bursts_u[57 + 232], bursts_u[58 + 232]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 232, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 348, 57),
-		bursts_u[57 + 348], bursts_u[58 + 348]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 348, 57));
-	ubits2sbits(bursts_u, bursts_s, 116 * 4);
-	printd("S-Bits:\n");
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s, 57),
-		(uint8_t)bursts_s[57], (uint8_t)bursts_s[58]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 116, 57),
-		(uint8_t)bursts_s[57 + 116], (uint8_t)bursts_s[58 + 116]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 116, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 232, 57),
-		(uint8_t)bursts_s[57 + 232], (uint8_t)bursts_s[58 + 232]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 232, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 348, 57),
-		(uint8_t)bursts_s[57 + 348], (uint8_t)bursts_s[58 + 348]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 348, 57));
-
-	/* destroy */
-	memset(bursts_s, 0, 30);
-	memset(bursts_s + 116, 0, 30);
-
-	/* decode */
-	gsm0503_xcch_decode(result, bursts_s, &n_errors, &n_bits_total);
-
-	ASSERT_TRUE(n_bits_total == 456);
-
-	printd("Decoded: %s\n", osmo_hexdump(result, 23));
-	printf("xcch_decode: n_errors=%d n_bits_total=%d ber=%.2f\n",
-		n_errors, n_bits_total, (float)n_errors/n_bits_total);
-
-	ASSERT_TRUE(!memcmp(l2, result, 23));
-
-	printd("\n");
-}
-
-static void test_rach(uint8_t bsic, uint8_t ra)
-{
-	uint8_t result;
-	ubit_t bursts_u[36];
-	sbit_t bursts_s[36];
-
-	printd("Encoding: %02x\n", ra);
-
-	/* encode */
-	gsm0503_rach_encode(bursts_u, &ra, bsic);
-
-	printd("U-Bits:\n");
-	printd("%s\n", osmo_hexdump(bursts_u, 36));
-	ubits2sbits(bursts_u, bursts_s, 36);
-	printd("S-Bits:\n");
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s, 36));
-
-	/* destroy */
-	memset(bursts_s + 6, 0, 8);
-
-	/* decode */
-	gsm0503_rach_decode(&result, bursts_s, bsic);
-
-	printd("Decoded: %02x\n", result);
-
-	ASSERT_TRUE(ra == result);
-
-	printd("\n");
-}
-
-static void test_sch(uint8_t *info)
-{
-	uint8_t result[4];
-	ubit_t bursts_u[78];
-	sbit_t bursts_s[78];
-
-	/* zero bits 25 and above */
-	info[3] &= 1;
-	result[3] = 0;
-
-	printd("Encoding: %s\n", osmo_hexdump(info, 4));
-
-	/* encode */
-	gsm0503_sch_encode(bursts_u, info);
-
-	printd("U-Bits:\n");
-	printd("%s\n", osmo_hexdump(bursts_u, 78));
-	ubits2sbits(bursts_u, bursts_s, 78);
-	printd("S-Bits:\n");
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s, 78));
-
-	/* destroy */
-	memset(bursts_s + 6, 0, 10);
-
-	/* decode */
-	gsm0503_sch_decode(result, bursts_s);
-
-	printd("Decoded: %s\n", osmo_hexdump(result, 4));
-
-	ASSERT_TRUE(!memcmp(info, result, 4));
-
-	printd("\n");
-}
-
-static void test_fr(uint8_t *speech, int len)
-{
-	uint8_t result[GSM_FR_BYTES];
-	ubit_t bursts_u[116 * 8];
-	sbit_t bursts_s[116 * 8];
-	int n_errors, n_bits_total;
-	int rc;
-
-	memset(bursts_u, 0x23, sizeof(bursts_u));
-	memset(bursts_s, 0, sizeof(bursts_s));
-
-	printd("Encoding: %s\n", osmo_hexdump(speech, len));
-
-	/* encode */
-	gsm0503_tch_fr_encode(bursts_u, speech, len, 1);
-
-	printd("U-Bits:\n");
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u, 57),
-		bursts_u[57], bursts_u[58]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 116, 57),
-		bursts_u[57 + 116], bursts_u[58 + 116]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 116, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 232, 57),
-		bursts_u[57 + 232], bursts_u[58 + 232]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 232, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 348, 57),
-		bursts_u[57 + 348], bursts_u[58 + 348]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 348, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 464, 57),
-		bursts_u[57 + 464], bursts_u[58 + 464]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 464, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 580, 57),
-		bursts_u[57 + 580], bursts_u[58 + 580]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 580, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 696, 57),
-		bursts_u[57 + 696], bursts_u[58 + 696]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 696, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 812, 57),
-		bursts_u[57 + 812], bursts_u[58 + 812]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 812, 57));
-	ubits2sbits(bursts_u, bursts_s, 116 * 8);
-	printd("S-Bits:\n");
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s, 57),
-		(uint8_t)bursts_s[57], (uint8_t)bursts_s[58]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 116, 57),
-		(uint8_t)bursts_s[57 + 116], (uint8_t)bursts_s[58 + 116]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 116, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 232, 57),
-		(uint8_t)bursts_s[57 + 232], (uint8_t)bursts_s[58 + 232]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 232, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 348, 57),
-		(uint8_t)bursts_s[57 + 348], (uint8_t)bursts_s[58 + 348]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 348, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 464, 57),
-		(uint8_t)bursts_s[57 + 464], (uint8_t)bursts_s[58 + 464]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 464, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 580, 57),
-		(uint8_t)bursts_s[57 + 580], (uint8_t)bursts_s[58 + 580]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 580, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 696, 57),
-		(uint8_t)bursts_s[57 + 696], (uint8_t)bursts_s[58 + 696]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 696, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 812, 57),
-		(uint8_t)bursts_s[57 + 812], (uint8_t)bursts_s[58 + 812]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 812, 57));
-
-	/* destroy */
-	memset(bursts_s + 6, 0, 20);
-
-	/* decode */
-	rc = gsm0503_tch_fr_decode(result, bursts_s, 1, len == 31, &n_errors, &n_bits_total);
-
-	ASSERT_TRUE(rc == len);
-
-	printd("Decoded: %s\n", osmo_hexdump(result, len));
-	printf("tch_fr_decode: n_errors=%d n_bits_total=%d ber=%.2f\n",
-		n_errors, n_bits_total, (float)n_errors/n_bits_total);
-
-	ASSERT_TRUE(!memcmp(speech, result, len));
-
-	printd("\n");
-}
-
-static void test_hr(uint8_t *speech, int len)
-{
-	uint8_t result[23];
-	ubit_t bursts_u[116 * 6];
-	sbit_t bursts_s[116 * 6];
-	int n_errors, n_bits_total;
-	int rc;
-
-	memset(bursts_u, 0x23, sizeof(bursts_u));
-	memset(bursts_s, 0, sizeof(bursts_s));
-
-	printd("Encoding: %s\n", osmo_hexdump(speech, len));
-
-	/* encode */
-	gsm0503_tch_hr_encode(bursts_u, speech, len);
-
-	printd("U-Bits:\n");
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u, 57),
-		bursts_u[57], bursts_u[58]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 116, 57),
-		bursts_u[57 + 116], bursts_u[58 + 116]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 116, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 232, 57),
-		bursts_u[57 + 232], bursts_u[58 + 232]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 232, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 348, 57),
-		bursts_u[57 + 348], bursts_u[58 + 348]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 348, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 464, 57),
-		bursts_u[57 + 464], bursts_u[58 + 464]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 464, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 580, 57),
-		bursts_u[57 + 580], bursts_u[58 + 580]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 580, 57));
-	ubits2sbits(bursts_u, bursts_s, 116 * 6);
-	printd("S-Bits:\n");
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s, 57),
-		(uint8_t)bursts_s[57], (uint8_t)bursts_s[58]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 116, 57),
-		(uint8_t)bursts_s[57 + 116], (uint8_t)bursts_s[58 + 116]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 116, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 232, 57),
-		(uint8_t)bursts_s[57 + 232], (uint8_t)bursts_s[58 + 232]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 232, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 348, 57),
-		(uint8_t)bursts_s[57 + 348], (uint8_t)bursts_s[58 + 348]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 348, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 464, 57),
-		(uint8_t)bursts_s[57 + 464], (uint8_t)bursts_s[58 + 464]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 464, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 580, 57),
-		(uint8_t)bursts_s[57 + 580], (uint8_t)bursts_s[58 + 580]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 580, 57));
-
-	/* destroy */
-	memset(bursts_s + 6, 0, 20);
-
-	/* decode */
-	rc = gsm0503_tch_hr_decode(result, bursts_s, 0, &n_errors, &n_bits_total);
-
-	ASSERT_TRUE(rc == len);
-
-	printd("Decoded: %s\n", osmo_hexdump(result, len));
-	printf("tch_hr_decode: n_errors=%d n_bits_total=%d ber=%.2f\n",
-		n_errors, n_bits_total, (float)n_errors/n_bits_total);
-
-	ASSERT_TRUE(!memcmp(speech, result, len));
-
-	printd("\n");
-}
-
-static void test_pdtch(uint8_t *l2, int len)
-{
-	uint8_t result[len];
-	ubit_t bursts_u[116 * 4];
-	sbit_t bursts_s[116 * 4];
-	int n_errors, n_bits_total;
-	int rc;
-
-	memset(result, 0xff, len);
-
-	/* zero the not coded tail bits */
-	switch (len) {
-	case 34:
-	case 54:
-		l2[len - 1] &= 0x7f;
-		result[len - 1] &= 0x7f;
-		break;
-	case 40:
-		l2[len - 1] &= 0x07;
-		result[len - 1] &= 0x07;
-		break;
-	}
-
-	printd("Encoding: %s\n", osmo_hexdump(l2, len));
-
-	/* encode */
-	gsm0503_pdtch_encode(bursts_u, l2, len);
-
-	printd("U-Bits:\n");
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u, 57),
-		bursts_u[57], bursts_u[58]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 116, 57),
-		bursts_u[57 + 116], bursts_u[58 + 116]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 116, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 232, 57),
-		bursts_u[57 + 232], bursts_u[58 + 232]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 232, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump(bursts_u + 348, 57),
-		bursts_u[57 + 348], bursts_u[58 + 348]);
-	printd("%s\n", osmo_hexdump(bursts_u + 59 + 348, 57));
-	ubits2sbits(bursts_u, bursts_s, 116 * 4);
-	printd("S-Bits:\n");
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s, 57),
-		(uint8_t)bursts_s[57], (uint8_t)bursts_s[58]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 116, 57),
-		(uint8_t)bursts_s[57 + 116], (uint8_t)bursts_s[58 + 116]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 116, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 232, 57),
-		(uint8_t)bursts_s[57 + 232], (uint8_t)bursts_s[58 + 232]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 232, 57));
-	printd("%s %02x  %02x  ", osmo_hexdump((uint8_t *)bursts_s + 348, 57),
-		(uint8_t)bursts_s[57 + 348], (uint8_t)bursts_s[58 + 348]);
-	printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 348, 57));
-
-	/* decode */
-	rc = gsm0503_pdtch_decode(result, bursts_s, NULL, &n_errors, &n_bits_total);
-
-	ASSERT_TRUE(rc == len);
-
-	printd("Decoded: %s\n", osmo_hexdump(result, len));
-	printf("pdtch_decode: n_errors=%d n_bits_total=%d ber=%.2f\n",
-		n_errors, n_bits_total, (float)n_errors/n_bits_total);
-
-	ASSERT_TRUE(!memcmp(l2, result, len));
-
-	printd("\n");
-}
-
-uint8_t test_l2[][23] = {
-	/* dummy frame */
-	{ 0x03, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
-	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
-	/* random frame */
-	{ 0xa3, 0xaf, 0x5f, 0xc6, 0x36, 0x43, 0x44, 0xab,
-	0xd9, 0x6d, 0x7d, 0x62, 0x24, 0xc9, 0xd2, 0x92,
-	0xfa, 0x27, 0x5d, 0x71, 0x7a, 0x59, 0xa8 },
-	/* jolly frame */
-	{ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
-	0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10,
-	0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17 },
-};
-
-uint8_t test_macblock[][54] = {
-	/* random frame */
-	{ 0xa3, 0xaf, 0x5f, 0xc6, 0x36, 0x43, 0x44, 0xab,
-	0xd9, 0x6d, 0x7d, 0x62, 0x24, 0xc9, 0xd2, 0x92,
-	0xfa, 0x27, 0x5d, 0x71, 0x7a, 0x59, 0xa8, 0x42,
-	0xa3, 0xaf, 0x5f, 0xc6, 0x36, 0x43, 0x44, 0xab,
-	0xa3, 0xaf, 0x5f, 0xc6, 0x36, 0x43, 0x44, 0xab,
-	0xd9, 0x6d, 0x7d, 0x62, 0x24, 0xc9, 0xd2, 0x92,
-	0xfa, 0x27, 0x5d, 0x71, 0x7a, 0xa8 },
-	/* jolly frame */
-	{ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
-	0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10,
-	0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17 },
-};
-
-uint8_t test_speech_fr[GSM_FR_BYTES];
-uint8_t test_speech_efr[GSM_EFR_BYTES];
-uint8_t test_speech_hr[15];
-
-int main(int argc, char **argv)
-{
-	int i;
-
-	bts_log_init(NULL);
-
-	for (i = 0; i < sizeof(test_l2) / sizeof(test_l2[0]); i++)
-		test_xcch(test_l2[i]);
-
-	for (i = 0; i < 256; i++) {
-		test_rach(0x3f, i);
-		test_rach(0x00, i);
-		test_rach(0x1a, i);
-	}
-
-	for (i = 0; i < sizeof(test_l2) / sizeof(test_l2[0]); i++)
-		test_sch(test_l2[i]);
-
-	for (i = 0; i < sizeof(test_speech_fr); i++)
-		test_speech_fr[i] = i;
-	test_speech_fr[0] = 0xd0;
-	test_fr(test_speech_fr, sizeof(test_speech_fr));
-
-	for (i = 0; i < sizeof(test_speech_efr); i++)
-		test_speech_efr[i] = i;
-	test_speech_efr[0] = 0xc0;
-	test_fr(test_speech_efr, sizeof(test_speech_efr));
-
-	for (i = 0; i < sizeof(test_l2) / sizeof(test_l2[0]); i++)
-		test_fr(test_l2[i], sizeof(test_l2[0]));
-
-	for (i = 0; i < sizeof(test_speech_hr); i++)
-		test_speech_hr[i] = i*17;
-	test_speech_hr[0] = 0x00;
-	test_hr(test_speech_hr, sizeof(test_speech_hr));
-
-	for (i = 0; i < sizeof(test_l2) / sizeof(test_l2[0]); i++)
-		test_hr(test_l2[i], sizeof(test_l2[0]));
-
-	for (i = 0; i < sizeof(test_macblock) / sizeof(test_macblock[0]); i++) {
-		test_pdtch(test_macblock[i], 23);
-		test_pdtch(test_macblock[i], 34);
-		test_pdtch(test_macblock[i], 40);
-		test_pdtch(test_macblock[i], 54);
-	}
-
-	printf("Success\n");
-
-	return 0;
-}
-
diff --git a/tests/bursts/bursts_test.ok b/tests/bursts/bursts_test.ok
deleted file mode 100644
index 5030e4d..0000000
--- a/tests/bursts/bursts_test.ok
+++ /dev/null
@@ -1,21 +0,0 @@
-xcch_decode: n_errors=60 n_bits_total=456 ber=0.13
-xcch_decode: n_errors=60 n_bits_total=456 ber=0.13
-xcch_decode: n_errors=60 n_bits_total=456 ber=0.13
-tch_fr_decode: n_errors=8 n_bits_total=378 ber=0.02
-tch_fr_decode: n_errors=8 n_bits_total=378 ber=0.02
-tch_fr_decode: n_errors=10 n_bits_total=456 ber=0.02
-tch_fr_decode: n_errors=10 n_bits_total=456 ber=0.02
-tch_fr_decode: n_errors=10 n_bits_total=456 ber=0.02
-tch_hr_decode: n_errors=10 n_bits_total=211 ber=0.05
-tch_hr_decode: n_errors=10 n_bits_total=456 ber=0.02
-tch_hr_decode: n_errors=10 n_bits_total=456 ber=0.02
-tch_hr_decode: n_errors=10 n_bits_total=456 ber=0.02
-pdtch_decode: n_errors=0 n_bits_total=456 ber=0.00
-pdtch_decode: n_errors=132 n_bits_total=588 ber=0.22
-pdtch_decode: n_errors=220 n_bits_total=676 ber=0.33
-pdtch_decode: n_errors=0 n_bits_total=444 ber=0.00
-pdtch_decode: n_errors=0 n_bits_total=456 ber=0.00
-pdtch_decode: n_errors=132 n_bits_total=588 ber=0.22
-pdtch_decode: n_errors=220 n_bits_total=676 ber=0.33
-pdtch_decode: n_errors=0 n_bits_total=444 ber=0.00
-Success
diff --git a/tests/testsuite.at b/tests/testsuite.at
index bfc9bad..fed0018 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -25,12 +25,6 @@
 AT_CHECK([$OSMO_QEMU $abs_top_builddir/tests/misc/misc_test], [], [expout], [ignore])
 AT_CLEANUP
 
-AT_SETUP([bursts])
-AT_KEYWORDS([bursts])
-cat $abs_srcdir/bursts/bursts_test.ok > expout
-AT_CHECK([$abs_top_builddir/tests/bursts/bursts_test], [], [expout], [ignore])
-AT_CLEANUP
-
 AT_SETUP([handover])
 AT_KEYWORDS([handover])
 cat $abs_srcdir/handover/handover_test.ok > expout

-- 
To view, visit https://gerrit.osmocom.org/2683
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Icb8caf62ac653a39a7a82f2225e8edeab7f5afb5
Gerrit-PatchSet: 2
Gerrit-Project: osmo-bts
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>
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>



More information about the gerrit-log mailing list