forked from rhinstaller/kickstart-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scenario
executable file
·42 lines (35 loc) · 1.85 KB
/
scenario
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
# Launch a scenario for the daily run.
set -eux
MYDIR=$(dirname $(realpath "$0"))
# tests often fail due to random infrastructure flakes; enable auto-retry
LAUNCH="$MYDIR/launch --retry"
ROOTDIR=$(dirname $(dirname "$MYDIR"))
SCENARIO="$1"
shift
# Read the test types (SKIP_TESTTYPES_*) to be skipped by scenarios
source "$MYDIR/skip-testtypes"
case "$SCENARIO" in
rawhide) $LAUNCH --skip-testtypes "$SKIP_TESTTYPES_RAWHIDE" "$@" all ;;
rawhide-text) $LAUNCH --skip-testtypes "$SKIP_TESTTYPES_RAWHIDE_TEXT" --run-args '-eKSTEST_EXTRA_BOOTOPTS=inst.text' "$@" all ;;
daily-iso) $LAUNCH --skip-testtypes "$SKIP_TESTTYPES_DAILY_ISO" --daily-iso="$GITHUB_TOKEN" "$@" all ;;
rhel8)
if [ ! -e data/images/boot.iso ]; then
echo "INFO: data/images/boot.iso does not exist, downloading current RHEL 8 boot iso..."
mkdir -p data/images
curl -L http://download.eng.bos.redhat.com/rhel-8/development/RHEL-8/latest-RHEL-8.6/compose/BaseOS/x86_64/os/images/boot.iso --output data/images/boot.iso
fi
$LAUNCH --skip-testtypes "$SKIP_TESTTYPES_RHEL8" --platform rhel8 --defaults "$ROOTDIR/scripts/defaults-rhel8.sh" all
;;
rhel9)
if [ ! -e data/images/boot.iso ]; then
echo "INFO: data/images/boot.iso does not exist, downloading current RHEL 9 boot iso..."
mkdir -p data/images
curl -L http://download.eng.bos.redhat.com/rhel-9/development/RHEL-9/latest-RHEL-9.0/compose/BaseOS/x86_64/os/images/boot.iso --output data/images/boot.iso
fi
$LAUNCH --skip-testtypes "$SKIP_TESTTYPES_RHEL9" --platform rhel9 --defaults "$ROOTDIR/scripts/defaults-rhel9.sh" all
;;
# just run a single test on standard Rawhide; mostly for testing infrastructure
minimal) $LAUNCH "$@" container ;;
*) echo "ERROR: unknown scenario $1" >&2; exit 1 ;;
esac