Import Mbed OS hard-float snapshot
This commit is contained in:
0
tools/test/config/requires_omit_lib/lib1/lib1.cpp
Normal file
0
tools/test/config/requires_omit_lib/lib1/lib1.cpp
Normal file
6
tools/test/config/requires_omit_lib/lib1/mbed_lib.json
Normal file
6
tools/test/config/requires_omit_lib/lib1/mbed_lib.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "lib1",
|
||||
"config": {
|
||||
"test": "BAD"
|
||||
}
|
||||
}
|
||||
0
tools/test/config/requires_omit_lib/lib2/lib2.c
Normal file
0
tools/test/config/requires_omit_lib/lib2/lib2.c
Normal file
8
tools/test/config/requires_omit_lib/lib2/mbed_lib.json
Normal file
8
tools/test/config/requires_omit_lib/lib2/mbed_lib.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "lib2",
|
||||
"config": {
|
||||
"test": {
|
||||
"value": "BAD"
|
||||
}
|
||||
}
|
||||
}
|
||||
11
tools/test/config/requires_omit_lib/mbed_app.json
Normal file
11
tools/test/config/requires_omit_lib/mbed_app.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"requires" : ["lib1"],
|
||||
"target_overrides": {
|
||||
"should_fail": {
|
||||
"lib2.test": "GOOD"
|
||||
},
|
||||
"should_pass": {
|
||||
"lib1.test": "GOOD"
|
||||
}
|
||||
}
|
||||
}
|
||||
26
tools/test/config/requires_omit_lib/targets.json
Normal file
26
tools/test/config/requires_omit_lib/targets.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"should_fail": {
|
||||
"supported_toolchains": ["GCC_ARM"],
|
||||
"core": "Cortex-M0",
|
||||
"extra_labels": [],
|
||||
"features": [],
|
||||
"c_lib": "std",
|
||||
"supported_c_libs": {
|
||||
"arm": ["std"],
|
||||
"gcc_arm": ["std", "small"],
|
||||
"iar": ["std"]
|
||||
}
|
||||
},
|
||||
"should_pass": {
|
||||
"supported_toolchains": ["GCC_ARM"],
|
||||
"core": "Cortex-M0",
|
||||
"extra_labels": [],
|
||||
"features": [],
|
||||
"c_lib": "std",
|
||||
"supported_c_libs": {
|
||||
"arm": ["std"],
|
||||
"gcc_arm": ["std", "small"],
|
||||
"iar": ["std"]
|
||||
}
|
||||
}
|
||||
}
|
||||
10
tools/test/config/requires_omit_lib/test_data.json
Normal file
10
tools/test/config/requires_omit_lib/test_data.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"should_fail": {
|
||||
"exception_msg": "Attempt to override undefined parameter 'lib2.test' in 'application[should_fail]'"
|
||||
},
|
||||
"should_pass": {
|
||||
"lib1.test": "GOOD",
|
||||
"excluded_source": ["lib2/lib2.c"],
|
||||
"included_source": ["lib1/lib1.cpp"]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user