Skip to content

Commit b45ec0e

Browse files
committed
[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.
1 parent 6ea4006 commit b45ec0e

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"custom_targets": {
3+
"test_target": {
4+
"core": "Cortex-M0",
5+
"extra_labels": [],
6+
"features": [],
7+
"default_build": "standard"
8+
}
9+
},
10+
"target_overrides": {
11+
"*": {
12+
"target.features_add": ["UVISOR"],
13+
"target.extra_labels_add": ["UVISOR_SUPPORTED"]
14+
}
15+
}
16+
}
17+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Testing when adding two features
2+
3+
expected_results = {
4+
"test_target": {
5+
"desc": "test uvisor feature",
6+
"expected_features": ["UVISOR"]
7+
}
8+
}

0 commit comments

Comments
 (0)