Skip to content

Commit b976277

Browse files
committed
tests: Add a simple test for the JSON configurations option.
Signed-off-by: Abdelatif Guettouche <[email protected]>
1 parent 80b75cf commit b976277

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

Diff for: tests/democfg/cfg.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"targets": [
3+
{
4+
"name": "esp32",
5+
"fqbn": "espressif:esp32:esp32:PSRAM=enabled,PartitionScheme=huge_app,FlashMode=dio"
6+
},
7+
{
8+
"name": "esp32s2",
9+
"fqbn": "espressif:esp32:esp32s2:PSRAM=enabled,PartitionScheme=huge_app"
10+
},
11+
{
12+
"name": "esp32c3",
13+
"fqbn": "espressif:esp32:esp32c3:PartitionScheme=huge_app"
14+
},
15+
{
16+
"name": "esp32s3",
17+
"fqbn": "espressif:esp32:esp32s3:PSRAM=opi,USBMode=default,PartitionScheme=huge_app"
18+
}
19+
]
20+
}

Diff for: tests/democfg/democfg.ino

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
void setup(){
2+
Serial.begin(115200);
3+
while (!Serial) {
4+
;
5+
}
6+
7+
Serial.println("Hello cfg!");
8+
}
9+
10+
void loop(){
11+
}

Diff for: tests/democfg/test_democfg.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def test_hello_world(dut):
2+
dut.expect('Hello cfg!')

0 commit comments

Comments
 (0)