add postinstalls to custom partitioning tests

Differential Revision: https://phab.qa.fedoraproject.org/D1192
This commit is contained in:
Jan Sedlák 2017-05-09 09:11:34 +02:00
parent 5e2a76efde
commit ea5296b306
7 changed files with 92 additions and 1 deletions

View File

@ -1990,6 +1990,7 @@
name => "install_blivet_ext3", name => "install_blivet_ext3",
settings => [ settings => [
{ key => "PARTITIONING", value => "custom_blivet_ext3" }, { key => "PARTITIONING", value => "custom_blivet_ext3" },
{ key => "POSTINSTALL", value => "disk_custom_ext3_postinstall" },
{ key => "ROOT_PASSWORD", value => "weakpassword" }, { key => "ROOT_PASSWORD", value => "weakpassword" },
], ],
}, },
@ -1997,6 +1998,7 @@
name => "install_blivet_no_swap", name => "install_blivet_no_swap",
settings => [ settings => [
{ key => "PARTITIONING", value => "custom_blivet_no_swap" }, { key => "PARTITIONING", value => "custom_blivet_no_swap" },
{ key => "POSTINSTALL", value => "disk_custom_no_swap_postinstall" },
{ key => "ROOT_PASSWORD", value => "weakpassword" }, { key => "ROOT_PASSWORD", value => "weakpassword" },
], ],
}, },
@ -2004,6 +2006,7 @@
name => "install_blivet_xfs", name => "install_blivet_xfs",
settings => [ settings => [
{ key => "PARTITIONING", value => "custom_blivet_xfs" }, { key => "PARTITIONING", value => "custom_blivet_xfs" },
{ key => "POSTINSTALL", value => "disk_custom_xfs_postinstall" },
{ key => "ROOT_PASSWORD", value => "weakpassword" }, { key => "ROOT_PASSWORD", value => "weakpassword" },
], ],
}, },
@ -2020,6 +2023,7 @@
name => "install_blivet_lvmthin", name => "install_blivet_lvmthin",
settings => [ settings => [
{ key => "PARTITIONING", value => "custom_blivet_lvmthin" }, { key => "PARTITIONING", value => "custom_blivet_lvmthin" },
{ key => "POSTINSTALL", value => "disk_custom_lvmthin_postinstall" },
{ key => "ROOT_PASSWORD", value => "weakpassword" }, { key => "ROOT_PASSWORD", value => "weakpassword" },
], ],
}, },

View File

@ -0,0 +1,17 @@
use base "installedtest";
use strict;
use testapi;
sub run {
assert_screen "root_console";
# check that btrfs is used on root partition
assert_script_run "mount | grep 'on / type btrfs'";
}
sub test_flags {
return { fatal => 1 };
}
1;
# vim: set sw=4 et:

View File

@ -0,0 +1,17 @@
use base "installedtest";
use strict;
use testapi;
sub run {
assert_screen "root_console";
# check that ext3 is used on root partition
assert_script_run "mount | grep 'on / type ext3'";
}
sub test_flags {
return { fatal => 1 };
}
1;
# vim: set sw=4 et:

View File

@ -0,0 +1,19 @@
use base "installedtest";
use strict;
use testapi;
sub run {
assert_screen "root_console";
# check that lvmthinpool is present:
# http://atodorov.org/blog/2015/04/14/how-to-find-if-lvm-volume-is-thinly-provisioned/
# arguments of thinpool devices has T, t or V at the beginning of attributes
assert_script_run "lvs -o lv_attr | grep -E '^[[:space:]]*(T|t|V)'";
}
sub test_flags {
return { fatal => 1 };
}
1;
# vim: set sw=4 et:

View File

@ -0,0 +1,17 @@
use base "installedtest";
use strict;
use testapi;
sub run {
assert_screen "root_console";
# check that swap is not used, check that "swapon --show has empty input"
assert_script_run '[[ ! $(swapon --show) ]]';
}
sub test_flags {
return { fatal => 1 };
}
1;
# vim: set sw=4 et:

View File

@ -5,7 +5,7 @@ use testapi;
sub run { sub run {
assert_screen "root_console"; assert_screen "root_console";
# check that RAID is used # check that RAID is used
validate_script_output "cat /proc/mdstat", sub { $_ =~ m/Personalities : \[raid1\]/ }; assert_script_run "cat /proc/mdstat | grep 'Personalities : \\\[raid1\\\]'";
} }
sub test_flags { sub test_flags {

View File

@ -0,0 +1,17 @@
use base "installedtest";
use strict;
use testapi;
sub run {
assert_screen "root_console";
# check that xfs is used on root partition
assert_script_run "mount | grep 'on / type xfs'";
}
sub test_flags {
return { fatal => 1 };
}
1;
# vim: set sw=4 et: