nr rlc: let the tests be runnable with run_tests.sh
This commit is contained in:
committed by
Robert Schmidt
parent
5d0c453ac2
commit
70b66a8644
@@ -1,5 +1,5 @@
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-Wall -g --coverage -I. -I../../../..
|
CFLAGS=-Wall -g --coverage -I. -I../../../.. -D_STANDALONE_TESTING_
|
||||||
|
|
||||||
LIB=nr_rlc_entity.o nr_rlc_entity_am.o nr_rlc_entity_um.o nr_rlc_entity_tm.o \
|
LIB=nr_rlc_entity.o nr_rlc_entity_am.o nr_rlc_entity_um.o nr_rlc_entity_tm.o \
|
||||||
nr_rlc_pdu.o nr_rlc_sdu.o time_stat.o
|
nr_rlc_pdu.o nr_rlc_sdu.o time_stat.o
|
||||||
|
|||||||
@@ -10,7 +10,9 @@
|
|||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
|
#ifndef _STANDALONE_TESTING_
|
||||||
#include "common/utils/LOG/log.h"
|
#include "common/utils/LOG/log.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* GNB_AM <rx_maxsize> <tx_maxsize> <t_poll_retransmit> <t_reassembly>
|
* GNB_AM <rx_maxsize> <tx_maxsize> <t_poll_retransmit> <t_reassembly>
|
||||||
@@ -224,7 +226,10 @@ int test_main(void)
|
|||||||
int ue_recv_fails = 0;
|
int ue_recv_fails = 0;
|
||||||
int gnb_pdu_size = 1000;
|
int gnb_pdu_size = 1000;
|
||||||
int ue_pdu_size = 1000;
|
int ue_pdu_size = 1000;
|
||||||
|
|
||||||
|
#ifndef _STANDALONE_TESTING_
|
||||||
logInit();
|
logInit();
|
||||||
|
#endif
|
||||||
|
|
||||||
printf("TEST: start\n");
|
printf("TEST: start\n");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user