Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/scripts/tests_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ function run_test {
return 0
fi

local right_target
right_target=$(grep -E "^CONFIG_IDF_TARGET=\"$target\"$" "$sdkconfig_path")
if [ -z "$right_target" ]; then
printf "\033[91mError: Sketch %s compiled for different target\n\033[0m\n" "$sketchname"
local compiled_target
compiled_target=$(grep -E "CONFIG_IDF_TARGET=" "$sdkconfig_path" | cut -d'"' -f2)
if [ "$compiled_target" != "$target" ]; then
printf "\033[91mError: Sketch %s compiled for %s, expected %s\033[0m\n" "$sketchname" "$compiled_target" "$target"
printf "\n\n\n"
return 1
fi
Expand Down
1 change: 1 addition & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ pytest-embedded-serial-esp==1.12.0
pytest-embedded-arduino==1.12.0
pytest-embedded-wokwi==1.12.0
pytest-embedded-qemu==1.12.0
esptool==4.8.1
3 changes: 1 addition & 2 deletions tests/validation/gpio/ci.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"platforms": {
"hardware": false,
"qemu": false,
"wokwi": false
"qemu": false
}
}
28 changes: 28 additions & 0 deletions tests/validation/gpio/diagram.esp32p4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"version": 1,
"author": "lucasssvaz",
"editor": "wokwi",
"parts": [
{
"type": "board-esp32-p4-function-ev",
"id": "esp32",
"top": -66.32,
"left": -277.63,
"attrs": {}
},
{
"type": "wokwi-pushbutton",
"id": "btn1",
"top": -128.2,
"left": -19.2,
"attrs": { "color": "green", "bounce": "1" }
}
],
"connections": [
[ "esp32:38", "$serialMonitor:TX", "", [] ],
[ "esp32:37", "$serialMonitor:RX", "", [] ],
[ "btn1:2.r", "esp32:GND.3", "black", [ "h19.4", "v29" ] ],
[ "esp32:0", "btn1:1.l", "blue", [ "h-48", "v-67.2" ] ]
],
"dependencies": {}
}
9 changes: 9 additions & 0 deletions tests/validation/i2c_master/ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"platforms": {
"hardware": false,
"qemu": false
},
"requires": [
"CONFIG_SOC_I2C_SUPPORTED=y"
]
}
24 changes: 24 additions & 0 deletions tests/validation/i2c_master/diagram.esp32.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": 1,
"author": "lucasssvaz",
"editor": "wokwi",
"parts": [
{
"type": "board-esp32-devkit-c-v4",
"id": "esp32",
"top": -57.6,
"left": -177.56,
"attrs": {}
},
{ "type": "wokwi-ds1307", "id": "rtc1", "top": -43.8, "left": -19.1, "attrs": {} }
],
"connections": [
[ "esp32:RX", "$serialMonitor:TX", "", [] ],
[ "esp32:TX", "$serialMonitor:RX", "", [] ],
[ "esp32:22", "rtc1:SCL", "green", [ "h38.4", "v-9.6" ] ],
[ "esp32:21", "rtc1:SDA", "blue", [ "h48", "v-28.8", "h19.2" ] ],
[ "esp32:GND.2", "rtc1:GND", "black", [ "v0" ] ],
[ "rtc1:5V", "esp32:5V", "red", [ "h-28.8", "v-67.6", "h-172.8", "v230.4" ] ]
],
"dependencies": {}
}
25 changes: 25 additions & 0 deletions tests/validation/i2c_master/diagram.esp32c3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": 1,
"author": "lucasssvaz",
"editor": "wokwi",
"parts": [
{
"type": "board-esp32-c3-devkitm-1",
"id": "esp32",
"top": -57.6,
"left": -177.56,
"attrs": {}
},
{ "type": "wokwi-ds1307", "id": "rtc1", "top": -43.8, "left": -19.1, "attrs": {} }
],
"connections": [
[ "esp32:RX", "$serialMonitor:TX", "", [] ],
[ "esp32:TX", "$serialMonitor:RX", "", [] ],
[ "rtc1:5V", "esp32:5V", "red", [ "h-28.8", "v-67.6", "h-172.8", "v230.4" ] ],
[ "esp32:5V.1", "rtc1:5V", "red", [ "h-18.22", "v-144.3", "h153.6", "v48" ] ],
[ "esp32:GND.10", "rtc1:GND", "black", [ "h56.16", "v9.3" ] ],
[ "esp32:8", "rtc1:SDA", "green", [ "h17.76", "v-19.5" ] ],
[ "esp32:9", "rtc1:SCL", "blue", [ "h0" ] ]
],
"dependencies": {}
}
26 changes: 26 additions & 0 deletions tests/validation/i2c_master/diagram.esp32c6.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": 1,
"author": "lucasssvaz",
"editor": "wokwi",
"parts": [
{
"type": "board-esp32-c6-devkitc-1",
"id": "esp32",
"top": -57.6,
"left": -177.56,
"attrs": {}
},
{ "type": "wokwi-ds1307", "id": "rtc1", "top": -43.8, "left": -19.1, "attrs": {} }
],
"connections": [
[ "esp32:RX", "$serialMonitor:TX", "", [] ],
[ "esp32:TX", "$serialMonitor:RX", "", [] ],
[ "rtc1:5V", "esp32:5V", "red", [ "h-28.8", "v-67.6", "h-172.8", "v230.4" ] ],
[ "esp32:5V.1", "rtc1:5V", "red", [ "h-18.22", "v-144.3", "h153.6", "v48" ] ],
[ "esp32:GND.10", "rtc1:GND", "black", [ "h56.16", "v9.3" ] ],
[ "esp32:23", "rtc1:SDA", "green", [ "h17.38", "v-23.51" ] ],
[ "esp32:GND.4", "rtc1:GND", "black", [ "h55.78", "v-4.31" ] ],
[ "esp32:22", "rtc1:SCL", "blue", [ "h26.98", "v-23.51" ] ]
],
"dependencies": {}
}
24 changes: 24 additions & 0 deletions tests/validation/i2c_master/diagram.esp32h2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": 1,
"author": "lucasssvaz",
"editor": "wokwi",
"parts": [
{
"type": "board-esp32-h2-devkitm-1",
"id": "esp32",
"top": -57.6,
"left": -177.56,
"attrs": {}
},
{ "type": "wokwi-ds1307", "id": "rtc1", "top": -43.8, "left": -19.1, "attrs": {} }
],
"connections": [
[ "esp32:RX", "$serialMonitor:TX", "", [] ],
[ "esp32:TX", "$serialMonitor:RX", "", [] ],
[ "esp32:GND.6", "rtc1:GND", "black", [ "h0" ] ],
[ "esp32:5V", "rtc1:5V", "red", [ "h-29.14", "v-160.97", "h172.8", "v48" ] ],
[ "esp32:12", "rtc1:SDA", "green", [ "h36.58", "v-36.17" ] ],
[ "esp32:22", "rtc1:SCL", "blue", [ "v-7.37", "h46.18", "v-38.4" ] ]
],
"dependencies": {}
}
24 changes: 24 additions & 0 deletions tests/validation/i2c_master/diagram.esp32p4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": 1,
"author": "lucasssvaz",
"editor": "wokwi",
"parts": [
{
"type": "board-esp32-p4-function-ev",
"id": "esp32",
"top": -57.6,
"left": -177.56,
"attrs": {}
},
{ "type": "wokwi-ds1307", "id": "rtc1", "top": -197.4, "left": 57.7, "attrs": {} }
],
"connections": [
[ "esp32:38", "$serialMonitor:TX", "", [] ],
[ "esp32:37", "$serialMonitor:RX", "", [] ],
[ "esp32:5V.1", "rtc1:5V", "red", [ "v0" ] ],
[ "esp32:GND.1", "rtc1:GND", "black", [ "v-133.52", "h5.53" ] ],
[ "esp32:7", "rtc1:SDA", "green", [ "v0" ] ],
[ "esp32:8", "rtc1:SCL", "blue", [ "h15.13", "v-114.12" ] ]
],
"dependencies": {}
}
24 changes: 24 additions & 0 deletions tests/validation/i2c_master/diagram.esp32s2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": 1,
"author": "lucasssvaz",
"editor": "wokwi",
"parts": [
{
"type": "board-esp32-s2-devkitm-1",
"id": "esp32",
"top": -57.6,
"left": -177.56,
"attrs": {}
},
{ "type": "wokwi-ds1307", "id": "rtc1", "top": -43.8, "left": -19.1, "attrs": {} }
],
"connections": [
[ "esp32:RX", "$serialMonitor:TX", "", [] ],
[ "esp32:TX", "$serialMonitor:RX", "", [] ],
[ "esp32:GND.2", "rtc1:GND", "black", [ "v0" ] ],
[ "rtc1:5V", "esp32:5V", "red", [ "h-28.8", "v-67.6", "h-172.8", "v230.4" ] ],
[ "esp32:8", "rtc1:SDA", "green", [ "h-19.47", "v-119.51", "h144", "v57.6" ] ],
[ "esp32:9", "rtc1:SCL", "blue", [ "h-29.07", "v-138.71", "h144", "v76.8" ] ]
],
"dependencies": {}
}
24 changes: 24 additions & 0 deletions tests/validation/i2c_master/diagram.esp32s3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"version": 1,
"author": "lucasssvaz",
"editor": "wokwi",
"parts": [
{
"type": "board-esp32-s3-devkitc-1",
"id": "esp32",
"top": -57.6,
"left": -177.56,
"attrs": {}
},
{ "type": "wokwi-ds1307", "id": "rtc1", "top": -43.8, "left": -19.1, "attrs": {} }
],
"connections": [
[ "esp32:RX", "$serialMonitor:TX", "", [] ],
[ "esp32:TX", "$serialMonitor:RX", "", [] ],
[ "esp32:GND.2", "rtc1:GND", "black", [ "v0" ] ],
[ "rtc1:5V", "esp32:5V", "red", [ "h-28.8", "v-67.6", "h-172.8", "v230.4" ] ],
[ "esp32:8", "rtc1:SDA", "green", [ "h-19.47", "v-119.51", "h144", "v32.93", "h38.35" ] ],
[ "esp32:9", "rtc1:SCL", "blue", [ "h-29.07", "v-138.71", "h144", "v32.93", "h47.95" ] ]
],
"dependencies": {}
}
Loading
Loading