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

Add tests and configure a CI pipeline #5

Open
pulsastrix opened this issue Oct 16, 2024 · 0 comments
Open

Add tests and configure a CI pipeline #5

pulsastrix opened this issue Oct 16, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@pulsastrix
Copy link
Member

pulsastrix commented Oct 16, 2024

In order to properly test changes to this crate without using real hardware, we should add a CI environment that allows running unit tests.

Additionally, we should add some tests (and make the examples we do have runnable as doctests).

Notes:

  • libuci has a default for the directory UCI configuration files are stored in. In order to run tests, we either have to always call set_config_dir for every test or wrap all tests with a call to chroot.
  • In order to run tests in a CI environment, it might suffice to either allow statically linking to libuci or to provide libuci in the CI environment. Setting up a full OpenWRT instance should not be necessary (I think).
@pulsastrix pulsastrix added the enhancement New feature or request label Oct 16, 2024
@pulsastrix pulsastrix self-assigned this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant