tests: Update busrsts_test build.

We've added logging calls to the bursts processing. Add logging facility
initializatoin to the test code.
This commit is contained in:
Alexander Chemeris 2015-07-20 20:04:02 -04:00
parent 3dc5c93e22
commit 7533cab4bc
2 changed files with 4 additions and 1 deletions

View File

@ -11,4 +11,4 @@ bursts_test_SOURCES = bursts_test.c \
$(top_builddir)/src/osmo-bts-trx/gsm0503_mapping.c \
$(top_builddir)/src/osmo-bts-trx/gsm0503_tables.c \
$(top_builddir)/src/osmo-bts-trx/gsm0503_parity.c
bursts_test_LDADD = $(LDADD)
bursts_test_LDADD = $(top_builddir)/src/common/libbts.a $(LDADD)

View File

@ -29,6 +29,7 @@
#include "../../src/osmo-bts-trx/gsm0503_coding.h"
#include <osmo-bts/logging.h>
#define ASSERT_TRUE(rc) \
if (!(rc)) { \
@ -445,6 +446,8 @@ 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]);