-
Notifications
You must be signed in to change notification settings - Fork 155
wip test #1837
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
base: main
Are you sure you want to change the base?
wip test #1837
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request appears to be for exploring the testing framework, as indicated by the title and description. It includes several temporary changes, such as hardcoded test filters, debug print statements, commented-out functionality, and a new example test file. These changes should be reverted before merging. I've left specific comments on each of these points. The typo fix in docs/src/host-v1.schema.json is a good correction.
| if stem != "testing-ex" { | ||
| println!("SKIPPING: {stem}"); | ||
| continue | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| fn update_generated(sh: &Shell) -> Result<()> { | ||
| // Update man pages (create new templates + sync options) | ||
| man::update_manpages(sh)?; | ||
| // man::update_manpages(sh)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| // Update JSON schemas | ||
| update_json_schemas(sh)?; | ||
| // update_json_schemas(sh)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| let test_command = format!("{} {}", extension, relative_path.display()); | ||
|
|
||
| println!("test_command: {test_command}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| //! by the user - add commands here which otherwise might | ||
| //! end up as a lot of nontrivial bash code. | ||
| #![allow(dead_code)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| **--all** | ||
|
|
||
| Print all configuration | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| # number: 450 | ||
| # tmt: | ||
| # summary: Some random test | ||
| # duration: 5m | ||
| # | ||
| # Verify that something works | ||
|
|
||
| def main[] { | ||
| echo "The test has passed" | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Figuring out how testing framework works