mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-16 22:21:21 +00:00
test/obex : start obex builder test
This commit is contained in:
parent
b6b303d9a0
commit
344f488c47
1
test/obex/.gitignore
vendored
Normal file
1
test/obex/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
obex_message_builder_test
|
31
test/obex/Makefile
Normal file
31
test/obex/Makefile
Normal 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
|
||||
|
18
test/obex/obex_message_builder_test.c
Normal file
18
test/obex/obex_message_builder_test.c
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user