nihalpasham / rustBoot

rustBoot is a standalone bootloader written entirely in `Rust`, designed to run on anything from a microcontroller to a system on chip. It can be used to boot into bare-metal firmware or Linux.
MIT License
214 stars 21 forks source link

Added the test case for mcusigner. #48

Closed Strange21 closed 2 years ago

Strange21 commented 2 years ago

Tested the mcusigner implementation and added test case for the signature_tag_length. change log:

  1. mcusigner.rs --> added test case

Test case log

Executing task: cargo test --package rbsigner --bin rbsigner -- mcusigner::tests::signature_tag_len_test --exact --nocapture <

   Compiling rbsigner v0.1.0 (/home/anand/Desktop/dev_space/Prod/rustBoot_myforked/rbsigner)
    Finished test [unoptimized + debuginfo] target(s) in 0.60s
     Running unittests src/main.rs (target/debug/deps/rbsigner-788554ad0c9b6684)

running 1 test
signature_tag: [0, 0]
signaure_len: [255, 255]
test mcusigner::tests::signature_tag_len_test ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 9 filtered out; finished in 0.00s