Commit Graph

19 Commits (95e0bc094aeff15479b49d14f327fc95ac941153)

Author SHA1 Message Date
Bartek Szatkowski 60e7ef2ab7 RTOS: Thread: Rework and extend test suite 2017-06-29 13:04:13 +01:00
Bartek Szatkowski b793a3fb89 Update codebase for CMSIS5/RTX5
Update all of mbed-os to use RTX5.
2017-05-30 18:55:52 +01:00
Bartek Szatkowski 6a0fcd3c58 Reduce test overhead in preparation for CMSIS 5
Reduce RAM consumption so all tests can still be built when using
CMSIS/RTX5. Also reduce clutter by removing the per target stack size
defines in the tests.
2017-05-14 19:25:19 -05:00
Bartek Szatkowski ed41ebef9b Fix deprecated Thread ctor usage in RTOS tests
Thread spawning constructors are deprecated, start function should be
used instead.
2016-12-23 13:16:11 +00:00
Brian Daniels 3880e3a39d Limiting the thread stack for parallel threads test
Previously, the RTOS threads test was conditionally change the thread
stack size for all test cases based on the target. Now, it uses the
default stack size for all targets when threads are created serially,
and uses a 512 byte stack for the threads that are created in parallel.
2016-12-20 17:14:04 -06:00
Steven Cooreman b64fa3ae18 [EFR32] Reduce test stack sizes on EFR32 2016-11-08 18:33:42 +01:00
Rob Meades 4e808139d3 Add u-blox Sara-N target. 2016-10-15 12:06:29 +01:00
Mike Fiore 1b4a1b11e1 fix RTOS unit tests for MultiTech xDot platform - increase stack sizes in tests 2016-10-03 12:41:52 -05:00
Sam Grove 48ac4aec25 Merge pull request #2830 from jeromecoutant/PR_L073RZ
[STM32L073RZ] update OS5 RTOS tests
2016-09-28 15:00:27 -07:00
Sam Grove ab3e77f50a Merge pull request #2826 from jeromecoutant/PR_F410RB_THREAD
[STM32F410RB] update OS5 RTOS thread test
2016-09-28 14:59:29 -07:00
jeromecoutant 17c1d97f01 [STM32L073RZ] update OS5 RTOS tests 2016-09-27 16:58:23 +02:00
jeromecoutant 2db0938d67 [STM32F410RB] update OS5 RTOS thread test 2016-09-27 15:04:27 +02:00
jeromecoutant 52f70b06d0 [STM32F091RC] patch for tests-mbedmicro-rtos-mbed-threads 2016-09-27 10:59:34 +02:00
jeromecoutant c416a1286d [NUCLEO_F103RB] RTOS tests update
As this target has 20K RAM, default stack size needs to be tuned
2016-09-22 14:48:11 +02:00
jeromecoutant dc8957a046 STM32F070RB/STM32F072RB: issue with some mbedmicro-rtos-mbed tests
Status is now OK
2016-09-19 10:17:56 +02:00
Russ Butler abbd71da9b Add test case for thread self termination
Test that thread self termination works.
2016-09-07 17:33:33 -05:00
Vincent Coubard 2099da6d58 Define stack size of the threads spawned by this test.
This stack size is adjusted for NRF51 and NRF52 based targets.
2016-07-25 23:56:14 +01:00
Vincent Coubard 80ead8ca1a Fix behavior when mbed-os RTOS tests are build while the system is single
threaded.

For mbed micro, if the MBED_RTOS_SINGLE_THREAD is defined then the
compilation of the test will fail with the info
	[NOT_SUPPORTED] test not supported

This patch bring this behavior to mbed-os RTOS tests.
2016-07-25 11:41:00 +01:00
Brian Daniels a9eb39dee4 Adding test frameworks and test sources
This commit adds the following test frameworks:

- `greentea-client` (https://github.com/ARMmbed/greentea-client)
  - This framework provides a key-value api for communicating with the
    greentea test tool (https://github.com/ARMmbed/greentea)
- `unity` (https://github.com/ARMmbed/unity)
  - This framework provides test assert macros that can be used when
    writing test cases
- `utest` (https://github.com/ARMmbed/utest)
  - This framework allows you to execute a series of test cases with
    reporting that works with the greentea test tool
    (https://github.com/ARMmbed/greentea)

The following changes were made when bringing these frameworks into the
tree:

- References to `mbed_drivers/mbed.h` within utest's tests were migrated
  to `mbed.h`
- The yotta file `module.json` was removed from `greentea-client` and
  `unity`
  - `coverage.json` was also removed from `greentea-client`
- `.gitignore` and `.gitattributes` were removed from `greentea-client`
- Apache 2.0 license files were removed from `greentea-client`

This also brings in a number of tests that have been newly written or ported from various sources:

- `TESTS/integration` - Very basic tests, used to check if testing frameworks are working correctly
- `TESTS/mbed_drivers` (Thanks @PrzemekWirkus!) - TESTS ported from mbed OS 3.0 (https://github.com/ARMmbed/mbed-drivers)
- `TESTS/mbedmicro-mbed` (Thanks @PrzemekWirkus!) - Tests that weren't covered by `TESTS/mbed_drivers` that currently live in `libraries/tests/mbed`
- `TESTS/mbedmicro-rtos-mbed` (Thanks @PrzemekWirkus!) - Ported tests that currently live in `libraries/tests/rtos/mbed`
- `TESTS/storage_abstraction` (Thanks @rgrover!) - Tests for the storage_abstraction hal
2016-07-20 12:41:26 -05:00