6
6
7
7
set -e
8
8
9
- PODMAN_SEQUOIA_COMMIT=7dda4eaf22db19c487a6fbc01fa35838c888e0ab # FIXME: drop
10
-
11
9
# BEGIN Global export of all variables
12
10
set -a
13
11
@@ -73,8 +71,10 @@ _run_setup() {
73
71
# automation, but the sources are in different directories. It's
74
72
# possible for a mismatch to happen, but should (hopefully) be unlikely.
75
73
# Double-check to make sure.
74
+ # Temporarily, allow running on Rawhide VMs and consuming older binaries:
75
+ # that should be compatible enough. Eventually, we’ll stop using Rawhide again.
76
76
if ! grep -Fqx " ID=$OS_RELEASE_ID " $mnt /etc/os-release || \
77
- ! grep -Fqx " VERSION_ID=$OS_RELEASE_VER " $mnt /etc/os-release; then
77
+ { ! [[ " $VM_IMAGE_NAME " =~ " rawhide " ]] && ! grep -Fqx " VERSION_ID=$OS_RELEASE_VER " $mnt /etc/os-release; } then
78
78
die " Somehow $SKOPEO_CIDEV_CONTAINER_FQIN is not based on $OS_REL_VER ."
79
79
fi
80
80
msg " Copying test binaries from $SKOPEO_CIDEV_CONTAINER_FQIN /usr/local/bin/"
@@ -98,20 +98,8 @@ _run_vendor() {
98
98
}
99
99
100
100
_run_build () {
101
- if [[ " $BUILDTAGS " =~ containers_image_sequoia ]]; then
102
- # FIXME: All of this should be removed after libpodman_sequoia is packaged; instead, install the RPM at image build time.
103
- dnf install -y rustc cargo clang-devel capnproto
104
- msg " Checking out libpodman_sequoia"
105
- git clone https://github.com/ueno/podman-sequoia
106
- (cd podman-sequoia && git checkout $PODMAN_SEQUOIA_COMMIT )
107
- msg " Building libpodman_sequoia"
108
- (cd podman-sequoia; cargo build --release)
109
- msg " Built $( pwd) /podman-sequoia/target/release:"
110
- ls -la $( pwd) /podman-sequoia/target/release
111
- fi
112
-
113
- make bin/skopeo BUILDTAGS=" $BUILDTAGS " SEQUOIA_SONAME_DIR=$( pwd) /podman-sequoia/target/release
114
- make install PREFIX=/usr/local BUILDTAGS=" $BUILDTAGS " SEQUOIA_SONAME_DIR=$( pwd) /podman-sequoia/target/release
101
+ make bin/skopeo BUILDTAGS=" $BUILDTAGS "
102
+ make install PREFIX=/usr/local BUILDTAGS=" $BUILDTAGS "
115
103
}
116
104
117
105
_run_cross () {
@@ -123,7 +111,7 @@ _run_doccheck() {
123
111
}
124
112
125
113
_run_unit () {
126
- make test-unit-local BUILDTAGS=" $BUILDTAGS " SEQUOIA_SONAME_DIR= $( pwd ) /podman-sequoia/target/release
114
+ make test-unit-local BUILDTAGS=" $BUILDTAGS "
127
115
}
128
116
129
117
_podman_reset () {
@@ -133,13 +121,13 @@ _podman_reset() {
133
121
134
122
_run_integration () {
135
123
_podman_reset
136
- make test-integration-local BUILDTAGS=" $BUILDTAGS " SEQUOIA_SONAME_DIR= $( pwd ) /podman-sequoia/target/release
124
+ make test-integration-local BUILDTAGS=" $BUILDTAGS "
137
125
}
138
126
139
127
_run_system () {
140
128
_podman_reset
141
129
# #### Note: Test MODIFIES THE HOST SETUP #####
142
- make test-system-local BUILDTAGS=" $BUILDTAGS " SEQUOIA_SONAME_DIR= $( pwd ) /podman-sequoia/target/release
130
+ make test-system-local BUILDTAGS=" $BUILDTAGS "
143
131
}
144
132
145
133
req_env_vars SKOPEO_PATH
0 commit comments