mirror of
https://github.com/ceph/ceph
synced 2025-01-23 19:46:56 +00:00
80dc6ce72a
There are no centos 9 build for octopus, so if we want to start testing on cnetos 9 as a distro we need the add-repo test to be done on a newer release for which there are actual builds Signed-off-by: Adam King <adking@redhat.com>
46 lines
1.2 KiB
Bash
Executable File
46 lines
1.2 KiB
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
SCRIPT_NAME=$(basename ${BASH_SOURCE[0]})
|
|
SCRIPT_DIR=$(dirname ${BASH_SOURCE[0]})
|
|
CEPHADM_SRC_DIR=${SCRIPT_DIR}/../../../src/cephadm
|
|
|
|
[ -d "$TMPDIR" ] || TMPDIR=$(mktemp -d tmp.$SCRIPT_NAME.XXXXXX)
|
|
trap "$SUDO rm -rf $TMPDIR" EXIT
|
|
|
|
if [ -z "$CEPHADM" ]; then
|
|
CEPHADM=`mktemp -p $TMPDIR tmp.cephadm.XXXXXX`
|
|
${CEPHADM_SRC_DIR}/build.sh "$CEPHADM"
|
|
fi
|
|
|
|
# this is a pretty weak test, unfortunately, since the
|
|
# package may also be in the base OS.
|
|
function test_install_uninstall() {
|
|
( sudo apt update && \
|
|
sudo apt -y install cephadm && \
|
|
sudo $CEPHADM install && \
|
|
sudo apt -y remove cephadm ) || \
|
|
( sudo yum -y install cephadm && \
|
|
sudo $CEPHADM install && \
|
|
sudo yum -y remove cephadm ) || \
|
|
( sudo dnf -y install cephadm && \
|
|
sudo $CEPHADM install && \
|
|
sudo dnf -y remove cephadm ) || \
|
|
( sudo zypper -n install cephadm && \
|
|
sudo $CEPHADM install && \
|
|
sudo zypper -n remove cephadm )
|
|
}
|
|
|
|
sudo $CEPHADM -v add-repo --release quincy
|
|
test_install_uninstall
|
|
sudo $CEPHADM -v rm-repo
|
|
|
|
sudo $CEPHADM -v add-repo --dev main
|
|
test_install_uninstall
|
|
sudo $CEPHADM -v rm-repo
|
|
|
|
sudo $CEPHADM -v add-repo --release 17.2.6
|
|
test_install_uninstall
|
|
sudo $CEPHADM -v rm-repo
|
|
|
|
echo OK.
|