esp-hal/hil-test/tests/otadata.rs
Björn Quentin 45248100f4
Simple ota example (#3629)
* Fix esp-bootloader-esp-idf

* Use OTA enabled partition table for examples

* Add simple OTA example

* CHANGELOG.md

* Create a dummy `ota_image` in CI

* mkdir

* Remove unnecessary details from CHANGELOG

* Make non-Window's users life easier

* Test ROM function in esp-bootloader-esp-idf

* Fix
2025-06-13 13:42:09 +00:00

21 lines
500 B
Rust

//! Tests parts of esp-bootloader-esp-idf's otadata related functionality not
//! testable on the host
#![no_std]
#![no_main]
use hil_test as _;
esp_bootloader_esp_idf::esp_app_desc!();
#[cfg(test)]
#[embedded_test::tests(default_timeout = 3)]
mod tests {
#[test]
fn test_crc_rom_function() {
let crc = esp_bootloader_esp_idf::Crc32ForTesting::new();
let res = crc.crc(&[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]);
assert_eq!(res, 436745307);
}
}