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 support for using 'test-mode' in the test system. #593

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

mattiaswal
Copy link
Contributor

@mattiaswal mattiaswal commented Aug 30, 2024

Description

Implement a new YANG model "infix-test" which today only contains two actions, reset and override-startup,
which both are used in the test framework for infix.

Instead of as before copy factory config to running, it is now copy the new test-config.cfg to running,
this gives the advantage that it is possible to test an image independently of what the factory default
configuration is set to.

Other information

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

@mattiaswal mattiaswal changed the title Implement test plugin Add support for using 'test-mode' in the test system. Aug 30, 2024
Copy link
Contributor

@troglobit troglobit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some very minor comments.

configs/x86_64_defconfig Outdated Show resolved Hide resolved
src/test-mode/src/test-mode.c Outdated Show resolved Hide resolved
This intoduce a new sysrepo plugin to handle a new YANG
model 'infix-test'. Today only contains the actions.

This is required to run tests on infix using infamy.

This is a part of #561

Signed-off-by: Mattias Walström <lazzer@gmail.com>
Instead of copy factoy config to reset between tests,
use the new test-config.cfg.

Change the logic in the factory config since the default values have changed.
@mattiaswal mattiaswal merged commit dc4c38e into main Aug 30, 2024
4 checks passed
@mattiaswal mattiaswal deleted the implement-test-plugin branch August 30, 2024 15:40
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