1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-28 08:33:08 +00:00
os-autoinst-distri-fedora/main.pm

107 lines
3.7 KiB
Perl
Raw Normal View History

2015-01-22 12:38:16 +00:00
# Copyright (C) 2014 SUSE Linux GmbH
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
use strict;
use testapi;
use autotest;
2015-01-26 14:58:07 +00:00
# Boot to anaconda Hub in English
2015-01-30 09:35:13 +00:00
if (get_var("ENTRYPOINT"))
2015-01-27 12:35:27 +00:00
{
2015-01-30 09:35:13 +00:00
autotest::loadtest get_var('CASEDIR')."/tests/".get_var("ENTRYPOINT").".pm";
}
else
{
autotest::loadtest get_var('CASEDIR')."/tests/_boot_to_anaconda.pm";
unless (get_var("KICKSTART"))
{
2015-02-04 13:45:37 +00:00
## Installation source
if (get_var('MIRRORLIST_GRAPHICAL') || get_var("REPOSITORY_GRAPHICAL")){
autotest::loadtest get_var('CASEDIR')."/tests/install_source_graphical.pm";
}
2015-02-04 13:45:37 +00:00
if (get_var("REPOSITORY_VARIATION")){
autotest::loadtest get_var('CASEDIR')."/tests/install_source_variation.pm";
}
## Select minimal flavor
if (get_var("FLAVOR") eq "server") {
autotest::loadtest get_var('CASEDIR')."/tests/_select_minimal.pm";
}
2015-02-03 14:02:52 +00:00
2015-01-30 09:35:13 +00:00
## Disk partitioning
2015-03-05 10:44:02 +00:00
if (get_var('DISK_GUIDED_MULTI')) {
2015-01-30 09:35:13 +00:00
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_multi.pm";
}
2015-03-05 10:44:02 +00:00
elsif (get_var('DISK_GUIDED_DELETE_ALL')) {
2015-01-30 09:35:13 +00:00
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_delete_all.pm";
}
2015-02-13 08:51:24 +00:00
elsif (get_var('DISK_GUIDED_DELETE_PARTIAL')) {
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_delete_partial.pm";
}
2015-03-05 12:57:47 +00:00
elsif (get_var('DISK_GUIDED_MULTI_EMPTY_ALL')) {
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_multi_empty_all.pm";
}
2015-03-06 09:36:25 +00:00
elsif (get_var('DISK_SOFTWARE_RAID')) {
autotest::loadtest get_var('CASEDIR')."/tests/disk_part_software_raid.pm";
}
2015-02-04 13:05:20 +00:00
else {
2015-03-05 12:57:47 +00:00
# also DISK_GUIDED_FREE_SPACE
2015-02-04 13:05:20 +00:00
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_empty.pm";
}
2015-01-30 09:35:13 +00:00
2015-02-04 16:16:21 +00:00
if (get_var("ENCRYPT_PASSWORD")){
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_encrypted.pm";
}
2015-01-30 09:35:13 +00:00
# Start installation, set user & root passwords, reboot
autotest::loadtest get_var('CASEDIR')."/tests/_do_install_and_reboot.pm";
2015-01-27 13:22:35 +00:00
}
2015-01-27 12:35:27 +00:00
2015-01-30 09:35:13 +00:00
# Wait for the login screen
2015-02-04 16:16:21 +00:00
if (get_var("ENCRYPT_PASSWORD")){
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_encrypted_postinstall.pm";
}
2015-01-30 09:35:13 +00:00
autotest::loadtest get_var('CASEDIR')."/tests/_wait_for_login_screen.pm";
2015-03-05 10:44:02 +00:00
if (get_var('DISK_GUIDED_MULTI')) {
2015-01-30 09:35:13 +00:00
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_multi_postinstall.pm";
}
2015-03-05 10:44:02 +00:00
elsif (get_var('DISK_GUIDED_DELETE_PARTIAL')) {
2015-02-13 08:51:24 +00:00
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_delete_partial_postinstall.pm";
}
2015-03-05 10:44:02 +00:00
elsif (get_var('DISK_GUIDED_FREE_SPACE')) {
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_free_space_postinstall.pm";
}
2015-03-05 12:57:47 +00:00
elsif (get_var('DISK_GUIDED_MULTI_EMPTY_ALL')) {
autotest::loadtest get_var('CASEDIR')."/tests/disk_guided_multi_empty_all_postinstall.pm";
}
2015-03-06 09:36:25 +00:00
elsif (get_var('DISK_SOFTWARE_RAID')) {
autotest::loadtest get_var('CASEDIR')."/tests/disk_part_software_raid_postinstall.pm";
}
2015-01-26 14:58:07 +00:00
}
2015-01-22 12:38:16 +00:00
2015-01-30 09:35:13 +00:00
2015-01-22 12:38:16 +00:00
1;
# vim: set sw=4 et: