Closed
Description
Custom targets are a feature of the config system which is (to my knowledge) not supported by mbed test
.
Why it is needed
The use of custom targets is a requirement for uVisor testing. We use custom targets to test variations/configurations of the original target with different uVisor flavors.
For more information, please read this document.
@screamerbg @bogdanm
@PrzemekWirkus @mazimkhan @adbridge
Steps to reproduce
Initial setup: A top-level folder with a TESTS
folder with a test in it, and a link to mbed OS:
~/reproducible
|__ mbed-os.lib
|__ TESTS
|__ test
|__ test.cpp
Deploy the OS:
$ cd ~/reproducible
$ mbed deploy
Add a custom target definition:
$ echo '{
"custom_targets": {
"K64F_CUSTOM": {
"inherits": ["K64F"],
"extra_labels_add": ["K64F"],
"features_add": ["UVISOR"]
}
}
}' > mbed_app.json
And try to build and run the test:
$ mbed test -m K64F_CUSTOM -t GCC_ARM
You will get the following error:
KeyError: 'K64F_CUSTOM'
[ERROR] 'K64F_CUSTOM'