Fork of my original MQTTGateway
Dependencies:
mbed-http
« Back to documentation index
basic.cpp File Reference
POSIX File API (stdio) test cases.
More...
Go to the source code of this file.
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:
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.
Definition at line 143 of file basic.cpp .
static control_t fsfat_basic_test_01
(
)
[static]
test-fseek.c test ported from glibc project.
See the licence at REF_LICENCE_GLIBC.
Returns: on success returns CaseNext to continue to next test case, otherwise will assert on errors.
Definition at line 194 of file basic.cpp .
static control_t fsfat_basic_test_02
(
)
[static]
test_rdwr.c test ported from glibc project.
See the licence at REF_LICENCE_GLIBC.
WARNING: this test does not currently work. See WARNING comments below.
Returns: on success returns CaseNext to continue to next test case, otherwise will assert on errors.
Definition at line 259 of file basic.cpp .
static control_t fsfat_basic_test_03
(
)
[static]
temptest.c test ported from glibc project.
See the licence at REF_LICENCE_GLIBC.
tmpnam() is currently not implemented
Returns: on success returns CaseNext to continue to next test case, otherwise will assert on errors.
Definition at line 381 of file basic.cpp .
static control_t fsfat_basic_test_04
(
)
[static]
tst-fileno.c test ported from glibc project.
See the licence at REF_LICENCE_GLIBC.
WARNING: this test does not currently work. See WARNING comments below.
Returns: on success returns CaseNext to continue to next test case, otherwise will assert on errors.
Definition at line 432 of file basic.cpp .
static control_t fsfat_basic_test_05
(
)
[static]
basic test to opendir() on a directory.
This test has been ported from armmbed/mbed-os/features/unsupported/tests/mbed/dir_sd/main.cpp.
Returns: on success returns CaseNext to continue to next test case, otherwise will assert on errors.
Definition at line 459 of file basic.cpp .
static control_t fsfat_basic_test_06
(
)
[static]
basic test to write a file to sd card, and read it back again
This test has been ported from armmbed/mbed-os/features/unsupported/tests/mbed/file/main.cpp.
Returns: on success returns CaseNext to continue to next test case, otherwise will assert on errors.
Definition at line 505 of file basic.cpp .
static control_t fsfat_basic_test_07
(
)
[static]
basic test to write a file to sd card.
This test has been ported from armmbed/mbed-os/features/unsupported/tests/mbed/sd/main.cpp.
Returns: on success returns CaseNext to continue to next test case, otherwise will assert on errors.
Definition at line 552 of file basic.cpp .
static control_t fsfat_basic_test_08
(
)
[static]
basic sd card performance test
This test has been ported from armmbed/mbed-os/features/unsupported/tests/mbed/sd_perf_handle/main.cpp.
Returns: on success returns CaseNext to continue to next test case, otherwise will assert on errors.
Definition at line 662 of file basic.cpp .
static control_t fsfat_basic_test_09
(
)
[static]
basic test to write a file to sd card.
This test has been ported from armmbed/mbed-os/features/unsupported/tests/mbed/sd_perf_stdio/main.cpp.
Returns: on success returns CaseNext to continue to next test case, otherwise will assert on errors.
Definition at line 748 of file basic.cpp .
static control_t fsfat_basic_test_10
(
)
[static]
basic test to write a file to sd card.
This test has been ported from armmbed/mbed-os/features/unsupported/tests/mbed/sd_perf_stdio/main.cpp.
Returns: on success returns CaseNext to continue to next test case, otherwise will assert on errors.
Definition at line 835 of file basic.cpp .
static control_t fsfat_basic_test_dummy
(
)
[static]
fsfat_basic_test_dummy Dummy test case for testing when platform doesnt have an SDCard installed.
Returns: success always
Definition at line 884 of file basic.cpp .