From 344f488c477b7b26fc3930c97049acafecde0dc1 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Mon, 25 Mar 2019 10:02:58 +0100 Subject: [PATCH] test/obex : start obex builder test --- test/obex/.gitignore | 1 + test/obex/Makefile | 31 +++++++++++++++++++++++++++ test/obex/obex_message_builder_test.c | 18 ++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 test/obex/.gitignore create mode 100644 test/obex/Makefile create mode 100644 test/obex/obex_message_builder_test.c diff --git a/test/obex/.gitignore b/test/obex/.gitignore new file mode 100644 index 000000000..f9ed5a4fa --- /dev/null +++ b/test/obex/.gitignore @@ -0,0 +1 @@ +obex_message_builder_test \ No newline at end of file diff --git a/test/obex/Makefile b/test/obex/Makefile new file mode 100644 index 000000000..dd065451a --- /dev/null +++ b/test/obex/Makefile @@ -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 + diff --git a/test/obex/obex_message_builder_test.c b/test/obex/obex_message_builder_test.c new file mode 100644 index 000000000..e4131b31b --- /dev/null +++ b/test/obex/obex_message_builder_test.c @@ -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); +} \ No newline at end of file