mirror of https://github.com/ARMmbed/mbed-os.git
Test exclude within include
parent
a8323337aa
commit
92475ae96c
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"name": "lib2",
|
||||||
|
"config": {
|
||||||
|
"test": {
|
||||||
|
"value": "BAD"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"name": "lib1",
|
||||||
|
"config": {
|
||||||
|
"test": "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": ["lib1/lib2/lib2.c"],
|
||||||
|
"included_source": ["lib1/lib1.cpp"]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue