add postinstalls to custom partitioning tests
Differential Revision: https://phab.qa.fedoraproject.org/D1192
This commit is contained in:
parent
5e2a76efde
commit
ea5296b306
@ -1990,6 +1990,7 @@
|
||||
name => "install_blivet_ext3",
|
||||
settings => [
|
||||
{ key => "PARTITIONING", value => "custom_blivet_ext3" },
|
||||
{ key => "POSTINSTALL", value => "disk_custom_ext3_postinstall" },
|
||||
{ key => "ROOT_PASSWORD", value => "weakpassword" },
|
||||
],
|
||||
},
|
||||
@ -1997,6 +1998,7 @@
|
||||
name => "install_blivet_no_swap",
|
||||
settings => [
|
||||
{ key => "PARTITIONING", value => "custom_blivet_no_swap" },
|
||||
{ key => "POSTINSTALL", value => "disk_custom_no_swap_postinstall" },
|
||||
{ key => "ROOT_PASSWORD", value => "weakpassword" },
|
||||
],
|
||||
},
|
||||
@ -2004,6 +2006,7 @@
|
||||
name => "install_blivet_xfs",
|
||||
settings => [
|
||||
{ key => "PARTITIONING", value => "custom_blivet_xfs" },
|
||||
{ key => "POSTINSTALL", value => "disk_custom_xfs_postinstall" },
|
||||
{ key => "ROOT_PASSWORD", value => "weakpassword" },
|
||||
],
|
||||
},
|
||||
@ -2020,6 +2023,7 @@
|
||||
name => "install_blivet_lvmthin",
|
||||
settings => [
|
||||
{ key => "PARTITIONING", value => "custom_blivet_lvmthin" },
|
||||
{ key => "POSTINSTALL", value => "disk_custom_lvmthin_postinstall" },
|
||||
{ key => "ROOT_PASSWORD", value => "weakpassword" },
|
||||
],
|
||||
},
|
||||
|
17
tests/disk_custom_btrfs_postinstall.pm
Normal file
17
tests/disk_custom_btrfs_postinstall.pm
Normal 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:
|
17
tests/disk_custom_ext3_postinstall.pm
Normal file
17
tests/disk_custom_ext3_postinstall.pm
Normal 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:
|
19
tests/disk_custom_lvmthin_postinstall.pm
Normal file
19
tests/disk_custom_lvmthin_postinstall.pm
Normal 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:
|
17
tests/disk_custom_no_swap_postinstall.pm
Normal file
17
tests/disk_custom_no_swap_postinstall.pm
Normal 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:
|
@ -5,7 +5,7 @@ use testapi;
|
||||
sub run {
|
||||
assert_screen "root_console";
|
||||
# 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 {
|
||||
|
17
tests/disk_custom_xfs_postinstall.pm
Normal file
17
tests/disk_custom_xfs_postinstall.pm
Normal 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:
|
Loading…
Reference in New Issue
Block a user