-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds `validate`, `unit`, and `integration` tests using for aarch64 and x86_64 arches on all active Fedora and CentOS Stream versions. Also includes podman revdep test contributed for c9s by Yuhui Jiang <yujiang@redhat.com>. Ref: https://gitlab.com/redhat/centos-stream/rpms/netavark/-/merge_requests/59 Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
- Loading branch information
Showing
15 changed files
with
262 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,6 @@ vendor/ | |
.idea/* | ||
contrib/systemd/*/*.service | ||
.vscode* | ||
rpm/RPMS | ||
rpm/SRPMS | ||
rpm/*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
discover: | ||
how: fmf | ||
execute: | ||
how: tmt | ||
adjust: | ||
- when: initiator == packit | ||
because: "We need to test with updated packages from rhcontainerbot/podman-next copr" | ||
prepare+: | ||
how: shell | ||
script: | | ||
sed -i -n '/^priority=/!p;$apriority=1' /etc/yum.repos.d/*podman-next*.repo | ||
dnf -y upgrade --allowerasing | ||
# FIXME: Use epel10 once bats is available there | ||
- when: distro == centos-stream-10 or distro == rhel-10 | ||
because: "bats isn't yet available on epel10" | ||
prepare+: | ||
how: install | ||
copr: rhcontainerbot/bats-el10 | ||
package: bats | ||
- when: distro == centos-stream or distro == rhel | ||
because: "bats and bridge-utils are present on EPEL" | ||
prepare+: | ||
how: feature | ||
epel: enabled | ||
|
||
/upstream: | ||
summary: Run tests on upstream PRs | ||
discover+: | ||
filter: tag:upstream | ||
adjust+: | ||
- enabled: false | ||
when: initiator is not defined or initiator != packit | ||
|
||
/downstream: | ||
summary: Run tests on bodhi / errata and dist-git PRs | ||
discover+: | ||
filter: tag:downstream | ||
adjust+: | ||
- enabled: false | ||
when: initiator == packit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- !Policy | ||
product_versions: | ||
- fedora-* | ||
decision_context: | ||
- bodhi_update_push_stable | ||
- bodhi_update_push_testing | ||
subject_type: koji_build | ||
rules: | ||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} | ||
|
||
--- !Policy | ||
product_versions: | ||
- rhel-* | ||
decision_context: osci_compose_gate | ||
rules: | ||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Only common dependencies that are NOT required to run test_integration.sh are | ||
# specified here. Everything else is in test_integration.sh. | ||
require: | ||
- iptables | ||
- netavark-tests | ||
|
||
adjust: | ||
duration: 10m | ||
when: arch == aarch64 | ||
|
||
/integration: | ||
tag: [ upstream, downstream ] | ||
summary: Integration tests | ||
test: bash integration.sh | ||
environment: | ||
NETAVARK: /usr/libexec/podman/netavark | ||
NETAVARK_DHCP_PROXY_CLIENT: /usr/libexec/podman/netavark-dhcp-proxy-client | ||
TEST_PLUGINS: /usr/share/netavark/examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
rpm -q aardvark-dns cargo netavark | ||
|
||
# Run tests | ||
bats /usr/share/netavark/test-dhcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
require: | ||
- cargo | ||
- clippy | ||
- go-md2man | ||
- git-core | ||
- iptables | ||
- make | ||
- netavark-tests | ||
- protobuf-compiler | ||
- rustfmt | ||
|
||
adjust+: | ||
- duration: 10m | ||
when: arch == aarch64 | ||
|
||
/validate: | ||
tag: upstream | ||
summary: Validate test | ||
test: make -C $TMT_TREE validate | ||
|
||
/unit: | ||
tag: upstream | ||
summary: Unit test | ||
test: make -C $TMT_TREE unit | ||
|
||
/integration: | ||
tag: [ upstream, downstream ] | ||
summary: Integration tests | ||
test: bash integration.sh | ||
environment: | ||
NETAVARK: /usr/libexec/podman/netavark | ||
TEST_PLUGINS: /usr/share/netavark/examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
rpm -q aardvark-dns cargo netavark | ||
|
||
# Run tests | ||
bats /usr/share/netavark/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
summary: Podman tests dependent on netavark | ||
require: | ||
- netavark | ||
- podman-tests | ||
|
||
tag: [upstream, downstream] | ||
|
||
test: | | ||
/usr/bin/bats -t /usr/share/podman/test/system/030-run.bats | ||
/usr/bin/bats -t /usr/share/podman/test/system/075-exec.bats | ||
/usr/bin/bats -t /usr/share/podman/test/system/500-networking.bats | ||
|
||
duration: 15m |