File tree Expand file tree Collapse file tree 4 files changed +57
-5
lines changed Expand file tree Collapse file tree 4 files changed +57
-5
lines changed Original file line number Diff line number Diff line change
1
+ 1
Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ jobs:
17
17
failure_comment :
18
18
message : " Ephemeral COPR build failed. @containers/packit-build please check."
19
19
enable_net : true
20
- targets :
20
+ targets : &copr_build_targets
21
21
- fedora-all-x86_64
22
22
- fedora-all-aarch64
23
- - centos-stream+epel-next-8 -x86_64
24
- - centos-stream+epel-next-8 -aarch64
25
- - centos-stream+epel-next-9 -x86_64
26
- - centos-stream+epel-next-9 -aarch64
23
+ - centos-stream-9 -x86_64
24
+ - centos-stream-9 -aarch64
25
+ - centos-stream-8 -x86_64
26
+ - centos-stream-8 -aarch64
27
27
additional_repos :
28
28
- " copr://rhcontainerbot/podman-next"
29
29
38
38
project : podman-next
39
39
enable_net : true
40
40
41
+ # Test on the same arches as copr_build_targets used for ephemeral copr build
42
+ - job : tests
43
+ trigger : pull_request
44
+ notifications :
45
+ failure_comment :
46
+ message : " TMT validate test failed. @containers/packit-build please check."
47
+ targets : *copr_build_targets
48
+ identifier : validate
49
+ tmt_plan : " /plans/validate_test"
50
+
51
+ - job : tests
52
+ trigger : pull_request
53
+ notifications :
54
+ failure_comment :
55
+ message : " TMT unit tests failed. @containers/packit-build please check."
56
+ targets : *copr_build_targets
57
+ identifier : validate
58
+ tmt_plan : " /plans/unit_test"
59
+
60
+ - job : tests
61
+ trigger : pull_request
62
+ notifications :
63
+ failure_comment :
64
+ message : " TMT integration tests failed. @containers/packit-build please check."
65
+ targets : *copr_build_targets
66
+ identifier : validate
67
+ tmt_plan : " /plans/integration_test"
68
+
41
69
- job : propose_downstream
42
70
trigger : release
43
71
update_release : false
Original file line number Diff line number Diff line change @@ -120,7 +120,13 @@ unit: $(CARGO_TARGET_DIR)
120
120
$(CARGO ) test
121
121
122
122
.PHONY : integration
123
+ # The NETAVARK envvar is used by bats to specify path to a netavark binary.
124
+ ifdef NETAVARK
125
+ $(info Skipping build as NETAVARK binary is specified)
126
+ integration : $(CARGO_TARGET_DIR )
127
+ else
123
128
integration : $(CARGO_TARGET_DIR ) examples
129
+ endif
124
130
# needs to be run as root or with podman unshare --rootless-netns
125
131
bats test/
126
132
bats test-dhcp/
Original file line number Diff line number Diff line change
1
+ /validate_test:
2
+ summary: Run validate test
3
+ execute:
4
+ how: tmt
5
+ script: make validate
6
+
7
+ /unit_test:
8
+ summary: Run unit tests
9
+ execute:
10
+ how: tmt
11
+ script: make unit
12
+
13
+ /integration_test:
14
+ summary: Run integration tests
15
+ execute:
16
+ how: tmt
17
+ script: NETAVARK=/usr/libexec/podman/netavark make integration
You can’t perform that action at this time.
0 commit comments