Corrected unit test builds on Linux.

This commit is contained in:
skarg
2007-08-31 22:05:02 +00:00
parent d2fa7d44c6
commit 8aa905ce68
5 changed files with 13 additions and 7 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ BASEDIR = .
CFLAGS = -Wall -I. -Itest -DTEST -DTEST_ADDRESS -g
SRCS = address.c \
test/ctest.c
bacaddr.c \
test/ctest.c
OBJS = ${SRCS:.c=.o}
+1 -1
View File
@@ -6,7 +6,7 @@
/* declare a single physical layer using your compiler define.
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
#endif
+1 -1
View File
@@ -4,7 +4,7 @@ BASEDIR = .
#CFLAGS = -Wall -I.
# -g for debugging with gdb
#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
SRCS = bacdcode.c \
+8 -4
View File
@@ -1237,9 +1237,14 @@ uint16_t MSTP_Put_Receive(
/* for the MS/TP state machine to use for getting data to send */
/* Return: amount of PDU data */
uint16_t MSTP_Get_Send(
uint8_t src, /* source MS/TP address for creating packet */
uint8_t * pdu, /* data to send */
uint16_t max_pdu, /* amount of space available */
volatile struct mstp_port_struct_t *mstp_port,
unsigned timeout) /* milliseconds to wait for a packet */
{
return 0;
}
uint16_t MSTP_Get_Reply(
volatile struct mstp_port_struct_t *mstp_port,
unsigned timeout) /* milliseconds to wait for a packet */
{
return 0;
@@ -1266,7 +1271,6 @@ void testReceiveNodeFSM(Test * pTest)
size_t i; /* used to loop through the message bytes */
uint8_t buffer[MAX_MPDU] = { 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.InputBufferSize = sizeof(RxBuffer);
+1
View File
@@ -6,6 +6,7 @@ INCLUDES = -I. -Idemo/object -Idemo/handler -Itest -Iports/linux
CFLAGS = -Wall $(INCLUDES) $(DEFINES) -g
SRCS = address.c \
bacaddr.c \
bacdcode.c \
bacint.c \
bacstr.c \