Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of gr-peach-opencv-project-sd-card by
basic.cpp File Reference
POSIX File API (stdio) test cases. More...
Go to the source code of this file.
Functions | |
| static control_t | fsfat_basic_test_00 () |
| fopen test case | |
| static control_t | fsfat_basic_test_01 () |
| test-fseek.c test ported from glibc project. | |
| static control_t | fsfat_basic_test_02 () |
| test_rdwr.c test ported from glibc project. | |
| static control_t | fsfat_basic_test_03 () |
| temptest.c test ported from glibc project. | |
| static control_t | fsfat_basic_test_04 () |
| tst-fileno.c test ported from glibc project. | |
| static control_t | fsfat_basic_test_05 () |
| basic test to opendir() on a directory. | |
| static control_t | fsfat_basic_test_06 () |
| basic test to write a file to sd card, and read it back again | |
| static control_t | fsfat_basic_test_07 () |
| basic test to write a file to sd card. | |
| static control_t | fsfat_basic_test_08 () |
| basic sd card performance test | |
| static control_t | fsfat_basic_test_09 () |
| basic test to write a file to sd card. | |
| static control_t | fsfat_basic_test_10 () |
| basic test to write a file to sd card. | |
| static control_t | fsfat_basic_test_dummy () |
| fsfat_basic_test_dummy Dummy test case for testing when platform doesnt have an SDCard installed. | |
Detailed Description
POSIX File API (stdio) test cases.
Consult the documentation under the test-case functions for a description of the individual test case.
this file includes ports for the mbed 2 test cases from the following locations:
- https://github.com:/armmbed/mbed-os/features/unsupported/tests/mbed/dir_sd/main.cpp.
- https://github.com:/armmbed/mbed-os/features/unsupported/tests/mbed/file/main.cpp.
- https://github.com:/armmbed/mbed-os/features/unsupported/tests/mbed/sd/main.cpp
- https://github.com:/armmbed/mbed-os/features/unsupported/tests/mbed/sd_perf_handle/main.cpp
- https://github.com:/armmbed/mbed-os/features/unsupported/tests/mbed/sd_perf_stdio/main.cpp.
Definition in file basic.cpp.
Function Documentation
| static control_t fsfat_basic_test_00 | ( | ) | [static] |
fopen test case
- open a file
- generate random data items, write the item to the file and store a coy in a buffer for later use.
- close the file.
- open the file.
- read the data items from the file and check they are the same as write.
- close the file.
- Returns:
- on success returns CaseNext to continue to next test case, otherwise will assert on errors.
| static control_t fsfat_basic_test_01 | ( | ) | [static] |
| static control_t fsfat_basic_test_02 | ( | ) | [static] |
| static control_t fsfat_basic_test_03 | ( | ) | [static] |
| static control_t fsfat_basic_test_04 | ( | ) | [static] |
| static control_t fsfat_basic_test_05 | ( | ) | [static] |
| static control_t fsfat_basic_test_06 | ( | ) | [static] |
| static control_t fsfat_basic_test_07 | ( | ) | [static] |
| static control_t fsfat_basic_test_08 | ( | ) | [static] |
| static control_t fsfat_basic_test_09 | ( | ) | [static] |
| static control_t fsfat_basic_test_10 | ( | ) | [static] |
Generated on Tue Jul 12 2022 14:47:52 by
1.7.2
