mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-30 13:50:38 +00:00

* 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
21 lines
500 B
Rust
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);
|
|
}
|
|
}
|