Skip to content

Add test command to BlockDevice.md #853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/porting/storage/BlockDevice.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,10 @@ You can run BlockDevice tests for heap, MBR and util block devices with the foll
mbed test -t <toolchain> -m <target> -n features-tests-filesystem-*_block_device
```

You can run BlockDevice tests without the file system with the following command:

```
mbed test -t <toolchain> -m <target> -n mbed-os-features-storage-tests-blockdevice-general_block_device -v
```

One way to add tests for new block devices is to copy an existing implementation, such as HeapBlockDevice, and change the block device class to your own. You can find tests under the top level `TESTS` folder in the Mbed OS repository.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a better pointer for the tests will be https://github.com/ARMmbed/mbed-os/tree/master/features/storage/TESTS/blockdevice instead of "find tests under the top level TESTS folder in the Mbed OS repository"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this link should be added as well?
https://github.com/ARMmbed/mbed-os/tree/master/features/storage/TESTS/blockdevice/general_block_device
It contains useful information.