ae43560d45
We need to know if the latest changes in the libc (that is dynamically linked to the binary) causes problems in containers based on older releases of Fedora. The estimate of the version numbers is very crude and does not follow the upstream schedule. That should not be a problem, though. A part of an existing test has been reused and made into a helper function to implement this. This increases the run time of the test suite on Rawhide which already takes longer than the same test suite on released versions of Fedora. Make up for it by increasing the timeout by 2 minutes. https://github.com/containers/toolbox/pull/899
22 lines
868 B
Bash
22 lines
868 B
Bash
#!/usr/bin/env bats
|
|
|
|
load 'libs/helpers'
|
|
|
|
@test "test suite: Setup" {
|
|
local os_release="$(find_os_release)"
|
|
local system_id="$(get_system_id)"
|
|
local system_version="$(get_system_version)"
|
|
|
|
_setup_environment
|
|
# Cache the default image for the system
|
|
_pull_and_cache_distro_image "$system_id" "$system_version" || false
|
|
# Cache all images that will be needed during the tests
|
|
_pull_and_cache_distro_image fedora 32 || false
|
|
_pull_and_cache_distro_image busybox || false
|
|
# If run on Fedora Rawhide, cache 2 extra images (previous Fedora versions)
|
|
local rawhide_res="$(awk '/rawhide/' $os_release)"
|
|
if [ "$system_id" = "fedora" ] && [ -n "$rawhide_res" ]; then
|
|
_pull_and_cache_distro_image fedora "$((system_version-1))" || false
|
|
_pull_and_cache_distro_image fedora "$((system_version-2))" || false
|
|
fi
|
|
}
|