File tree Expand file tree Collapse file tree 8 files changed +160
-48
lines changed Expand file tree Collapse file tree 8 files changed +160
-48
lines changed Original file line number Diff line number Diff line change 48
48
targets : *test_targets
49
49
tmt_plan : " /plans/system/rootless-remote"
50
50
identifier : " sys-remote-rootless"
51
+
52
+ - job : tests
53
+ trigger : pull_request
54
+ skip_build : true
55
+ use_internal_tf : true
56
+ notifications : *packit_failure_notification
57
+ targets : *test_targets
58
+ tmt_plan : " /plans/integration/rootless-local"
59
+ identifier : " int-local-rootless"
60
+
61
+ - job : tests
62
+ trigger : pull_request
63
+ skip_build : true
64
+ use_internal_tf : true
65
+ notifications : *packit_failure_notification
66
+ targets : *test_targets
67
+ tmt_plan : " /plans/integration/root-remote"
68
+ identifier : " int-remote-root"
69
+
70
+ - job : tests
71
+ trigger : pull_request
72
+ skip_build : true
73
+ use_internal_tf : true
74
+ notifications : *packit_failure_notification
75
+ targets : *test_targets
76
+ tmt_plan : " /plans/integration/rootless-remote"
77
+ identifier : " int-remote-rootless"
78
+
79
+ - job : tests
80
+ trigger : pull_request
81
+ skip_build : true
82
+ use_internal_tf : true
83
+ notifications : *packit_failure_notification
84
+ targets : *test_targets
85
+ tmt_plan : " /plans/localunit"
86
+ identifier : " unit"
Original file line number Diff line number Diff line change @@ -647,7 +647,7 @@ run-docker-py-tests:
647
647
rm -f test/__init__.py
648
648
649
649
.PHONY : localunit
650
- localunit : test/goecho/goecho test/version/version
650
+ localunit : .install.ginkgo test/goecho/goecho test/version/version
651
651
rm -rf ${COVERAGE_PATH} && mkdir -p ${COVERAGE_PATH}
652
652
UNIT=1 $(GINKGO ) \
653
653
-r \
Original file line number Diff line number Diff line change @@ -7,11 +7,17 @@ import (
7
7
"testing"
8
8
9
9
"github.com/containers/podman/v5/pkg/machine/define"
10
+ . "github.com/containers/podman/v5/test/utils"
10
11
"github.com/stretchr/testify/assert"
11
12
"github.com/stretchr/testify/require"
12
13
)
13
14
14
15
func TestQemuCmd (t * testing.T ) {
16
+ host := GetHostDistributionInfo ()
17
+ if host .Distribution == "rhel" || host .Distribution == "centos" && host .Distribution != "fedora" {
18
+ t .Skip ("Skip QEMU tests on RHEL and CentOS Stream" )
19
+ }
20
+
15
21
ignFile , err := define .NewMachineFile (t .TempDir ()+ "demo-ignition-file.ign" , nil )
16
22
assert .NoError (t , err )
17
23
Original file line number Diff line number Diff line change
1
+ discover:
2
+ how: fmf
3
+
4
+ execute:
5
+ how: tmt
6
+
7
+ prepare:
8
+ - name: build and test dependencies
9
+ how: install
10
+ package:
11
+ - aardvark-dns
12
+ - go-md2man
13
+ - golang
14
+ - gpgme-devel
15
+ - libseccomp-devel
16
+ - netavark
17
+ - podman-catatonit
18
+ # podman-tests used only to fetch test dependencies
19
+ - podman-tests
20
+ - slirp4netns
21
+ - systemd-devel
22
+ order: 5
23
+ - how: shell
24
+ script: modprobe null_blk nr_devices=1
25
+ order: 5
26
+
27
+ provision:
28
+ how: artemis
29
+ hardware:
30
+ memory: ">= 16 GB"
31
+ cpu:
32
+ cores: ">= 4"
33
+ threads: ">=8"
34
+ disk:
35
+ - size: ">= 512 GB"
36
+
37
+ /root-local:
38
+ summary: Local rootful integration tests
39
+ discover+:
40
+ test: /test/tmt/int-root-local
41
+
42
+ /rootless-local:
43
+ summary: Local rootless integration tests
44
+ discover+:
45
+ test: /test/tmt/int-rootless-local
46
+
47
+ /root-remote:
48
+ summary: Remote rootful integration tests
49
+ discover+:
50
+ test: /test/tmt/int-root-remote
51
+
52
+ /rootless-remote:
53
+ summary: Remote rootless integration tests
54
+ discover+:
55
+ test: /test/tmt/int-rootless-remote
Original file line number Diff line number Diff line change
1
+ summary: Run unit tests
2
+
3
+ discover:
4
+ how: fmf
5
+ test: /test/tmt/localunit
6
+
7
+ execute:
8
+ how: tmt
9
+
10
+ prepare:
11
+ - name: build and test dependencies
12
+ how: install
13
+ package:
14
+ - golang
15
+ - gpgme-devel
16
+ - libseccomp-devel
17
+ - systemd-devel
18
+ order: 5
19
+
20
+ provision:
21
+ how: artemis
22
+ hardware:
23
+ memory: ">= 16 GB"
24
+ cpu:
25
+ cores: ">= 4"
26
+ threads: ">=8"
27
+ disk:
28
+ - size: ">= 512 GB"
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ provision:
53
53
- size: ">= 512 GB"
54
54
55
55
/root-local:
56
- summary: Local root system tests
56
+ summary: Local rootful system tests
57
57
discover+:
58
58
test: /test/tmt/sys-root-local
59
59
@@ -63,7 +63,7 @@ provision:
63
63
test: /test/tmt/sys-rootless-local
64
64
65
65
/root-remote:
66
- summary: Remote root system tests
66
+ summary: Remote rootful system tests
67
67
discover+:
68
68
test: /test/tmt/sys-root-remote
69
69
Original file line number Diff line number Diff line change @@ -35,3 +35,35 @@ adjust+:
35
35
chown -R $ROOTLESS_USER $TMT_TREE &&
36
36
su - "$ROOTLESS_USER" -c "CI_DESIRED_NETWORK=netavark make -C $TMT_TREE remotesystem"
37
37
duration: 40m
38
+
39
+ /int-root-local:
40
+ test: >
41
+ bash ./setup.sh &&
42
+ make -C $TMT_TREE localintegration
43
+ duration: 40m
44
+
45
+ /int-rootless-local:
46
+ test: >
47
+ bash ./setup.sh &&
48
+ loginctl enable-linger $ROOTLESS_USER &&
49
+ chown -R $ROOTLESS_USER $TMT_TREE &&
50
+ su - "$ROOTLESS_USER" -c "make -C $TMT_TREE localintegration"
51
+ duration: 40m
52
+
53
+ /int-root-remote:
54
+ test: >
55
+ bash ./setup.sh &&
56
+ make -C $TMT_TREE remoteintegration
57
+ duration: 40m
58
+
59
+ /int-rootless-remote:
60
+ test: >
61
+ bash ./setup.sh &&
62
+ loginctl enable-linger $ROOTLESS_USER &&
63
+ chown -R $ROOTLESS_USER $TMT_TREE &&
64
+ su - "$ROOTLESS_USER" -c "make -C $TMT_TREE remoteintegration"
65
+ duration: 40m
66
+
67
+ /localunit:
68
+ test: make -C $TMT_TREE localunit
69
+ duration: 40m
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments