Skip to content

Commit f76ade8

Browse files
committed
test: run tmt integration test on testing farm
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 <[email protected]>
1 parent 9be5830 commit f76ade8

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

plans/build.fmf

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
provision:
2+
hardware:
3+
cpu:
4+
processors: ">= 2"
5+
memory: ">= 6 GB"
6+
virtualization:
7+
is-supported: true
8+
prepare:
9+
- how: install
10+
package:
11+
- cargo
12+
- zstd
13+
- git
14+
- libzstd-devel
15+
- openssl-devel
16+
- ostree-devel
17+
- make
18+
- jq
19+
- podman
20+
- skopeo
21+
- tmt+provision-virtual
22+
- how: shell
23+
script: systemctl start libvirtd
24+
execute:
25+
how: tmt
26+
discover:
27+
how: fmf
28+
test:
29+
- /build-tmt/build-image

plans/integration.fmf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
provision:
55
how: virtual
66
# Generated by `cargo xtask `
7-
image: file://./target/testbootc-cloud.qcow2
7+
image: file://./target/testvm/disk.qcow2
88
summary: Basic smoke test
99
execute:
10-
how: tmt
11-
script: bootc status
10+
how: tmt
11+
script: bootc status

tests-integration/build-tmt.fmf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/build-image:
2+
summary: build bootc and build qcow2 image
3+
test: cd .. && make test-tmt
4+
duration: 30m

0 commit comments

Comments
 (0)