Commit Graph

204 Commits (34b61d1612aaec2e5d61a8a43c9764bc2fe8aac0)

Author SHA1 Message Date
Maciej Bocianski bc38af85b0 Extends test set for Ticker class (round 2) 2017-11-17 14:55:50 +00:00
Przemyslaw Stekiel 7efa2f78b9 Provide fix for Issue #5468.
Issue: https://github.com/ARMmbed/mbed-os/issues/5468
Increased DELTA value for Timer and Low Power Timer tests.
2017-11-17 14:55:50 +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
Sarah Marsh 337a506f89 Limit size of equeue for sigio net test 2017-11-17 14:55:49 +00:00
Maciej Bocianski 69df251916 event queue test: fix out of memory problem for NUCLEO_F070RB 2017-11-17 14:55:46 +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 31feb1d2b3 Test set for LowPowerTicker class 2017-11-03 13:02:56 +00:00
Maciej Bocianski 7db5595f2e race test: fix out of memory problem for NUCLEO_F070RB 2017-11-03 12:59:07 +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 6e0cd31525 Add Low Power Timer test. 2017-10-20 16:18:28 +01:00
Martin Kojtal 1f258ce367 Test: deepsleep() API replacement
Use sleep() as entry function + check to be certain we
are entering deepsleep when required by test (should be allowed)
2017-10-20 16:18:28 +01:00
Przemyslaw Stekiel 1c376d6475 Add test for Timer class. 2017-10-20 16:18:28 +01:00
Shrikant Tudavekar d1e46c1035 fix echo test handshake and reduce uart load
1) if we receive more than one __sync, previous handshake would consider
it as echo_count and try to decode the value. Now we skip superfluous __sync.

2) reduce the uart load produced by the test, as we are heavily running tests in
parallel and not one-to-one this update was required.
2017-10-20 16:18:28 +01:00
Seppo Takalo 609cd3bb88 Add license texts 2017-10-20 16:18:27 +01:00
Seppo Takalo 1d8249133d Add Doxygen documentation for testcases. 2017-10-20 16:18:27 +01:00
Seppo Takalo ee9d04e248 Fix builds for targets without wifi or without mbed_app.json 2017-10-20 16:18:27 +01:00
Seppo Takalo 8cb7c14f90 Update help text 2017-10-20 16:18:27 +01:00
Seppo Takalo b2a884dcec Fix includes.
Cannot include header file witin a function (without severe side effects)
2017-10-20 16:18:27 +01:00
Seppo Takalo 6f118da42c Update template mbed_app.json 2017-10-20 16:18:27 +01:00
Seppo Takalo 52b9716ad2 Set timeout to 4 minutes.
Wifi connections and scanning takes long time. 2 minutes might not be enough.
2017-10-20 16:18:27 +01:00
Seppo Takalo 05439e0a2e Implement functional Wifi tests
Implement 100% function coverage for WifiInterface as specified
in "Wifi test plan"
2017-10-20 16:18:27 +01:00
Russ Butler 06fa1dbbef Prevent use of deleted ticker in Ticker test
In test_case_2x_callbacks two tickers are setup to repeatedly
reschedule each other. When these tickers are deleted this
rescheduling is still occurring and can lead to a deleted ticker
being scheduled.

When this happens the following error message is displayed:
Thread 0x0 error -6: Not allowed in ISR context

Note - this problem was not detected by CI since the test reported
the correct results back to the host test and only experienced this
error on tear down.

This problem can be reproduced on an nrf51 by first building the ticker
test with:
"mbed test -t GCC_ARM -m NRF51_DK -n tests-mbed_drivers-ticker
--compile -DMBED_TRAP_ERRORS_ENABLED=1
-DMBED_HEAP_STATS_ENABLED=1 -DMBED_STACK_STATS_ENABLED=1"

And then running testing with:
"mbed test -t GCC_ARM -m NRF51_DK -n tests-mbed_drivers-ticker --run"
2017-10-20 16:18:27 +01:00
Russ Butler 10217f71c4 Add a test to validate locking
Test that DeepSleepLock and Timer lock deep sleep at the correct time
and do no leave sleep locked after they are destroted.
2017-10-06 14:12:48 +01:00
Russ Butler c4822ecd07 Revert #5006 - Extends test set for Ticker class
This commit reverts commit c1c0f1ea57
because it causes nightly builds to fail. This is because extra tests
added in tests-mbed_drivers-ticker fail on some targets, such as the
KL46Z, MAX32625MBED, MAX32630FTHR, NCS36510, NRF51 and NRF52_DK.
2017-10-06 14:12:47 +01:00
Maciej Bocianski 617341a797 Extends test set for Ticker class 2017-10-06 14:12:46 +01:00
Sarah Marsh 47372eeaec update domain name to os.mbed.com 2017-10-06 14:12:46 +01:00
Sarah Marsh 135061c051 Add copyright headers and use mbed error to skip tests without network config files 2017-10-06 14:12:45 +01:00
Sarah Marsh d7080f49d4 Add netsocket tests 2017-10-06 14:12:45 +01:00
Deepika ba0e6d6a4c IAR heap stats added 2017-09-24 21:34:29 +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
Shrikant Tudavekar 1cb41e9715 use default macro for armcc 2017-09-12 01:00:45 -05:00
Shrikant Tudavekar 45202df55e gaurd thumb instruction for amrc6 2017-09-11 20:09:43 -05:00
Anna Bridge 2955a0adc6 Merge pull request #5063 from 0xc0170/fix_lpticker_test
Fixing lp ticker and sleep manager tests
2017-09-11 22:28:52 +01:00
Anna Bridge cab660d980 Merge pull request #4938 from deepikabhavnani/IAR_fixes
Update IAR to version 8
2017-09-11 17:28:38 +01:00
Russ Butler f746fc5bac Allow lp_ticker test to coexist with TimerEvents
The lp_ticker test overrides the default ticker handler for the
low power ticker. This stops all other low power TimerEvents in the
system, including the ones for tickless, from getting called. Because
of this devices with tickless enabled malfunction during this test.

This patch fixes this problem by passing all lp ticker events it did
not trigger on to the TimerEvent irq handler.
2017-09-10 17:06:46 -05:00
Russ Butler 30450d40d6 Decrease error in Timeout test due to ISR latency
Increase the Timeout period from 1ms to 10ms so interrupt latency has
1/10th the effect on the measurement. This prevents failures due to
interrupt latency causing a drift.
2017-09-09 20:43:36 -05:00
Russ Butler d9aff6f0dd Prevent deeps sleep in regular sleep test case
Lock deep sleep before calling sleep to prevent the device from
entering deep sleep mode.
2017-09-09 20:43:35 -05:00