Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imgtool: initial sanity test (for CI build) #1819

Merged
merged 4 commits into from
May 23, 2024

Commits on Dec 15, 2023

  1. ci: add imgtool test to workflows

    Add imgtool test call to workflows, use pytest and
    publish artifacts with test results.
    
    Also enable test run on 'pull_request', but limit
    the previous default imgtool_run.sh run ('environment' job)
    to run on 'push' event only (the same behaviour as before).
    
    Signed-off-by: Denis Mingulov <denis@mingulov.com>
    mingulov committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    ecd3574 View commit details
    Browse the repository at this point in the history
  2. imgtool: fixed keys/general.py to pass existing unittests

    keys.KeyClass._emit is able to use 'file' parameter not as a file
    but some object (not only sys.stdout but io.StringIO, like by
    tests).
    
    Fixed all explicit checks for sys.stdio usage in favor of
    io.TextIOBase, also improve a single unit test to cover
    also all the changed methods.
    
    Signed-off-by: Denis Mingulov <denis@mingulov.com>
    mingulov committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    fe666fc View commit details
    Browse the repository at this point in the history
  3. imgtool: Fixed missing dependency to 'pyyaml' (for dumpinfo)

    imgtool's dumpinfo depends to pyyaml package, so add it to
    requirements.
    
    Signed-off-by: Denis Mingulov <denis@mingulov.com>
    mingulov committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    0c0a218 View commit details
    Browse the repository at this point in the history
  4. imgtool: initial sanity test

    An initial sanity test for imgtool is added, checks
    different commands for key operations (keygen, getpriv,
    getpub and getpubhash).
    
    Also very basic test for sign / verify is added.
    
    Some tests are disabled (marked as 'xfail') due to
    the missing implementation.
    
    Signed-off-by: Denis Mingulov <denis@mingulov.com>
    mingulov committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    be8acf9 View commit details
    Browse the repository at this point in the history