mirror of https://github.com/ARMmbed/mbed-os.git
Test include within an exclude
parent
5335faf6c2
commit
a8323337aa
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"name": "lib1",
|
||||
"config": {
|
||||
"test": "BAD"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"name": "lib2",
|
||||
"config": {
|
||||
"test": {
|
||||
"value": "BAD"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"requires" : ["lib1"],
|
||||
"target_overrides": {
|
||||
"should_fail": {
|
||||
"lib2.test": "GOOD"
|
||||
},
|
||||
"should_pass": {
|
||||
"lib1.test": "GOOD"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"should_fail": {
|
||||
"supported_toolchains": ["GCC_ARM"],
|
||||
"core": "Cortex-M0",
|
||||
"extra_labels": [],
|
||||
"features": [],
|
||||
"default_lib": "std"
|
||||
},
|
||||
"should_pass": {
|
||||
"supported_toolchains": ["GCC_ARM"],
|
||||
"core": "Cortex-M0",
|
||||
"extra_labels": [],
|
||||
"features": [],
|
||||
"default_lib": "std"
|
||||
}
|
||||
}
|
|
@ -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": ["lib2/lib1/lib1.cpp"]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue