Skip to content

Commit

Permalink
test: run tmt integration test on testing farm
Browse files Browse the repository at this point in the history
build.fmf: used to deploy testing farm runner and run
tmt integration on it
build-tmt.fmf: tmt test to work with discover.fmf which is
requited to make .git always present

Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
  • Loading branch information
henrywang committed Jun 19, 2024
1 parent 9be5830 commit c03c697
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
30 changes: 30 additions & 0 deletions plans/build.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
provision:
hardware:
cpu:
processors: ">= 2"
memory: ">= 6 GB"
virtualization:
is-supported: true
prepare:
- how: install
package:
- cargo
- zstd
- git
- libzstd-devel
- openssl-devel
- ostree-devel
- make
- jq
- podman
- skopeo
- tmt+provision-virtual
- how: shell
script: systemctl start libvirtd
execute:
how: tmt
discover:
how: fmf
test:
- /build-tmt/build-image
- /build-tmt/run-tmt
6 changes: 3 additions & 3 deletions plans/integration.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
provision:
how: virtual
# Generated by `cargo xtask `
image: file://./target/testbootc-cloud.qcow2
image: file://./target/testvm/disk.qcow2
summary: Basic smoke test
execute:
how: tmt
script: bootc status
how: tmt
script: bootc status
4 changes: 4 additions & 0 deletions tests-integration/build-tmt.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/build-image:
summary: build bootc and build qcow2 image
test: cd .. && make test-tmt
duration: 30m

0 comments on commit c03c697

Please sign in to comment.