Corrected unit test builds on Linux.
This commit is contained in:
@@ -7,7 +7,8 @@ BASEDIR = .
|
|||||||
CFLAGS = -Wall -I. -Itest -DTEST -DTEST_ADDRESS -g
|
CFLAGS = -Wall -I. -Itest -DTEST -DTEST_ADDRESS -g
|
||||||
|
|
||||||
SRCS = address.c \
|
SRCS = address.c \
|
||||||
test/ctest.c
|
bacaddr.c \
|
||||||
|
test/ctest.c
|
||||||
|
|
||||||
OBJS = ${SRCS:.c=.o}
|
OBJS = ${SRCS:.c=.o}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
/* declare a single physical layer using your compiler define.
|
/* declare a single physical layer using your compiler define.
|
||||||
see datalink.h for possible defines. */
|
see datalink.h for possible defines. */
|
||||||
#if !(defined(BACDL_ETHERNET) || defined(BACDL_ARCNET) || defined(BACDL_MSTP) || defined(BACDL_BIP))
|
#if !(defined(BACDL_ETHERNET) || defined(BACDL_ARCNET) || defined(BACDL_MSTP) || defined(BACDL_BIP) || defined(BACDL_TEST))
|
||||||
#define BACDL_BIP
|
#define BACDL_BIP
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ BASEDIR = .
|
|||||||
#CFLAGS = -Wall -I.
|
#CFLAGS = -Wall -I.
|
||||||
# -g for debugging with gdb
|
# -g for debugging with gdb
|
||||||
#CFLAGS = -Wall -I. -g
|
#CFLAGS = -Wall -I. -g
|
||||||
CFLAGS = -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_DEVICE -g
|
CFLAGS = -g -Wall -I. -Itest -DBIG_ENDIAN=0 -DTEST -DTEST_DEVICE -DBACDL_TEST -DMAX_TSM_TRANSACTIONS=0
|
||||||
|
|
||||||
# NOTE: this file is normally called by the unittest.sh from up directory
|
# NOTE: this file is normally called by the unittest.sh from up directory
|
||||||
SRCS = bacdcode.c \
|
SRCS = bacdcode.c \
|
||||||
|
|||||||
+8
-4
@@ -1237,9 +1237,14 @@ uint16_t MSTP_Put_Receive(
|
|||||||
/* for the MS/TP state machine to use for getting data to send */
|
/* for the MS/TP state machine to use for getting data to send */
|
||||||
/* Return: amount of PDU data */
|
/* Return: amount of PDU data */
|
||||||
uint16_t MSTP_Get_Send(
|
uint16_t MSTP_Get_Send(
|
||||||
uint8_t src, /* source MS/TP address for creating packet */
|
volatile struct mstp_port_struct_t *mstp_port,
|
||||||
uint8_t * pdu, /* data to send */
|
unsigned timeout) /* milliseconds to wait for a packet */
|
||||||
uint16_t max_pdu, /* amount of space available */
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint16_t MSTP_Get_Reply(
|
||||||
|
volatile struct mstp_port_struct_t *mstp_port,
|
||||||
unsigned timeout) /* milliseconds to wait for a packet */
|
unsigned timeout) /* milliseconds to wait for a packet */
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@@ -1266,7 +1271,6 @@ void testReceiveNodeFSM(Test * pTest)
|
|||||||
size_t i; /* used to loop through the message bytes */
|
size_t i; /* used to loop through the message bytes */
|
||||||
uint8_t buffer[MAX_MPDU] = { 0 };
|
uint8_t buffer[MAX_MPDU] = { 0 };
|
||||||
uint8_t data[MAX_PDU] = { 0 };
|
uint8_t data[MAX_PDU] = { 0 };
|
||||||
uint8_t dummy[8] = {1,2,3,4,5,6,7,8};
|
|
||||||
|
|
||||||
mstp_port.InputBuffer = &RxBuffer[0];
|
mstp_port.InputBuffer = &RxBuffer[0];
|
||||||
mstp_port.InputBufferSize = sizeof(RxBuffer);
|
mstp_port.InputBufferSize = sizeof(RxBuffer);
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ INCLUDES = -I. -Idemo/object -Idemo/handler -Itest -Iports/linux
|
|||||||
CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
|
CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
|
||||||
|
|
||||||
SRCS = address.c \
|
SRCS = address.c \
|
||||||
|
bacaddr.c \
|
||||||
bacdcode.c \
|
bacdcode.c \
|
||||||
bacint.c \
|
bacint.c \
|
||||||
bacstr.c \
|
bacstr.c \
|
||||||
|
|||||||
Reference in New Issue
Block a user