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

feat(test-framework): Add a test-framework to bao #154

Open
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

miguelafsilva5
Copy link
Member

@miguelafsilva5 miguelafsilva5 commented Jun 5, 2024

PR Description

This PR integrates a test framework into bao-hypervisor. This is done by adding 2 submodules:

  • bao-tests : This repo contains the python scripts responsible for building the system, connect to the board under test, and log the test results. It also contains the C code required to declare and implement tests.
  • bao-nix : This repo is comprised of several nix packages used to build the whole system stack (toolchains, firmware, bao, guests, etc)

Furthermore, this PR includes a directory dedicated to the implementation of test setups (recipes).
More info on how to use is available in tests/README.md.

This PR is currently working for qemu-aarch64-virt and qemu-riscv64-virt

This is the initial commit of adding the test-framework. It creates the tests
directory and adds a README file.

Signed-off-by: Miguel Silva <[email protected]>
The patch is currently use to add the framework entry point to run all
tests in the main of the baremetal application.

Signed-off-by: Miguel Silva <[email protected]>
The test-framework clones the bao-hypervisor but does not need to initialize
all the submodules. When the ci in not cloned, the Makefile issues an error
because it cannot find the ci.mk.

Signed-off-by: Miguel Silva <[email protected]>
@DavidMCerdeira DavidMCerdeira force-pushed the main branch 2 times, most recently from 59a293c to 8837766 Compare July 16, 2024 10:47
@miguelafsilva5 miguelafsilva5 force-pushed the feat/test-framework branch 6 times, most recently from 2d90e77 to 6a6ab29 Compare July 17, 2024 13:45
The patch is currently use to add the framework entry point to run all
tests in the main of the baremetal application.

Signed-off-by: Miguel Silva <[email protected]>
The test-framework clones the bao-hypervisor but does not need to initialize
all the submodules. When the ci in not cloned, the Makefile issues an error
because it cannot find the ci.mk.

Signed-off-by: Miguel Silva <[email protected]>
@miguelafsilva5 miguelafsilva5 marked this pull request as ready for review July 17, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants