-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit also reorganizes individual tests in scripts so they can be executed standalone if need be. The RHEL targets are also updated to use more generic floating targets wherever possible. Signed-off-by: Lokesh Mandvekar <[email protected]>
- Loading branch information
Showing
5 changed files
with
45 additions
and
48 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
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 -eox pipefail | ||
|
||
cat /etc/redhat-release | ||
rpm -q container-selinux golang podman | ||
if [ -f /etc/fedora-release ]; then | ||
mount -o remount,size=10G /tmp | ||
fi | ||
dnf --disablerepo=* --enablerepo=copr:copr.fedorainfracloud.org:rhcontainerbot:podman-next download --source podman | ||
rpm2cpio podman*.src.rpm | cpio -di | ||
tar zxf podman-*-dev.tar.gz | ||
cd podman-*-dev/test/e2e | ||
PODMAN_BINARY=/usr/bin/podman go test -v config.go config_amd64.go common_test.go libpod_suite_test.go run_selinux_test.go |
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,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eox pipefail | ||
|
||
cat /etc/redhat-release | ||
rpm -q container-selinux podman podman-tests | ||
bats /usr/share/podman/test/system/410-selinux.bats |
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 -eox pipefail | ||
|
||
RHEL_RELEASE=$(rpm --eval %{?rhel}) | ||
ARCH=$(uname -m) | ||
|
||
if [ $RHEL_RELEASE -eq 8 ]; then | ||
dnf -y module disable container-tools | ||
fi | ||
if [ -f /etc/centos-release ]; then | ||
dnf -y install epel-release | ||
elif [ $RHEL_RELEASE -ge 8 ]; then | ||
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$RHEL_RELEASE.noarch.rpm | ||
dnf config-manager --set-enabled epel | ||
fi | ||
#dnf -y copr enable rhcontainerbot/podman-next | ||
#dnf config-manager --save --setopt="*:rhcontainerbot:podman-next.priority=5" |