Skip to content

Commit 9f6a096

Browse files
committed
Add test case for requires from a library
1 parent 243b079 commit 9f6a096

File tree

6 files changed

+48
-0
lines changed

6 files changed

+48
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "lib1",
3+
"requires": ["lib2"],
4+
"config": {
5+
"test": "BAD"
6+
}
7+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "lib2",
3+
"requires": ["lib3"],
4+
"config": {
5+
"test": {
6+
"value": "BAD"
7+
}
8+
}
9+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "lib3",
3+
"config": {
4+
"test": "BAD"
5+
}
6+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"requires" : ["lib1"],
3+
"target_overrides": {
4+
"test_target": {
5+
"lib3.test": "GOOD",
6+
"lib2.test": "GOOD",
7+
"lib1.test": "GOOD"
8+
}
9+
}
10+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"test_target": {
3+
"supported_toolchains": ["GCC_ARM"],
4+
"core": "Cortex-M0",
5+
"extra_labels": [],
6+
"features": [],
7+
"default_lib": "std"
8+
}
9+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"test_target": {
3+
"lib3.test": "GOOD",
4+
"lib2.test": "GOOD",
5+
"lib1.test": "GOOD"
6+
}
7+
}

0 commit comments

Comments
 (0)