test/obex : start obex builder test

This commit is contained in:
Milanka Ringwald 2019-03-25 10:02:58 +01:00
parent b6b303d9a0
commit 344f488c47
3 changed files with 50 additions and 0 deletions

1
test/obex/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
obex_message_builder_test

31
test/obex/Makefile Normal file
View File

@ -0,0 +1,31 @@
CC=g++
# Requirements: cpputest.github.io
BTSTACK_ROOT = ../..
CPPUTEST_HOME = ${BTSTACK_ROOT}/test/cpputest
CFLAGS = -g -Wall -I. -I../ -I${BTSTACK_ROOT}/src -I${BTSTACK_ROOT}/include
LDFLAGS += -lCppUTest -lCppUTestExt
VPATH += ${BTSTACK_ROOT}/src/ble
VPATH += ${BTSTACK_ROOT}/src
VPATH += ${BTSTACK_ROOT}/platform/posix
COMMON = \
btstack_util.c \
hci_dump.c \
COMMON_OBJ = $(COMMON:.c=.o)
all: obex_message_builder_test
obex_message_builder_test: ${COMMON_OBJ} obex_message_builder_test.c
${CC} $^ ${CFLAGS} ${LDFLAGS} -o $@
test: all
./obex_message_builder_test
clean:
rm -fr obex_message_builder_test *.dSYM *.o

View File

@ -0,0 +1,18 @@
#include "CppUTest/TestHarness.h"
#include "CppUTest/CommandLineTestRunner.h"
#include "btstack_util.h"
#include "btstack_debug.h"
TEST_GROUP(OBEX_MESSAGE_BUILDER){
void setup(void){
}
};
TEST(OBEX_MESSAGE_BUILDER, Put){
}
int main (int argc, const char * argv[]){
return CommandLineTestRunner::RunAllTests(argc, argv);
}