-
Notifications
You must be signed in to change notification settings - Fork 157
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -779,6 +779,11 @@ pub(crate) fn update_integration() -> Result<()> { | |
| continue; | ||
| }; | ||
|
|
||
| if stem != "testing-ex" { | ||
| println!("SKIPPING: {stem}"); | ||
| continue | ||
| } | ||
|
|
||
| let content = | ||
| std::fs::read_to_string(&path).with_context(|| format!("Reading {}", filename))?; | ||
|
|
||
|
|
@@ -814,6 +819,8 @@ pub(crate) fn update_integration() -> Result<()> { | |
|
|
||
| let test_command = format!("{} {}", extension, relative_path.display()); | ||
|
|
||
| println!("test_command: {test_command}"); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| // Check if test wants bind storage | ||
| let try_bind_storage = metadata | ||
| .extra | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,8 @@ | |
| //! by the user - add commands here which otherwise might | ||
| //! end up as a lot of nontrivial bash code. | ||
|
|
||
| #![allow(dead_code)] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| use std::fs::File; | ||
| use std::io::{BufRead, BufReader, BufWriter, Write}; | ||
| use std::process::Command; | ||
|
|
@@ -392,10 +394,10 @@ fn update_json_schemas(sh: &Shell) -> Result<()> { | |
| #[context("Updating generated files")] | ||
| fn update_generated(sh: &Shell) -> Result<()> { | ||
| // Update man pages (create new templates + sync options) | ||
| man::update_manpages(sh)?; | ||
| // man::update_manpages(sh)?; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| // Update JSON schemas | ||
| update_json_schemas(sh)?; | ||
| // update_json_schemas(sh)?; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| // Update TMT integration.fmf | ||
| tmt::update_integration()?; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,13 @@ filesystem type from the container image. | |
| At the current time, the only output key is `root-fs-type` which is a | ||
| string-valued filesystem name suitable for passing to `mkfs.\$type`. | ||
|
|
||
| # OPTIONS | ||
|
|
||
| <!-- BEGIN GENERATED OPTIONS --> | ||
| **--all** | ||
|
|
||
| Print all configuration | ||
|
|
||
|
Comment on lines
+25
to
+28
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| <!-- END GENERATED OPTIONS --> | ||
|
|
||
| # VERSION | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # number: 450 | ||
| # tmt: | ||
| # summary: Some random test | ||
| # duration: 5m | ||
| # | ||
| # Verify that something works | ||
|
|
||
| def main[] { | ||
| echo "The test has passed" | ||
| } | ||
|
Comment on lines
+1
to
+10
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,70 +1,7 @@ | ||
| # THIS IS GENERATED CODE - DO NOT EDIT | ||
| # Generated by: cargo xtask tmt | ||
|
|
||
| /test-01-readonly: | ||
| summary: Execute booted readonly/nondestructive tests | ||
| duration: 30m | ||
| test: nu booted/test-01-readonly.nu | ||
|
|
||
| /test-20-image-pushpull-upgrade: | ||
| summary: Execute local upgrade tests | ||
| duration: 30m | ||
| test: nu booted/test-image-pushpull-upgrade.nu | ||
|
|
||
| /test-21-logically-bound-switch: | ||
| summary: Execute logically bound images tests for switching images | ||
| duration: 30m | ||
| test: nu booted/test-logically-bound-switch.nu | ||
|
|
||
| /test-22-logically-bound-install: | ||
| summary: Execute logically bound images tests for installing image | ||
| duration: 30m | ||
| test: nu booted/test-logically-bound-install.nu | ||
|
|
||
| /test-23-install-outside-container: | ||
| summary: Execute tests for installing outside of a container | ||
| duration: 30m | ||
| test: nu booted/test-install-outside-container.nu | ||
|
|
||
| /test-23-usroverlay: | ||
| summary: Execute tests for bootc usrover | ||
| duration: 30m | ||
| test: nu booted/test-usroverlay.nu | ||
|
|
||
| /test-24-image-upgrade-reboot: | ||
| summary: Execute local upgrade tests | ||
| duration: 30m | ||
| test: nu booted/test-image-upgrade-reboot.nu | ||
|
|
||
| /test-25-soft-reboot: | ||
| summary: Execute soft reboot test | ||
| duration: 30m | ||
| test: nu booted/test-soft-reboot.nu | ||
|
|
||
| /test-26-examples-build: | ||
| summary: Test bootc examples build scripts | ||
| duration: 45m | ||
| adjust: | ||
| - when: running_env != image_mode | ||
| enabled: false | ||
| because: packit tests use RPM bootc and does not install /usr/lib/bootc/initramfs-setup | ||
| test: bash booted/test-26-examples-build.sh | ||
|
|
||
| /test-27-custom-selinux-policy: | ||
| summary: Execute custom selinux policy test | ||
| duration: 30m | ||
| adjust: | ||
| - when: running_env != image_mode | ||
| enabled: false | ||
| because: these tests require features only available in image mode | ||
| test: nu booted/test-custom-selinux-policy.nu | ||
|
|
||
| /test-28-factory-reset: | ||
| summary: Execute factory reset tests | ||
| duration: 30m | ||
| test: nu booted/test-factory-reset.nu | ||
|
|
||
| /test-29-soft-reboot-selinux-policy: | ||
| summary: Test soft reboot with SELinux policy changes | ||
| duration: 30m | ||
| test: nu booted/test-soft-reboot-selinux-policy.nu | ||
| /test-450-testing-ex: | ||
| summary: Some random test | ||
| duration: 5m | ||
| test: nu booted/test-testing-ex.nu |
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.
This block of code hardcodes the test execution to only run for
testing-ex. This appears to be for debugging and should be removed before merging to allow all tests to be processed.