Maciej Bocianski
56e4b584e1
threads test: increase threads heap size
2017-12-01 17:01:44 +00:00
Maciej Bocianski
c7ed937a87
threads test adjust to run on devices with small RAM
2017-12-01 17:01:44 +00:00
Maciej Bocianski
f8a4c07570
heap_and_stack test refactoring
2017-12-01 17:01:43 +00:00
Maciej Bocianski
7dc459a192
malloc test refactoring
2017-12-01 17:01:43 +00:00
Przemyslaw Stekiel
329dfc5ead
Move Timer test, modify ASERT macros, fix comments.
...
Move Timer test to TESTS/mbed_drivers/ directory which is more suitable.
Fix few comments which are incorrect.
Use more relevant ASERT macros.
2017-11-17 14:55:50 +00:00
Przemyslaw Stekiel
1886e8b954
Provide fix for Timer and LowPowerTimer tests (time accumulation).
...
LowPoterTimer test gives sometimes failed result while testing measured time accumulation. The check which verifies if total number of elapsed milliseconds is valid fails. Test assumes that delta value equal to 1 ms is sufficient for all test cases, which is not true since in case where time measurement is performed few times in sequence the measurement error also accumulates and 1 ms might be not enough. To solve this problem delta value for milliseconds tests must be updated.
2017-11-17 14:55:50 +00:00
Filip Jagodzinski
5ead8ecceb
Tests: RTOS: RtosTimer: Refactor for readability
2017-11-17 14:55:46 +00:00
Filip Jagodzinski
5fe9ee5571
Tests: RTOS: RtosTimer: Fix tests for NRF51_DK board
...
Additional delay is needed to prevent random failures when
waiting for a semaphore.
2017-11-17 14:55:45 +00:00
Maciej Bocianski
3aa46e6af0
small supplement for PR #5338
2017-11-17 14:55:45 +00:00
Maciej Bocianski
873d7d10fe
malloc test - reduce heap usage
2017-11-03 13:02:56 +00:00
Maciej Bocianski
3983d49b39
semaphore test: fix out of memory problem for NUCLEO_F070RB
2017-11-03 12:59:06 +00:00
Maciej Bocianski
687c1b623a
mail test: fix out of memory problem for NUCLEO_F070RB
2017-11-03 12:59:06 +00:00
Przemyslaw Stekiel
4b7b453135
Add MemoryPool test.
...
Add test for MemoryPool.
2017-11-03 12:59:06 +00:00
Przemyslaw Stekiel
3e56f41aa2
Remove redundant ISR test.
2017-10-20 16:18:30 +01:00
Maciej Bocianski
c9e589cc70
Move heap_and_stack tests
2017-10-20 16:18:30 +01:00
Maciej Bocianski
6adfa8fae8
Extends test set for EventFlags class
2017-10-20 16:18:30 +01:00
Filip Jagodzinski
91f648cd66
Tests: RTOS: RtosTimer: Fix tests on debug profile
...
Redefine error() as noop to fix tests being aborted when compiled
with -DMBED_TRAP_ERRORS_ENABLED=1.
2017-10-20 16:18:30 +01:00
Filip Jagodzinski
910025f19d
Tests: RTOS: RtosTimer: Add tests
2017-10-20 16:18:30 +01:00
Maciej Bocianski
0ab1272c7d
Basic test refactoring
2017-10-20 16:18:29 +01:00
Przemyslaw Stekiel
1c376d6475
Add test for Timer class.
2017-10-20 16:18:28 +01:00
Deepika
6323d18c87
Threads test require more time to finish
2017-09-24 21:34:29 +01:00
Russ Butler
614bbe7ae5
Remove direct use of us and lp ticker from tests
...
Remove the direct use of the microsecond and low power ticker from
the tests. This enforces that sleep mode is properly locked when
using timers. Furthermore, this prepares the codebase for new ticker
changes which allow differing clock frequencies and timer bit widths.
2017-09-24 21:34:28 +01:00
Jimmy Brisson
81437732dd
Merge pull request #4945 from maciejbocianski/mail_tests
...
Extends test set for Mail class
2017-09-05 11:16:27 -05:00
Maciej Bocianski
ae0b90f440
Extends test set for Mail class
2017-08-31 15:04:36 +02:00
Bartek Szatkowski
b0ad73ea41
RTOS: Changes to the EvenFlags API, doxy and tests
2017-08-15 13:33:32 +01:00
YarivCol
dfbcbddd9a
RTOS: add tests for EvenFlags class
2017-08-15 13:27:30 +01:00
Christopher Haster
4cad764162
Added copyright header to all tests
2017-08-07 12:02:33 -05:00
Jimmy Brisson
a81783e177
Merge pull request #4752 from bulislaw/queue_tests
...
RTOS: Queue tests & docs rework
2017-08-07 10:27:11 -05:00
Jimmy Brisson
c5c470e22c
Merge pull request #4729 from bulislaw/mutex_tests
...
RTOS: Mutex: Rework tests
2017-07-27 09:40:26 -05:00
Jimmy Brisson
160940b30e
Merge pull request #4682 from bulislaw/sem_tests
...
Test: RTOS: Semaphore: Rework tests
2017-07-17 11:06:48 -05:00
Jimmy Brisson
18bb6fdc1f
Merge pull request #4620 from bulislaw/thread_tests
...
Extend tests for RTOS Thread class
2017-07-17 11:03:34 -05:00
Bartek Szatkowski
fccfa7e2c0
Tests: RTOS: Queue: Rework and extend tests
2017-07-12 15:39:54 +01:00
Bartek Szatkowski
01c0cfd4f8
RTOS: Mutex: Rework tests
...
Add descriptions, fix small issues and timings.
2017-07-12 11:02:12 +01:00
Bartek Szatkowski
739a429820
Test: RTOS: Semaphore: Rework tests
2017-07-11 15:01:39 +01:00
Shrikant Tudavekar
8a4dbff8d6
validate base_time key received
...
This is required as greentea can send multiple __sync packets and cause the
to be in unexpected state.
2017-07-05 12:37:41 -05:00
Bartek Szatkowski
60e7ef2ab7
RTOS: Thread: Rework and extend test suite
2017-06-29 13:04:13 +01:00
Shrikant Tudavekar
73907259d9
Increased stack to 1024 from 768 and corrected assert.
...
1) mbed-os-tests-mbedmicro-rtos-mbed-basic tests use to fail when run in loop
after 20-25, This was because the stack used by test application was in range of
744-840 bytes. So bumped the stack size to 1024 bytes.
2) Corrected the assert and taken out the assert which was not required.
2017-06-22 18:25:39 -05:00
studavekar
12fe3415bc
Deprecate testcases related to time drift.
...
1) RtosTimer is been Deprecated by EventQueue.
2) wait_us testing can't be reliably tested.
2017-06-22 18:25:38 -05:00
studavekar
0f55193df8
Update timing tests to be robust.
...
In the new approach the host controls the device activity when the test
should start, finish and pass/fail status is send to device. Also deprecate
the test cases which can't accurately test.
2017-06-22 18:25:16 -05: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
07fc7aeb89
Remove deprecated Thread constructor usage
2017-05-16 10:54:30 +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
9377fa97c9
Rework RTOS mutex tests
2017-02-16 14:07:26 +00: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
Russ Butler
92d11df19d
Increase stack size in malloc test for Cortex-A
...
Increase the stack size used in the malloc test to prevent stack
overflows on Cortex-A devices.
2016-12-03 14:21:17 -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