Skip to content

Commit a832333

Browse files
committed
Test include within an exclude
1 parent 5335faf commit a832333

File tree

7 files changed

+51
-0
lines changed

7 files changed

+51
-0
lines changed

tools/test/config/requires_omit_lib_recursive/lib2/lib1/lib1.cpp

Whitespace-only changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "lib1",
3+
"config": {
4+
"test": "BAD"
5+
}
6+
}

tools/test/config/requires_omit_lib_recursive/lib2/lib2.c

Whitespace-only changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "lib2",
3+
"config": {
4+
"test": {
5+
"value": "BAD"
6+
}
7+
}
8+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"requires" : ["lib1"],
3+
"target_overrides": {
4+
"should_fail": {
5+
"lib2.test": "GOOD"
6+
},
7+
"should_pass": {
8+
"lib1.test": "GOOD"
9+
}
10+
}
11+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"should_fail": {
3+
"supported_toolchains": ["GCC_ARM"],
4+
"core": "Cortex-M0",
5+
"extra_labels": [],
6+
"features": [],
7+
"default_lib": "std"
8+
},
9+
"should_pass": {
10+
"supported_toolchains": ["GCC_ARM"],
11+
"core": "Cortex-M0",
12+
"extra_labels": [],
13+
"features": [],
14+
"default_lib": "std"
15+
}
16+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"should_fail": {
3+
"exception_msg": "Attempt to override undefined parameter 'lib2.test' in 'application[should_fail]'"
4+
},
5+
"should_pass": {
6+
"lib1.test": "GOOD",
7+
"excluded_source": ["lib2/lib2.c"],
8+
"included_source": ["lib2/lib1/lib1.cpp"]
9+
}
10+
}

0 commit comments

Comments
 (0)