Skip to content

Commit

Permalink
Add H2 into test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajSadel committed Nov 27, 2023
1 parent 8b62619 commit e5b4547
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion esp-wifi/automated-tests/test_ble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use esp_backtrace as _;
use esp_println::println;
use esp_wifi::{ble::controller::BleConnector, initialize, EspWifiInitFor};
use examples_util::hal;
use hal::{clock::ClockControl, peripherals::*, prelude::*, Rng, IO};
use hal::{clock::ClockControl, peripherals::*, prelude::*, Rng};
#[path = "../../examples-util/util.rs"]
mod examples_util;

Expand Down
5 changes: 4 additions & 1 deletion run_tests.bat
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ copy ..\target\riscv32imac-unknown-none-elf\release\examples\open_access_point .
copy ..\target\riscv32imac-unknown-none-elf\release\examples\test_connect ..\tmp\esp32c6
copy ..\target\riscv32imac-unknown-none-elf\release\examples\test_ble ..\tmp\esp32c6

cargo +nightly build --release --example test_ble --target riscv32imac-unknown-none-elf --no-default-features --features esp32h2,esp32h2-hal/default,esp32h2-hal/embassy-time-timg0,ble
copy ..\target\riscv32imac-unknown-none-elf\release\examples\test_ble ..\tmp\esp32h2

cd ..\tmp
echo "Connect ESP32, ESP32-C2, ESP32-C3, ESP32-C6"
echo "Connect ESP32, ESP32-C2, ESP32-C3, ESP32-C6, ESP32-H2"
pause
esp-testrun --esp32=esp32 --esp32c2=esp32c2 --esp32c3=esp32c3 --esp32c6=esp32c6

Expand Down
8 changes: 8 additions & 0 deletions smoketest.bat
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,11 @@ cargo +nightly esp32c6 --example esp_now --release --features "esp-now"
cargo +nightly esp32c6 --example embassy_esp_now --release --features "async,esp-now"
cargo +nightly esp32c6 --example access_point --release --features "wifi"
cargo +nightly esp32c6 --example embassy_access_point --release --features "async,wifi,embassy-net"

set CARGO_PROFILE_RELEASE_OPT_LEVEL=3
set CARGO_PROFILE_RELEASE_LTO=off
echo.
echo Connect ESP32-H2
pause
cargo +nightly esp32h2 --example ble --release --no-default-features --features "ble"
cargo +nightly esp32h2 --example embassy_ble --release --no-default-features --features "async,ble"

0 comments on commit e5b4547

Please sign in to comment.