From fcd6e4c154d7780f763493185ed80d3d84e4acdf Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Tue, 15 Jul 2014 17:12:05 +0200 Subject: [PATCH] tests: add libcoap compilation test --- tests/test_coap/Makefile | 12 ++++++++++++ tests/test_coap/main.c | 23 +++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tests/test_coap/Makefile create mode 100644 tests/test_coap/main.c diff --git a/tests/test_coap/Makefile b/tests/test_coap/Makefile new file mode 100644 index 0000000000..729a028417 --- /dev/null +++ b/tests/test_coap/Makefile @@ -0,0 +1,12 @@ +APPLICATION = test_coap +include ../Makefile.tests_common + +BOARD_BLACKLIST := arduino-due chronos mbed_lpc1768 msb-430 msb-430h qemu-i386 telosb wsn430-v1_3b wsn430-v1_4 udoo z1 +BOARD_INSUFFICIENT_RAM := redbee-econotag +#MSP boards: no assert.h +#rest: no radio + +USEMODULE += defaulttransceiver +USEPKG += libcoap + +include $(RIOTBASE)/Makefile.include diff --git a/tests/test_coap/main.c b/tests/test_coap/main.c new file mode 100644 index 0000000000..ec571b47f3 --- /dev/null +++ b/tests/test_coap/main.c @@ -0,0 +1,23 @@ +/* + * Copyright (C) 2014 Freie Universität Berlin + * + * This file is subject to the terms and conditions of the GNU Lesser General + * Public License. See the file LICENSE in the top level directory for more + * details. + */ + +/** + * @file + * @brief Check if the libcoap package builds. + * + * @author Ludwig Ortmann + * + */ + +#include + +int main(void) +{ + printf("Libcoap compiled!"); + return 0; +}