-
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. Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
- Loading branch information
Showing
7 changed files
with
141 additions
and
7 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 |
---|---|---|
|
@@ -8,3 +8,6 @@ vendor/ | |
src/proto-build/netavark_proxy.rs | ||
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,20 @@ | ||
discover: | ||
how: fmf | ||
execute: | ||
how: tmt | ||
|
||
/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,25 @@ | ||
# Only common dependencies that are NOT required to run test_integration.sh are | ||
# specified here. Everything else is in test_integration.sh. | ||
require: | ||
- cargo | ||
- make | ||
- protobuf-compiler | ||
|
||
adjust: | ||
duration: 10m | ||
when: arch == aarch64 | ||
|
||
/validate: | ||
tag: upstream | ||
summary: Validate test | ||
test: make -C ../.. validate | ||
|
||
/unit: | ||
tag: upstream | ||
summary: Unit test | ||
test: make -C ../.. unit | ||
|
||
/integration: | ||
tag: [ upstream, downstream ] | ||
summary: Integration tests | ||
test: bash test_integration.sh |
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,31 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
cat /etc/redhat-release | ||
|
||
# Remove testing-farm repos if they exist because they interfere with the | ||
# podman-next copr. The default distro repos will not be removed and can be | ||
# used wherever relevant. | ||
rm -f /etc/yum.repos.d/tag-repository.repo | ||
|
||
# Install dependencies for running tests | ||
dnf -y install \ | ||
bats \ | ||
bind-utils \ | ||
cargo \ | ||
clippy \ | ||
dbus-daemon \ | ||
firewalld \ | ||
go-md2man \ | ||
iptables \ | ||
jq \ | ||
make \ | ||
nftables \ | ||
nmap-ncat \ | ||
rustfmt | ||
|
||
rpm -q aardvark-dns cargo netavark | ||
|
||
# Run tests | ||
make -C ../.. NETAVARK=/usr/libexec/podman/netavark integration |