-
Notifications
You must be signed in to change notification settings - Fork 784
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[skip-ci] Packit/TMT: Run gating tests
This commit will run Skopeo's gating tests using Packit and TMT. Signed-off-by: Lokesh Mandvekar <[email protected]>
- Loading branch information
Showing
14 changed files
with
215 additions
and
22 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
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
#!/bin/bash | ||
set -e | ||
set -exo pipefail | ||
|
||
make PREFIX=/usr install | ||
if [[ ! -f /usr/bin/skopeo ]]; then | ||
make PREFIX=/usr install | ||
fi | ||
|
||
echo "cd ./integration;" go test $TESTFLAGS ${BUILDTAGS:+-tags "$BUILDTAGS"} | ||
cd ./integration | ||
go test $TESTFLAGS ${BUILDTAGS:+-tags "$BUILDTAGS"} | ||
go test $TESTFLAGS ${BUILDTAGS:+-tags "$BUILDTAGS"} |
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
cat /etc/os-release | ||
|
||
cd ../../.. | ||
dnf builddep -y rpm/skopeo.spec | ||
make | ||
make install | ||
|
||
EXT_REPO_NAME=ostree-rs-ext | ||
EXT_REPO_HOME=$(mktemp -d)/$EXT_REPO_NAME | ||
EXT_REPO=https://github.com/ostreedev/${EXT_REPO_NAME}.git | ||
git clone --depth 1 $EXT_REPO $EXT_REPO_HOME | ||
cd $EXT_REPO_HOME | ||
cargo test --no-run | ||
RUST_BACKTRACE=1 cargo test -- --nocapture --quiet |
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,9 @@ | ||
require: | ||
- cargo | ||
- git-core | ||
- make | ||
|
||
tag: ostree | ||
summary: Run ostree-rs-ext test | ||
test: bash ostree-rs-ext.sh | ||
duration: 30m |
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 @@ | ||
require: | ||
- make | ||
- podman-docker | ||
|
||
/unit: | ||
tag: upstream | ||
summary: Run unit test | ||
test: make -C ../.. test-unit | ||
|
||
/validate: | ||
tag: upstream | ||
summary: Run validate test | ||
test: make -C ../.. tools validate |
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,12 @@ | ||
require: | ||
- bats | ||
- golang | ||
- make | ||
- podman | ||
- skopeo | ||
|
||
duration: 30m | ||
|
||
tag: [ upstream, downstream ] | ||
summary: Run integration tests | ||
test: make -C ../.. test-integration |
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 @@ | ||
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 | ||
|
||
/ostree: | ||
summary: Run ostree tests | ||
discover+: | ||
filter: tag:ostree | ||
provision: | ||
how: container | ||
image: quay.io/coreos-assembler/fcos-buildroot:testing-devel | ||
adjust+: | ||
enabled: false | ||
when: initiator is not defined or 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
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,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
cat /etc/redhat-release | ||
|
||
# Remove testing-farm repos if they exist as these interfere with the packages | ||
# we want to install, especially when podman-next copr is involved | ||
rm -f /etc/yum.repos.d/tag-repository.repo | ||
|
||
# Print versions of distro and installed packages | ||
rpm -q bats container-selinux golang netavark podman selinux-policy skopeo | ||
|
||
make -C ../.. SKOPEO_BINARY=/usr/bin/skopeo test-system |
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,12 @@ | ||
require: | ||
- bats | ||
- golang | ||
- make | ||
- podman | ||
- skopeo | ||
|
||
duration: 30m | ||
|
||
tag: [ upstream, downstream ] | ||
summary: Run system tests | ||
test: bash systemtest.sh |