Commit Graph

13075 Commits (c6130306e06deff35e9685fd8886263e7cc1fccc)

Author SHA1 Message Date
Christopher Haster c6130306e0 littlefs: Removed links to previous repository locations 2017-11-30 11:46:00 -06:00
Amanda Butler 634fcf0cc4 Copy edit littlefs
ExhaustibleBlockDevice.h
- Fix typos for consistent spelling.
ObservingBlockDevice.h
- Fix typos for consistent spelling.
ReadOnlyBlockDevice.h
- Fix typos for consistent spelling.
README.md
- Fix typos, mostly for branding.
DESIGN.md
- Make minor changes for consistent spelling and precise language.
SPEC.md
- Make minor changes for consistent spelling and precise language.
README.md
- Make minor changes for consistent spelling and precise language.
2017-11-29 16:35:06 -06:00
Christopher Haster ff25681a21 Separated out logical Travis jobs
Combination of mbed 2 builds (~40 minutes), littlefs testing (~15
minutes), and miscellaneous testing pushed the current CI over
Travis's limit of 1 hour per job.

However, by using Travis's matrix includes, we can spin up different
jobs for the various logical components being tested.
2017-11-27 20:39:03 -06:00
Christopher Haster 47684d89a5 Added test config for simulated block devices
Not all devices have enough heap to fit a simulated heap block device,
however using a simulated heap block device is preferred if available
(reduced flash wear, faster testing).

Added MBED_TEST_SIM_BLOCKDEVICE for tests that only need a simulated
block device (wear_leveling + resilience), and added support for targets
that are known to have enough heap.
2017-11-27 19:48:56 -06:00
Christopher Haster b52575bc65 littlefs: Added checks for __CLZ instruction in IAR 2017-11-27 19:48:56 -06:00
Christopher Haster 2cf4715cb6 littlefs: Increased test timeout to 4 minutes
Unfortunately there are several issues colluding to force the timeout
this high.

1. The tests push littlefs to the limits of how many errors it can
handle before failing. As a side effect this causes a massive amount
of debug/warn/error logging about the situation.

2. The logging can't be turned off for specific tests. Note: This might
change with the introduction of test-configs.

3. Logging is fixed to a baud rate of 9600. Previous testing was carried
out with a baud rate of 115200, which is the reason for the original
timeout.
2017-11-22 17:19:16 -06:00
Christopher Haster ea0fee0968 littlefs: Integrated littlefs's .travis.yml into mbed OS
Also cleaned up the central .travis.yml to better support
similar local testing in Travis CI
2017-11-22 16:40:59 -06:00
Christopher Haster 4adf75c9aa littlefs: Moved test block devices into general block devices 2017-11-22 16:02:54 -06:00
Christopher Haster 9bc4ea6504 littlefs: Removed mbed namespace leaks 2017-11-22 16:02:54 -06:00
Christopher Haster 314995f841 Add 'features/filesystem/littlefs/' from commit 'd02b3122f006aa201bca4efc699bae40971e5a00'
git-subtree-dir: features/filesystem/littlefs
git-subtree-mainline: b025ea16d6
git-subtree-split: d02b3122f0
2017-11-22 16:02:21 -06:00
Christopher Haster d02b3122f0 Removed warnings about format strings when running littlefs tests
The difference gcc targets differ with format strings in some odd
(but not against the rules) ways. Most notable, the uint32_t in
i386/x86_64 gcc uses %d, whereas on cortex-m gcc uses %ld.

This makes dealing with warnings on code that goes between the two
rather annoying.
2017-11-22 15:55:54 -06:00
Christopher Haster 91a4f443fe Enforced style consistency with mbed
see https://os.mbed.com/docs/v5.6/reference/guidelines.html#style
2017-11-22 15:55:54 -06:00
Christopher Haster 9da2475099 Cleaned up doxygen warnings 2017-11-22 15:55:54 -06:00
Christopher Haster ad07da0da0 Merge commit '3eb2f38279aadb35234c5df1fb8e54fd2a035be1' 2017-11-22 15:28:15 -06:00
Christopher Haster 3eb2f38279 Squashed 'littlefs/' changes from 996cd8a..5ee20e8
5ee20e8 Fixed pipefail issue that was preventing CI from reporting errors
bf78b09 Added directory list for synchronizing in flight directories
e169d06 Removed vestigial function declaration

git-subtree-dir: littlefs
git-subtree-split: 5ee20e8d774adf0bb538269870b3552fdfc0e046
2017-11-22 15:28:15 -06:00
Christopher Haster fa5e34ea59
Merge pull request #10 from c1728p9/htrun_update
Update unexpected reset host test for htrun
2017-11-22 09:49:00 -06:00
Russ Butler b958997328 Update unexpected reset host test for htrun
Update the key used in the reset host to match the latest version of
htrun.
2017-11-20 12:22:12 -06:00
Christopher Haster 8d336f253a Updated documentation to match other info around littlefs
Mostly brought from documentation changes in the core repo
2017-11-20 00:49:25 -06:00
Christopher Haster 0a197465d3 Squashed 'littlefs/' changes from 78c79ec..996cd8a
996cd8a Revisited documentation

git-subtree-dir: littlefs
git-subtree-split: 996cd8af22a5fe917812838f82eb73221dde4b7d
2017-11-20 00:16:47 -06:00
Christopher Haster 9b79136ea7 Merge commit '0a197465d33900a5ac2ef41486410d44f3d15ad3' 2017-11-20 00:16:47 -06:00
Christopher Haster 3c9f2be163 Added test configuration support for block devices
Defaulted to HeapBlockDevice. Unfortunately this does mean that
by default almost none of the tests are actually capable of running
unless the dut has >512KB or RAM.
2017-11-17 18:48:18 -06:00
Christopher Haster 5afec68073 Renamed "parallel" tests to "intersperesed"
The parallel name was incorrect. These tests do not involve mutliple
threads, but rather write to multiple files an in interspersed manner
sequentially.
2017-11-17 16:04:52 -06:00
Christopher Haster 3bdb80ff0b
Merge pull request #9 from c1728p9/resilience_and_wear_leveling
Add filesystem recovery tests
2017-11-17 14:38:40 -06:00
Martin Kojtal b025ea16d6
Merge pull request #5137 from dave-wu/master
Add support for ADI EV-COG-AD3029LZ platform.
2017-11-17 10:21:56 +00:00
Russ Butler 2d374cee5c Add unexpected reset test
Add a test which repeatedly resets a device and then checks that the
filesystem is still valid using real hardware.
2017-11-16 20:20:23 -06:00
Russ Butler bb155adc16 Add filesystem recovery tests
Add tests for filesystem resilience and wear leveling. These tests
take shared filesystem code and simulate different scenarios while
this code is running. Information on the new tests can be found below.

mbed-littlefs-tests-filesystem_recovery-resilience:
Tests that after every block device operation the filesystem is in a
well defined state.

mbed-littlefs-tests-filesystem_recovery-wear_leveling:
Tests that the littlefs correctly handles when flash is exhausted by
using a simulated block device until there are no free good blocks.

Note - This patch also adds several new block devices for testing.
These will eventually be moved into mbed-os.
2017-11-16 20:20:15 -06:00
Christopher Haster 7eaf61c047 Fixed memory leak when files/dirs error
Error path did not clean up after itself correctly
2017-11-16 18:55:23 -06:00
Christopher Haster 9f8d0d6ae8 Merge commit '0f4e334388e0e05554a78d14d0a5ef73f02209b2' 2017-11-16 18:23:51 -06:00
Christopher Haster 0f4e334388 Squashed 'littlefs/' changes from 3f31c8c..78c79ec
78c79ec Added QUIET flag to tests so CI is readable
f9f4f5c Fixed standard name mismatch LFS_ERR_EXISTS -> LFS_ERR_EXIST
843e3c6 Added sticky-bit for preventing file syncs after write errors
2612e1b Modified lfs_ctz_extend to be a little bit safer
6664723 Fixed issue with committing directories to bad-blocks that are stuck

git-subtree-dir: littlefs
git-subtree-split: 78c79ecb9e6b8dd0e7cfd7ac86934e43fb026924
2017-11-16 18:16:32 -06:00
Jimmy Brisson 6720bfdbdc
Merge pull request #5335 from yennster/test-configs-update
Fix for configurable network driver tests
2017-11-16 14:13:01 -06:00
Martin Kojtal 3bedff36e3
Merge pull request #4825 from SiliconLabs/feature/mbedtls-hw-accel
Silicon Labs: Add cryptographic acceleration support
2017-11-16 16:24:52 +00:00
Martin Kojtal 56aa7c396f
Merge pull request #5261 from maciejbocianski/ticker_tests2
Extends test set for Ticker class
2017-11-16 16:23:35 +00:00
Martin Kojtal 2a7fcdfe48
Merge pull request #5296 from pan-/generic-access-service-abstraction-layer
BLE: Generic access service abstraction layer
2017-11-16 16:22:29 +00:00
Martin Kojtal 81dbd035ab
Merge pull request #5392 from pan-/improve-ble-docs
Improve ble docs
2017-11-16 16:21:50 +00:00
Martin Kojtal eb5d3fffff
Merge pull request #5403 from mprse/timer_test_delta_fix
Provide fixes for Timer and LowPowerTimer tests.
2017-11-16 16:19:24 +00:00
Martin Kojtal d8d8c28e11
Merge pull request #5452 from 0xc0170/fix_i2c_onsemi
ONSEMI: Fix I2C issues
2017-11-16 16:18:28 +00:00
Martin Kojtal b76b3f723d
Merge pull request #5472 from pan-/doc_battery_service
BLE: Update BatteryService documentation.
2017-11-16 16:17:50 +00:00
Martin Kojtal bc92e40d1b
Merge pull request #5475 from pan-/doc_heart_rate_service
BLE: update heart rate service definition.
2017-11-16 16:16:37 +00:00
Martin Kojtal 01bc4340e8
Merge pull request #5482 from bcostm/fix_disco_l072cz_extclock
DISCO_L072CZ_LRWAN1: HSE clock configuration improvement
2017-11-16 16:15:12 +00:00
Martin Kojtal 4198695fab
Merge pull request #5485 from pan-/non-copyable-warning
Platform: Allow copy of non copyable objects
2017-11-16 16:14:42 +00:00
Martin Kojtal 1fa09fa43d
Merge pull request #5487 from nvlsianpu/bugfix_5462_initial_pin_value
Fix bug for issue:  initial pin value not retained
2017-11-16 16:13:13 +00:00
Martin Kojtal 114e019675
Merge pull request #5486 from bcostm/fix_CAN3
STM32: Add support of CAN3
2017-11-16 16:12:27 +00:00
Martin Kojtal d6d9afc7f2
Merge pull request #5499 from adbridge/master
Remove mbed-cloud-client-example-internal.
2017-11-16 16:11:39 +00:00
Martin Kojtal dc6dd5961e
Merge pull request #5505 from LMESTM/fix_smartcard_HAL
STM32: HAL smartcard, fix memory corruption in Receive
2017-11-16 16:11:04 +00:00
Martin Kojtal 2f9cf47f17
Merge pull request #5508 from c1728p9/condition_variable_fix
Fix and add test for ConditionVariable
2017-11-16 16:10:28 +00:00
Martin Kojtal f36922cb0e
Merge pull request #5510 from 0xc0170/fix_nuvoton_truefalse
[M487/NUC472/NANO130] fix TRUE/FALSE redefinition
2017-11-16 16:09:39 +00:00
Dave Wu 45aa2130bc Added SystemCoreClock as an extern. 2017-11-16 13:29:43 +00:00
cyliangtw 288094568c [M487/NUC472/NANO130] fix TRUE/FALSE redefinition 2017-11-16 11:21:20 +00:00
Russ Butler 93cf15d57c Fix and add test for ConditionVariable
Fix the circular linked list handling in ConditionVariable and add a
test to validate the linked list implementation.
2017-11-15 16:15:27 -06:00
Dave Wu 401674284a Cleaned up some formatting issues. 2017-11-15 22:59:26 +11:00