Add failing test that asserts mbed_app.json can require

pull/9561/head
Jimmy Brisson 2019-01-15 17:04:56 -06:00
parent e2849e6201
commit dea8ea9f77
5 changed files with 49 additions and 0 deletions

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,8 @@
{
"name": "lib2",
"config": {
"test": {
"value": "BAD"
}
}
}

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,8 @@
{
"should_fail": {
"exception_msg": "Attempt to override undefined parameter 'lib2.test' in 'application[should_fail]'"
},
"should_pass": {
"lib1.test": "GOOD"
}
}