Christopher Haster
2d41da2c63
Storage/lwip: Renamed lwip/errno.h -> lwip/lwip_errno.h to avoid conflicts
2017-02-23 14:23:39 -06:00
Anna Bridge
415486e780
Removed unecessary exception and replaced with a logging error.
2017-02-23 19:02:55 +00:00
Christopher Haster
ff3fc8b532
lwip: Increase timeout on tests
...
Sometimes when under heavy load, the CI machines can take a significant
amount of time to bring up a python process (~10s). The timeouts for
the network tests were chosen without much thought, and didn't leave
much room for this sort of delay.
This patch brings up timeouts for ntetwork tests 20s -> 60s
2017-02-23 12:18:43 -06:00
Anna Bridge
e95092c91a
Address review comments
...
Replace use of print and write with logging (with different levels).
Add the ability to choose the logging level on the command line.
Fix the exclusion of uARM from compilation.
Remove print_on_fail from run_cmd() functions, now use logging.
2017-02-23 17:51:23 +00:00
Simon Hughes
410c2f8dc0
STORAGE: rebased with master and fixed FATFileSystem.cpp merge conflicts.
2017-02-23 16:50:34 +00:00
Simon Hughes
7b7db588ff
STORAGE: remove RTOS_9 test from tests.py.
2017-02-23 16:39:53 +00:00
Simon Hughes
9a1966fadb
STORAGE: fixes for BlockDevice test cases.
2017-02-23 16:39:51 +00:00
Christopher Haster
ea5ac4bb4d
Storage: Last minute changes to the block device api
...
- Remove write set of functions
- Caused confusion with small benefit
- Trivial to add later
- Remove unused error codes
- Initial expirementation indicates most of these may not be useful
- Trivial to add later
- Removed bd_error_t
- Carries to additional type information, int already carries
sufficient connotation
- Trivial to add later
per @c1728p9, @sg-
2017-02-23 16:39:49 +00:00
Simon Hughes
5a977eff30
STORAGE: PR 3762 fix to remove FAT_FS, SD_FS, FS_LIBRARY from tools scripts.
2017-02-23 16:39:46 +00:00
Simon Hughes
e43f667174
STORAGE: PR 3762 fix to remove FAT_FS, SD_FS, FS_LIBRARY from tools/libraries.py and tools/tests.py
2017-02-23 16:39:44 +00:00
Simon Hughes
840c77793b
STORAGE: Pull request 3762 review feedback changes.
...
- Fixing code formatting errors with astyle tool.
- Replaced use of TOOLCHAIN_xxx macros with compiler emitted macros.
- Added const to BlockDevice::get_xxx_size() member functions.
- Added documentation for FAT filesystem thread support.
- Added documentation for fat_filesystem_set_errno().
- Added documentation clarifying the reasons for errno/stat symbol definitions in retarget.h.
- Removed FAT filesystem from mbed 2 testing.
- Fixed FATMisc.h Copyright (c) 2016 year to 2017 as its a new file.
- Removed #ifndef NDEBUG from HeapBlockDevice.cpp.
- Removed unnecessary todo comment in retarget.cpp.
2017-02-23 16:39:42 +00:00
Simon Hughes
b8e31c8156
Removal of SD card driver (SDBlockDevice module) and related test cases (moved into https://github.com/ARMmbed/sd-driver repository).
2017-02-23 16:39:36 +00:00
Simon Hughes
a79062f876
Remove build_travis.py NUCLEO_F412ZG usb tests which requires other commits.
2017-02-23 16:39:34 +00:00
Simon Hughes
3e35d4bb81
STORAGE: added test case to write/check n x 25kB files storing ~250kB data.
2017-02-23 16:39:32 +00:00
Simon Hughes
c0a53a907f
STORAGE: added opendir(), readdir(), closedir() test.
2017-02-23 16:39:30 +00:00
Simon Hughes
f84f2f2d20
STORAGE: missing retarget.h in fat_file_system/main.cpp for missing S_IRWXU, S_IRWXG, S_IRWXO symbols.
2017-02-23 16:39:28 +00:00
Christopher Haster
cbcc445f54
Added d_type member of dirent struct to readdir
2017-02-23 16:39:25 +00:00
Simon Hughes
0b0fc7d7d1
STORAGE: fix for heap_block_device and util_block_device test binaries being too large for IAR KL25Z with MBED_STACK_STATS_ENABLED build.
2017-02-23 16:39:23 +00:00
Simon Hughes
2b96c74f84
STORAGE: Pull Request 3704 requested minor changes including:
...
- renaming FATFileSystemSetErrno() fat_file_system_set_errno.
- changing FATFileSystem::format() to be mount fs internally in function, rather than expecting fs to be mounted.
- requested const char *filename change.
2017-02-23 16:39:21 +00:00
Simon Hughes
fdadb8cc66
STORAGE: moved toolchain_support.h into platform/retarget.h
2017-02-23 16:39:18 +00:00
Simon Hughes
c877fb6287
STORAGE: compiler warning fixes.
2017-02-23 16:39:13 +00:00
Simon Hughes
860d7f03f2
STORAGE: fixing error handling for fopen() and other upper edge filesystem API methods.
...
- integrated work with new block api.
- Conflicts: features/filesystem/fat/FATFileSystem.cpp
2017-02-23 16:39:11 +00:00
Simon Hughes
0b7a2ca030
STORAGE: fixes for merging in format test with new block device implementation of format.
2017-02-23 16:38:22 +00:00
Simon Hughes
01baa72ab9
STORAGE: change FATFileSystem::format() to include allocation_unit argument, to facilitate fixing of inconsistent file systems.
...
Conflicts:
features/filesystem/fat/FATFileSystem.cpp
features/filesystem/fat/FATFileSystem.h
2017-02-23 16:38:19 +00:00
Simon Hughes
26141f0f5d
STORAGE: test case fixes to support ARMCC and IAR toolchains.
2017-02-23 16:38:17 +00:00
Simon Hughes
4f5e94c746
STORAGE: test case fixes to support ARMCC and IAR toolchains.
...
Conflicts:
features/TESTS/filesystem/fopen/fopen.cpp
2017-02-23 16:38:15 +00:00
Christopher Haster
ad176c5c6a
Updated filesystem tests to use FATFileSystem + SDBlockDevice
2017-02-23 16:37:18 +00:00
Christopher Haster
90429f60c8
Fixed mbed 2 build_travis with block device
...
Conflicts:
tools/build_travis.py
2017-02-23 16:37:15 +00:00
Christopher Haster
0176450c5a
bd: Adopted the block storage api in the FATFileSystem
2017-02-23 16:37:13 +00:00
Christopher Haster
ba5e1427fc
bd: Added utility block device classes
...
- ChainingBlockDevice
- SlicingBlockDevice
2017-02-23 16:36:27 +00:00
Christopher Haster
03a332c5eb
bd: Adopted the block device api in the SDBlockDevice
2017-02-23 16:36:25 +00:00
Christopher Haster
4633d3129d
bd: Adopted the block device api in the HeapBlockDevice
...
Port of MemBlockDevice from mbed 2
2017-02-23 16:36:22 +00:00
Christopher Haster
99698379ef
bd: Added prototype block device api
2017-02-23 16:36:20 +00:00
Simon D Hughes
67165e292c
ARMCC temporary fixes for undefined errno symbols.
2017-02-23 16:36:18 +00:00
Simon D Hughes
aefb03ccd6
ARMCC temporary fixes for undefined errno symbols.
2017-02-23 16:36:16 +00:00
Simon D Hughes
29f8d838d0
STORAGE: updated filesystem readme.md.
2017-02-23 16:36:10 +00:00
Simon D Hughes
cffea7e3c4
Remove unnecesary symbol definitions.
2017-02-23 16:36:08 +00:00
Simon Hughes
8378af044f
Updated filesystem README.md.
2017-02-23 16:36:06 +00:00
Simon Hughes
0c87537f10
Added errno codes to retarget, mkdir() and ftell() tests.
2017-02-23 16:36:03 +00:00
Christopher Haster
39a1eddb93
Filesystem: Added EEXIST reporting to mkdir through errno
2017-02-23 16:34:56 +00:00
Simon Hughes
c8fecb6c88
STORAGE: tests added for errno, ferror() and clearerr().
2017-02-23 16:30:55 +00:00
Simon Hughes
912044b829
FILESYSTEM: fopen() and basic test improvements.
2017-02-23 16:30:50 +00:00
Christopher Haster
b1a685125b
Filesystem: Removed dependency on unistd.h
...
Previously used to determine stdin/stdout/stderr filenos, however
these are set by us
2017-02-23 16:30:47 +00:00
Christopher Haster
9299a88e8f
Filesystem: Add support for stat
...
Provided through FileSystemLike::stat
2017-02-23 16:30:42 +00:00
Simon Hughes
7514476e2f
FILESYSTEM: Fix to only build SDFileSystem if DEVICE_SPI defined, to build correctly for targets that dont have SPI interfaces.
2017-02-23 16:30:30 +00:00
Simon Hughes
66446275fa
FILESYSTEM: fix KL25Z CI build failure but not instantiaing SDFileSystem.
2017-02-23 16:30:27 +00:00
Simon Hughes
1b562cc2fe
Fix fopen test build error due to #include <sys/stat.h>, which is not present.
2017-02-23 16:30:25 +00:00
Simon Hughes
5c7fdc13c7
FILESYSTEM: renamed features/TESTS/fs-fat features/TESTS/filesystem.
2017-02-23 16:30:23 +00:00
Simon Hughes
4acf33f436
FILESYSTEM: moved FAT filesystem implemenation to features/filesystem subdir, and fs-fat tests to features/TESTS.
2017-02-23 16:30:21 +00:00
Simon Hughes
a35919afbe
minor edits to fopen test.
2017-02-23 16:30:16 +00:00