This repository was archived by the owner on Aug 19, 2021. It is now read-only.
Add additional tests/profiling #4
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Five different tests are now available:
Compilation of mbed-events with mbedmicro/mbed.
Runtime tests in TESTS/events/queue/main.cpp.
mbed add https://github.com/mbedmicro/mbed mbed compile -t GCC_ARM -m K64F --source=. --source=TESTS/events/queue/ sudo pyocd-flashtool .build/K64F/GCC_ARM/*.bin mbedhtrun --skip-flashing --skip-reset --port=/dev/ttyACM0:9600
Strict c99 pedantic compilation of events-c. This should help prevent issues such as remove unvwanted return statment #3.
CFLAGS='-pedantic -Werror' make -C events-c
Runtime tests in events-c/tests/tests.c.
make -C events-c test
Profiling in events-c/tests/prof.c (viewable in travis.ci). More info here.
Every test is supported CI except for runtime tests for mbed-events due to hardware requirements.