Test exclude within include

pull/9561/head
Jimmy Brisson 2019-01-31 11:13:52 -06:00
parent a8323337aa
commit 92475ae96c
7 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,8 @@
{
"name": "lib2",
"config": {
"test": {
"value": "BAD"
}
}
}

View File

@ -0,0 +1,6 @@
{
"name": "lib1",
"config": {
"test": "BAD"
}
}

View File

@ -0,0 +1,11 @@
{
"requires" : ["lib1"],
"target_overrides": {
"should_fail": {
"lib2.test": "GOOD"
},
"should_pass": {
"lib1.test": "GOOD"
}
}
}

View File

@ -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"
}
}

View 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": ["lib1/lib2/lib2.c"],
"included_source": ["lib1/lib1.cpp"]
}
}