Commit Graph

1219 Commits (fe0f21abd9560c2b4a247f9030e0d710a10985bf)

Author SHA1 Message Date
Filip Jagodzinski a7178b3519 Test: Watchdog: Fix test_restart case
Watchdog::stop() is called in this test. If the target does not support
stopping the watchdog this case needs to be skipped.
Also improve handling ignored test cases.
2019-07-11 11:55:28 +01:00
Filip Jagodzinski fd92a22993 Test: Watchdog: Fix astyle errors 2019-07-11 11:55:28 +01:00
Filip Jagodzinski be6a26e0ef Test: WatchdogManager: Remove tests
This component no longer exists in Mbed OS.
2019-07-11 11:55:28 +01:00
Filip Jagodzinski 9c6cd2b669 Test: Watchdog: Add new driver tests 2019-07-11 11:55:28 +01:00
Filip Jagodzinski df372fd19e ResetReason: Update the header file
Minor doxygen fixes.
2019-07-11 11:55:18 +01:00
Martin Kojtal 2a26e1af4b watchdog: fix copyright 2019-07-11 11:55:18 +01:00
Filip Jagodzinski 33ef09b3df Test: watchdog_mgr: Remove dead code 2019-07-11 11:55:18 +01:00
Filip Jagodzinski f52eca9ebe Test: update reset_reason driver test
Update the watchdog timing requirements:
1. The watchdog should trigger at, or after the timeout value.
2. The watchdog should trigger before twice the timeout value.

Use a SERIAL_FLUSH_TIME_MS value consistent with other tests.
2019-07-11 11:55:17 +01:00
Filip Jagodzinski 4180fcc045 Test: update HAL watchdog-timing test
Update the watchdog timing requirements:
1. The watchdog should trigger at, or after the timeout value.
2. The watchdog should trigger before twice the timeout value.
2019-07-11 11:55:17 +01:00
Filip Jagodzinski 5d76717323 Test: update HAL watchdog-reset test
Update the watchdog timing requirements:
1. The watchdog should trigger at, or after the timeout value.
2. The watchdog should trigger before twice the timeout value.
Remove explicit calls to sleep.
2019-07-11 11:55:17 +01:00
Filip Jagodzinski e55fff9060 Test: update HAL watchdog test
Update the watchdog timing requirements:
1. The watchdog should trigger at, or after the timeout value.
2. The watchdog should trigger before twice the timeout value.
2019-07-11 11:55:17 +01:00
Filip Jagodzinski d585e1bba6 Test: update HAL reset_reason test
Update the watchdog timing requirements:
1. The watchdog should trigger at, or after the timeout value.
2. The watchdog should trigger before twice the timeout value.
2019-07-11 11:55:17 +01:00
Filip Jagodzinski 3a3bb4f90d Tests: Watchdog: Update timing test
Skip test cases with unsupported timeout values.
2019-07-11 11:55:17 +01:00
Filip Jagodzinski d800cc315c Tests: Watchdog: Decrease default timeout to 100 ms 2019-07-11 11:55:16 +01:00
Filip Jagodzinski f163a4c8d4 Tests: Watchdog: Update test case teardown
Added a mechanism which will prevent an initialised watchdog from
resetting the device during final greentea communication.
This allows testing watchdog timeouts as short as 50 ms.
2019-07-11 11:55:16 +01:00
Filip Jagodzinski 715369d6d1 Tests: Update Watchdog Manager test
Update the watchdog timing requirements:
1. The watchdog should trigger at, or after the timeout value.
2. The watchdog should trigger before twice the timeout value.
2019-07-11 11:55:16 +01:00
Filip Jagodzinski 51835f005b Tests: ResetReason: Use the HAL watchdog API
The Watchdog driver has been updated making this test incompatible
with the new API. Use HAL API instead.
2019-07-11 11:55:16 +01:00
Filip Jagodzinski 30319b8464 Tests: Watchdog: Add Watchdog Manager tests 2019-07-11 11:55:16 +01:00
Filip Jagodzinski 5bf6842efc Tests: Watchdog: Remove outdated driver tests
The Watchdog driver has been updated making these tests incompatible
with the new API. The Watchdog driver functionality is tested with the
unit tests located in UNITTESTS/drivers/Watchdog/ .
2019-07-11 11:55:16 +01:00
Mel W 257e4cb686 capitalizing class name
Hope this is alright.
2019-07-11 11:55:11 +01:00
Mel W cbb26403eb Capitalizing Watchdog 2019-07-11 11:55:11 +01:00
Mel W f1a3ccc21b small grammatical changes
Not sure if the formatting's still alright on these.
2019-07-11 11:55:11 +01:00
Filip Jagodzinski f5e61b99a1 Docs: Watchdog: Update code comments
* capitalize driver class name,
* reword test docs for the driver & HAL,
* capitalize Mbed name,
* reword the comments explaining the SERIAL_FLUSH_TIME_MS macro.
2019-07-11 11:55:11 +01:00
Amanda Butler c04ba485fc Edit ResetReason_tests.h
Make minor grammar edits.
2019-07-11 11:55:10 +01:00
Filip Jagodzinski 2e1b524917 Tests: Watchdog: Update the reset-to-sync delay
Change the config parameter used as a delay before sending the sync
packet after the device reset in watchdog and reset_reason tests. Use
'forced_reset_timeout' instead of 'program_cycle_s'.
2019-07-11 11:55:10 +01:00
Filip Jagodzinski e4217cb5e8 Tests: Watchdog: Fix config access in the host script
Move the calls to get_config_item() to the setup() method. The config is
not available in the initializer yet.
2019-07-11 11:55:10 +01:00
Donatien Garnier ec010fc5e6 Fix more astyle failures 2019-07-11 11:55:10 +01:00
Donatien Garnier fd7e46b799 Apply new astyle config style 2019-07-11 11:55:09 +01:00
Donatien Garnier 7c05a83afa Update license headers 2019-07-11 11:55:09 +01:00
Steve Cartmell 4f2acf5f03 test(api-watchdog): Fix errors in compiling watchdog greentea tests
The latest rebase of the watchdog feature branch introduced errors in compiling
watchdog tests due to missing headers.

- Watchdog HAL API test
  Include missing header files to main.cpp (mbed_wait_api.h, stdlib.h).

- Watchdog HAL API timing test
  Include missing header files to main.cpp (us_ticker_api.h).

- Watchdog Driver API test
  Include missing header files to main.cpp (mbed_wait_api.h, stdlib.h).
  Inject mbed namespace into main.cpp to fix Watchdog name resolution.
2019-07-11 11:55:09 +01:00
ccli8 87ca77bbfc Fix NUMAKER_PFM_NANO130 cannot pass mbed_hal/watchdog_reset test
On NUMAKER_PFM_NANO130 target, WDT's clock source is fixed to LIRC, which is much
less accurate than other targets. Enlarge delta define to pass this test.
2019-07-11 11:55:08 +01:00
ccli8 90c75f5d01 Enlarge wait time for flushing serial buffer in Greentea test code
Original wait time is not enough for UART to flush out before deepsleep/reset on some targets.
2019-07-11 11:55:08 +01:00
Filip Jagodzinski 008cd6453c Tests: Drivers: Reset_reason: Add tests 2019-07-11 11:55:06 +01:00
Filip Jagodzinski 9ed1209657 Tests: HAL API: Reset_reason: Add tests 2019-07-11 11:55:06 +01:00
Filip Jagodzinski 685efbde97 Tests: HAL: Watchdog: Fix timing accuracy test
Relax time measurement margins for UBLOX_EVK_ODIN_W2.
2019-07-11 11:55:05 +01:00
Filip Jagodzinski 91c9cb5c0f Tests: Drivers: Watchdog: Add tests 2019-07-11 11:55:05 +01:00
Filip Jagodzinski a129b57443 Tests: HAL API: Watchdog: Add time accuracy tests 2019-07-11 11:55:05 +01:00
Filip Jagodzinski 4f05912b99 Tests: HAL API: Watchdog: Add dev reset tests 2019-07-11 11:55:05 +01:00
Filip Jagodzinski a7734d0fc8 Tests: HAL API: Watchdog: Add tests 2019-07-11 11:55:04 +01:00
Russ Butler f71baa24be Remove FPGA analog out test
Remove the analog out test temporarily due to limitations of the
FPGA rev 2 hardware.
2019-07-11 11:41:30 +01:00
Neil Tuttle 7205238c3b Fix error in tests-mbed_drivers-ticker when LED not available 2019-07-11 11:41:30 +01:00
Przemyslaw Stekiel 05ff391030 FPGA SPI test: Fix typo 2019-07-11 11:41:30 +01:00
Przemyslaw Stekiel c4f9a8d566 FPGA SPI test: Fix unsupported transfer case
Co-Authored-By: Filip Jagodziński <fkjagodzinski@gmail.com>
2019-07-11 11:41:30 +01:00
Przemyslaw Stekiel 37dcf826c3 Extend FPGA SPI test
Add test cases for:
- async mode,
- different frequencies,
- block write
2019-07-11 11:41:30 +01:00
Neil Tuttle 5233eeae5b Fix out-of-bounds array access in tests-mbedmicro-rtos-mbed-malloc 2019-07-11 11:41:30 +01:00
Russ Butler b0de32c07c FPGA test shield: Allow any defined form factor
Build in the FPGA tests if either MBED_CONF_TARGET_DEFAULT_FORM_FACTOR
or TARGET_FF_ARDUINO is defined.
2019-07-11 11:41:30 +01:00
Filip Jagodzinski 5a007262b4 FPGA test shield: Restrict tests to Arduino FF only
Currently only the Arduino form factor is supported. Support for other
form factors will be added in the future.
2019-07-11 11:41:30 +01:00
Russ Butler 6902844cf2 Skip form factor pins marked as NC
The gpio and gpio_irq FPGA tests run on form factor pins that are
marked as NC. This patch changes that behavior so they skip NC
pins.
2019-07-11 11:41:30 +01:00
Przemyslaw Stekiel 306ecbe9cc FPGA uart test: Remove unsupported test cases
Not all uart features are supported by specific platforms.
2019-07-11 11:40:55 +01:00
Przemyslaw Stekiel a887855250 FPGA Analogin test: Remove test case which can not be executed
The test case which checks full range cannot be executed at the moment due to a hardware bug in FPGA-Test-Shield.
This test case will be restored when the final version of FPGA-Test-Shield is ready.
2019-07-11 11:40:55 +01:00