attilio.dona at gmail.com
Thu Jan 11 07:59:35 CET 2018
Some time ago I managed to write some tests with Unity.
It is not difficult to integrate into RIOT build system.
As prerequisite you need ruby (sudo apt install ruby) and Unity installed
My opinionated recipe was to create the module libunity (and libcmock):
│ ├── Makefile
│ └── unity.c
│ ├── cmock.c
│ ├── cmock.h
│ ├── cmock_internals.h
│ └── Makefile
and to use a tests/Makefile.include like this for auto generating the main
APPLICATION = unity
BOARD ?= cc3200-launchxl
BURBA ?= $(CURDIR)/../..
RIOTBASE ?= $(BURBA)/RIOT
UNITY_ROOT ?= /opt/Unity-master
QUIET ?= 1
INCLUDES += -I$(CURDIR)/../../sys/mqtt -I$(BURBA)/sys/protobuf-c
USEMODULE += libunity
USEMODULE += libcmock
@rm -rf main.c
ruby $(UNITY_ROOT)/auto/generate_test_runner.rb $? $@
I have adjusted my old code to the current Unity version (NOTE: libcmock
module is not updated!), see:
On Wed, Jan 10, 2018 at 9:17 PM, Martine Lenders <mail at martine-lenders.eu>
> Hi Francisco,
> as far as I know Cenk looked into that a few months back. I don't know
> however what came out of that?
> 2018-01-10 21:10 GMT+01:00 Francisco Molina <francisco.molina at inria.cl>:
>> Following up with Baptiste question. Has anyone integrated other testing
>> tools into RIOT like Unity?. And how easily (or not) could this integration
>> be achieved, how much tinkering with the actual build system would have to
>> be done for this? Cheers!
>> devel mailing list
>> devel at riot-os.org
> devel mailing list
> devel at riot-os.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the devel