Skip to content

Commit f864b84

Browse files
authored
Merge pull request #1983 from mbedmicro/fix_config_tests
Fix K64F-based config tests
2 parents 35be105 + 20583ba commit f864b84

File tree

12 files changed

+56
-7
lines changed

12 files changed

+56
-7
lines changed

tools/test/config_test/test12/mbed_app.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
{
2+
"custom_targets": {
3+
"test_target": {
4+
"core": "Cortex-M0",
5+
"extra_labels": [],
6+
"features": [],
7+
"default_build": "standard"
8+
}
9+
},
210
"target_overrides": {
3-
"K64F": {
11+
"test_target": {
412
"lib1.p1": "v_p1_lib1_app",
513
"lib2.p1": "v_p1_lib2_app"
614
}

tools/test/config_test/test12/test_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# named p1 from both lib1 and lib2.
44

55
expected_results = {
6-
"K64F": {
6+
"test_target": {
77
"desc": "app without its own parameters overrides parameters in other libs",
88
"lib1.p1": "v_p1_lib1_app",
99
"lib1.p2": "v_p2_lib1",
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
{
2+
"custom_targets": {
3+
"test_target": {
4+
"core": "Cortex-M0",
5+
"extra_labels": [],
6+
"features": [],
7+
"default_build": "standard"
8+
}
9+
},
210
"macros": ["APP1=10", "APP2", "LIB2_1=5"]
311
}

tools/test/config_test/test16/test_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# no error should be raised
66

77
expected_results = {
8-
"K64F": {
8+
"test_target": {
99
"desc": "test macro definitions",
1010
"expected_macros": ["APP1=10", "APP2", "LIB1_1=1","LIB1_2", "LIB2_1=5"]
1111
}

tools/test/config_test/test21/mbed_app.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
2+
"custom_targets": {
3+
"test_target": {
4+
"core": "Cortex-M0",
5+
"extra_labels": [],
6+
"features": [],
7+
"default_build": "standard"
8+
}
9+
},
210
"target_overrides": {
311
"*": {
412
"target.features": ["IPV4", "IPV6"]

tools/test/config_test/test21/test_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Testing basic features
22

33
expected_results = {
4-
"K64F": {
4+
"test_target": {
55
"desc": "test basic features",
66
"expected_features": ["IPV4", "IPV6"]
77
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
{
2+
"custom_targets": {
3+
"test_target": {
4+
"core": "Cortex-M0",
5+
"extra_labels": [],
6+
"features": [],
7+
"default_build": "standard"
8+
}
9+
},
210
"target_overrides": {
311
"*": {
412
"target.features_add": ["IPV6"]
513
}
614
}
715
}
16+

tools/test/config_test/test22/test_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Testing when adding two features
22

33
expected_results = {
4-
"K64F": {
4+
"test_target": {
55
"desc": "test composing features",
66
"expected_features": ["IPV4", "IPV6"]
77
}

tools/test/config_test/test24/mbed_app.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
2+
"custom_targets": {
3+
"test_target": {
4+
"core": "Cortex-M0",
5+
"extra_labels": [],
6+
"features": [],
7+
"default_build": "standard"
8+
}
9+
},
210
"target_overrides": {
311
"*": {
412
"target.features_add": ["IPV4"]

tools/test/config_test/test24/test_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Testing if features can enable other features
22

33
expected_results = {
4-
"K64F": {
4+
"test_target": {
55
"desc": "test recursive features",
66
"expected_features": ["IPV4", "IPV6", "UVISOR"]
77
}

tools/test/config_test/test26/mbed_app.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
{
2+
"custom_targets": {
3+
"test_target": {
4+
"core": "Cortex-M0",
5+
"extra_labels": [],
6+
"features": [],
7+
"default_build": "standard"
8+
}
9+
},
210
"target_overrides": {
311
"*": {
412
"target.features_add": ["IPV4"],

tools/test/config_test/test26/test_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Testing if config settings work in recursive features
22

33
expected_results = {
4-
"K64F": {
4+
"test_target": {
55
"desc": "test recursive feature configurations",
66
"lib2.test": "GOOD"
77
}

0 commit comments

Comments
 (0)