Merge pull request #13434 from LDong-Arm/move_drivers_platform_tests

Move Callback tests to platform, USB tests to drivers
pull/13468/head
Martin Kojtal 2020-08-21 13:50:22 +01:00 committed by GitHub
commit 207a164c08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ No setup method has been verified for this platform.
1. Plug both USB interfaces (*DAPLink* and *USB device*) to your host machine.
1. An addtional macro `USB_DEVICE_TESTS` is needed to be defined when runing tests:
```
mbed test -t <toolchain> -m <target> -DUSB_DEVICE_TESTS -n tests-usb_device-*
mbed test -t <toolchain> -m <target> -DUSB_DEVICE_TESTS -n *-tests-usb_device-*
```
## Known issues
@ -88,8 +88,8 @@ as an unprivileged user will manifest with either of the following errors:
#### Solution
Execute tests with elevated permissions using `sudo`:
```bash
mbed test -t <toolchain> -m <target> -n tests-usb_device-* --compile
sudo mbed test -t <toolchain> -m <target> -n tests-usb_device-* --run -v
mbed test -t <toolchain> -m <target> -DUSB_DEVICE_TESTS -n tests-usb_device-* --compile
sudo mbed test -t <toolchain> -m <target> -n *-tests-usb_device-* --run -v
```
Note only the `mbed test --run` command requires `sudo`. You can still
`mbed test --compile` as a normal user.