mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #13434 from LDong-Arm/move_drivers_platform_tests
Move Callback tests to platform, USB tests to driverspull/13468/head
commit
207a164c08
|
@ -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.
|
Loading…
Reference in New Issue