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

Conversation

AnotherButler
Copy link
Contributor

Add command about porting tests.

Add command about porting tests.
```
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.

Copy link
Contributor

@MarceloSalazar MarceloSalazar left a comment

Choose a reason for hiding this comment

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

This change is good enough to help us to run tests.
If you can add links to other docs, even better :)

@AnotherButler AnotherButler merged commit 004ffe8 into development Nov 29, 2018
@AnotherButler AnotherButler deleted the AnotherButler-patch-3 branch November 29, 2018 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants