diff --git a/crates/xtask/src/tmt.rs b/crates/xtask/src/tmt.rs index 120b988e8..a6ccffb1b 100644 --- a/crates/xtask/src/tmt.rs +++ b/crates/xtask/src/tmt.rs @@ -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}"); + // Check if test wants bind storage let try_bind_storage = metadata .extra diff --git a/crates/xtask/src/xtask.rs b/crates/xtask/src/xtask.rs index 76a5a9b95..a6f9969f2 100644 --- a/crates/xtask/src/xtask.rs +++ b/crates/xtask/src/xtask.rs @@ -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)] + 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)?; // Update JSON schemas - update_json_schemas(sh)?; + // update_json_schemas(sh)?; // Update TMT integration.fmf tmt::update_integration()?; diff --git a/docs/src/host-v1.schema.json b/docs/src/host-v1.schema.json index e0bdf2880..4aa4161f8 100644 --- a/docs/src/host-v1.schema.json +++ b/docs/src/host-v1.schema.json @@ -199,7 +199,7 @@ "description": "Bootloader type to determine whether system was booted via Grub or Systemd", "oneOf": [ { - "description": "Use Grub as the booloader", + "description": "Use Grub as the bootloader", "type": "string", "const": "Grub" }, diff --git a/docs/src/man/bootc-install-print-configuration.8.md b/docs/src/man/bootc-install-print-configuration.8.md index bf50664a5..67928c9f1 100644 --- a/docs/src/man/bootc-install-print-configuration.8.md +++ b/docs/src/man/bootc-install-print-configuration.8.md @@ -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 + +**--all** + + Print all configuration + # VERSION diff --git a/tmt/plans/integration.fmf b/tmt/plans/integration.fmf index 87dfb10c3..f3a8808ce 100644 --- a/tmt/plans/integration.fmf +++ b/tmt/plans/integration.fmf @@ -37,97 +37,10 @@ execute: how: tmt # BEGIN GENERATED PLANS -/plan-01-readonly: - summary: Execute booted readonly/nondestructive tests +/plan-450-testing-ex: + summary: Some random test discover: how: fmf test: - - /tmt/tests/tests/test-01-readonly - extra-try_bind_storage: true - -/plan-20-image-pushpull-upgrade: - summary: Execute local upgrade tests - discover: - how: fmf - test: - - /tmt/tests/tests/test-20-image-pushpull-upgrade - -/plan-21-logically-bound-switch: - summary: Execute logically bound images tests for switching images - discover: - how: fmf - test: - - /tmt/tests/tests/test-21-logically-bound-switch - -/plan-22-logically-bound-install: - summary: Execute logically bound images tests for installing image - discover: - how: fmf - test: - - /tmt/tests/tests/test-22-logically-bound-install - -/plan-23-install-outside-container: - summary: Execute tests for installing outside of a container - discover: - how: fmf - test: - - /tmt/tests/tests/test-23-install-outside-container - -/plan-23-usroverlay: - summary: Execute tests for bootc usrover - discover: - how: fmf - test: - - /tmt/tests/tests/test-23-usroverlay - -/plan-24-image-upgrade-reboot: - summary: Execute local upgrade tests - discover: - how: fmf - test: - - /tmt/tests/tests/test-24-image-upgrade-reboot - extra-try_bind_storage: true - -/plan-25-soft-reboot: - summary: Execute soft reboot test - discover: - how: fmf - test: - - /tmt/tests/tests/test-25-soft-reboot - -/plan-26-examples-build: - summary: Test bootc examples build scripts - discover: - how: fmf - test: - - /tmt/tests/tests/test-26-examples-build - adjust: - - when: running_env != image_mode - enabled: false - because: packit tests use RPM bootc and does not install /usr/lib/bootc/initramfs-setup - -/plan-27-custom-selinux-policy: - summary: Execute custom selinux policy test - discover: - how: fmf - test: - - /tmt/tests/tests/test-27-custom-selinux-policy - adjust: - - when: running_env != image_mode - enabled: false - because: these tests require features only available in image mode - -/plan-28-factory-reset: - summary: Execute factory reset tests - discover: - how: fmf - test: - - /tmt/tests/tests/test-28-factory-reset - -/plan-29-soft-reboot-selinux-policy: - summary: Test soft reboot with SELinux policy changes - discover: - how: fmf - test: - - /tmt/tests/tests/test-29-soft-reboot-selinux-policy + - /tmt/tests/tests/test-450-testing-ex # END GENERATED PLANS diff --git a/tmt/tests/booted/test-testing-ex.nu b/tmt/tests/booted/test-testing-ex.nu new file mode 100644 index 000000000..0ee06dab6 --- /dev/null +++ b/tmt/tests/booted/test-testing-ex.nu @@ -0,0 +1,10 @@ +# number: 450 +# tmt: +# summary: Some random test +# duration: 5m +# +# Verify that something works + +def main[] { + echo "The test has passed" +} diff --git a/tmt/tests/tests.fmf b/tmt/tests/tests.fmf index b867456a4..7caa387c2 100644 --- a/tmt/tests/tests.fmf +++ b/tmt/tests/tests.fmf @@ -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