This repository was archived by the owner on May 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallability.fmf
More file actions
38 lines (32 loc) · 1.5 KB
/
installability.fmf
File metadata and controls
38 lines (32 loc) · 1.5 KB
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
summary: TMT/FMF plan for running installability test.
description: Run installability test. Requires TASK_ID to be set in environment.
provision:
how: libvirt
discover:
how: shell
tests:
- name: install
test: mtps-run-tests --critical --selinux=1 --test=install --repo=brew-$TASK_ID
- name: upgrade
test: mtps-run-tests --critical --selinux=1 --test=upgrade --repo=brew-$TASK_ID
- name: downgrade
test: mtps-run-tests --critical --selinux=1 --test=downgrade --repo=brew-$TASK_ID
- name: remove
test: mtps-run-tests --critical --selinux=1 --test=remote --repo=brew-$TASK_ID
prepare:
how: shell
script: |
set -e
# sanity checks
[ -z "$TASK_ID" ] && { echo "TASK_ID missing in the environment"; exit 1; }
[ -z "$RELEASE" ] && { echo "RELEASE missing in the environment"; exit 1; }
# install installability test
rpm -ivh http://hdn.corp.redhat.com/rhel7-csb-stage/RPMS/noarch/redhat-internal-cert-install-0.1-15.el7.csb.noarch.rpm
curl -Lo /etc/yum.repos.d/mini-tps.repo https://copr.devel.redhat.com/coprs/astepano/mini-tps/repo/rhel-8.dev/astepano-mini-tps.repo
dnf install -y mini-tps
# prepare for testing
mtps-prepare-system -p $RELEASE --fixrepo --enablebuildroot
mtps-get-task --recursive --task=$TASK_ID --srpm
mtps-get-task --createrepo --installrepofile --recursive --task=$TASK_ID --download=/var/lib/brew-repo
execute:
how: shell