[tools] Added specific config test for uvisor

Unlike other libraries, uvisor is currently integrated into the build
system, with special cases based on its addition as a feature. This
suggests we should also have tests for these special cases.
pull/2317/head
Christopher Haster 2016-07-29 12:31:54 -05:00
parent 6ea4006b5a
commit b45ec0ed76
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,17 @@
{
"custom_targets": {
"test_target": {
"core": "Cortex-M0",
"extra_labels": [],
"features": [],
"default_build": "standard"
}
},
"target_overrides": {
"*": {
"target.features_add": ["UVISOR"],
"target.extra_labels_add": ["UVISOR_SUPPORTED"]
}
}
}

View File

@ -0,0 +1,8 @@
# Testing when adding two features
expected_results = {
"test_target": {
"desc": "test uvisor feature",
"expected_features": ["UVISOR"]
}
}