Russ Butler
ea468856c4
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-02 11:35:03 -05:00
Jimmy Brisson
90e5483bbe
Merge pull request #5006 from maciejbocianski/ticker_tests
...
Extends test set for Ticker class
2017-09-29 10:06:14 -05:00
Jimmy Brisson
e3cb228d5e
Merge pull request #4795 from sarahmarshy/test-configs
...
Add configurable network driver tests
2017-09-28 14:06:38 -05:00
Sarah Marsh
fbe8dfae19
update domain name to os.mbed.com
2017-09-22 09:40:32 -05:00
Martin Kojtal
b72bd08644
Merge pull request #4965 from deepikabhavnani/IAR_heap_stats
...
Add heap stats for IAR
2017-09-22 11:34:47 +01:00
Martin Kojtal
1fed1d003e
Merge pull request #4684 from deepikabhavnani/thread_stack_issue
...
Add thread terminate hook
2017-09-22 11:31:39 +01:00
Sarah Marsh
6a44ceb094
Add copyright headers and use mbed error to skip tests without network config files
2017-09-20 18:31:06 -05:00
Sarah Marsh
8f9242fe40
Add netsocket tests
2017-09-20 18:27:58 -05:00
Deepika
459e7d4725
IAR heap stats added
2017-09-18 10:24:01 -05:00
Deepika
6f5df1f4c3
Threads test require more time to finish
2017-09-15 11:39:47 -05:00
Russ Butler
47b0f31d32
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-13 20:11:39 -05:00
Maciej Bocianski
c1c0f1ea57
Extends test set for Ticker class
2017-09-12 16:04:52 +02: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
Martin Kojtal
deb1febb8b
sleep manager test: fix Thread stack size
...
Decrease the default stack size as it's not needed for purposes of testing.
2017-09-09 20:42:55 -05:00
Jimmy Brisson
e12f116ec1
Merge pull request #4912 from 0xc0170/dev_sleep_drivers
...
Add sleep manager API
2017-09-07 18:26:49 -05:00
Martin Kojtal
c5a41d83c2
test: add sleep manager tests
...
This commits contains two tests:
- race condition
- deep sleep locking/unlocking
2017-09-07 15:35:07 +01:00
Deepika
5875569070
Added function header for stl test
2017-09-06 09:51:16 -05: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
Laurent MEUNIER
be7fa925ad
TESTS: flashiap: Add condition to check error on unaligned access
...
In case the target supports a page size of 1 byte, i.e. is able to
program flash 1 byte at a time, which is the case of STM32 F4 targets,
there is no reason for flash_device.program to return an error when
trying to write on an "unaligned" address.
2017-08-28 16:21:18 +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
294d7e7b41
Merge pull request #4690 from 0xc0170/us_ticker_test
...
test: add us ticker test
2017-08-07 10:26:54 -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
Martin Kojtal
ae51f183c6
test: add hal ticker test (us + lp tickers)
...
This test exercises ticker API
- init should be executed just once
- read timestamp
Set interrupt should be tested via upper layer, as it does not provide
API to change handler that is invoked in the ISR ticker handler.
2017-07-26 17:05:51 +01:00
Marcus Chang
299c7f24ac
mbed-hal: Fixed flash test
...
The test assumed that data written to flash would be memory mapped
and directly accessible. On some platform this is not the case
and data has to read back through an explicit read command.
The test has been changed to use the flash read command instead
of direct memory access.
2017-07-19 14:32:39 +01: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
adfed0f9de
Merge pull request #4644 from 0xc0170/fix_ticker_delta_negative
...
Ticker: add fire interrupt now function
2017-07-17 11:05:46 -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
Martin Kojtal
5a5d159a3c
Merge pull request #4666 from chrissnow/tests-mbed_hal-flash-Timing_fix
...
Fix timing issues found in "Flash - clock and cache test"
2017-07-13 16:48:32 +02:00
Martin Kojtal
56cb1582be
ticker test: add test for set interrupt with timestamp in the past
...
2 test cases added, one for event in the past, one for event in future but very close
to the current time, thus once is set, it is already in the past, and we fire
interrupt immediately.
2017-07-13 12:23:25 +01:00
Martin Kojtal
4ff432904e
ticker test: add fire now stub
2017-07-13 12:23:25 +01: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
Jimmy Brisson
50fdca88e8
Merge pull request #4599 from studavekar/timing_tests_update
...
Update timing tests to be robust
2017-07-07 16:22:09 -05: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
Chris
8365d9d00d
Remove volatile
2017-06-30 22:44:05 +01:00
Chris
ed8b378c6e
Code tidy
2017-06-30 22:09:47 +01:00
Chris
562a548053
Assembly based loop for timing test
2017-06-30 20:33:58 +01:00
Bartek Szatkowski
60e7ef2ab7
RTOS: Thread: Rework and extend test suite
2017-06-29 13:04:13 +01:00
Chris
92e4a1faf7
Fix timing issues found in "Flash - clock and cache test"
...
ARMCC seemed to be inlining time_cpu_cycles() but with a different number of clock cycles in the loop, GCC worked fine.
2017-06-29 09:51:44 +01:00