mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-11-23 05:31:29 +00:00
bc6c92e9a9
* Consolidate build names for all flavors by version This PR neither adds nor updates specific test functionality, but does update the wrapper scripts based on @tcooper's recommendations for consolidating all flavors for a particular version into a single build. * cheers neil * New needles * Add needle for _anaconda_network_enable * Multilingual needles for _anaconda_network_enable * Set language tag * A few more multilingual needles * Clean up dangling needles in the root of the needles dir
58 lines
1.6 KiB
Bash
Executable File
58 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
## Usage: Post an ISO for the specified FLAVOR. Defaults to boot-iso.
|
|
#
|
|
## Run the boot-iso FLAVOR
|
|
# scripts/run-openqa-tests.sh
|
|
#
|
|
## Run the package-set FLAVOR
|
|
# ROCKY_FLAVOR=package-set scripts/run-openqa-tests.sh
|
|
#
|
|
## Run the localization test suites
|
|
# ROCKY_FLAVOR ROCKY_EXTRA_ARGS=TEST=install_arabic_language,install_asian_language,install_european_language,install_cyrillic_language scripts/run-openqa-tests.sh
|
|
|
|
ROCKY_VERSION="9.2"
|
|
|
|
MAJOR_VERSION=${ROCKY_VERSION:0:1}
|
|
MINOR_VERSION=${ROCKY_VERSION:2:1}
|
|
ROCKY_FLAVOR="${ROCKY_FLAVOR:-boot-iso}"
|
|
ROCKY_ARCH="${ROCKY_ARCH:=x86_64}"
|
|
ROCKY_EXTRA_ARGS="${ROCKY_EXTRA_ARGS:-}"
|
|
BUILD_NAME="-$(date +%Y%m%d).0-$(git branch --show-current)-$ROCKY_VERSION"
|
|
ISO_PREFIX="Rocky-$ROCKY_VERSION-$ROCKY_ARCH"
|
|
|
|
if [[ "$ROCKY_FLAVOR" == "dvd-iso" || "$ROCKY_FLAVOR" == "universal" ]]; then
|
|
if [[ "$MAJOR_VERSION" -gt "8" ]]; then
|
|
ISO_TYPE=dvd
|
|
else
|
|
ISO_TYPE=dvd1
|
|
fi
|
|
elif [[ "$ROCKY_FLAVOR" == "minimal-iso" ]]; then
|
|
ISO_TYPE=minimal
|
|
elif [[ "$ROCKY_FLAVOR" == "boot-iso" || "$ROCKY_FLAVOR" == "package-set" ]]; then
|
|
# package-set also works with dvd image
|
|
ISO_TYPE=boot
|
|
else
|
|
echo "Usage: $0 [universal|dvd-iso|minimal-iso|package-set|boot-iso]"
|
|
exit 1
|
|
fi
|
|
|
|
ROCKY_ISO="$ISO_PREFIX-$ISO_TYPE.iso"
|
|
|
|
# Update fif templates
|
|
./fifloader.py --clean --load templates.fif.json templates-updates.fif.json
|
|
|
|
# Run the tests
|
|
export PS4='# '
|
|
set -o xtrace
|
|
openqa-cli api \
|
|
-X POST isos \
|
|
ISO="$ROCKY_ISO" \
|
|
ARCH="$ROCKY_ARCH" \
|
|
DISTRI=rocky \
|
|
FLAVOR="$ROCKY_FLAVOR" \
|
|
VERSION="$ROCKY_VERSION" \
|
|
BUILD="$BUILD_NAME" \
|
|
"$ROCKY_EXTRA_ARGS"
|