2018-09-26 13:32:42 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
sub run {
|
|
|
|
my $self=shift;
|
|
|
|
my $hook_run = 0;
|
|
|
|
# switch to tty and login as root
|
|
|
|
$self->root_console(tty=>3);
|
|
|
|
|
2019-07-10 08:47:10 +00:00
|
|
|
# Check that modularity works, that a particular module is available in the system,
|
|
|
|
# and display information about that module.
|
2019-07-23 14:48:36 +00:00
|
|
|
assert_script_run('/root/modularity/modular_functions.py -m dwm -s 6.1 -a list');
|
2018-09-26 13:32:42 +00:00
|
|
|
|
|
|
|
# Check that module can be enabled and disabled.
|
2019-07-26 13:38:54 +00:00
|
|
|
assert_script_run('/root/modularity/modular_functions.py -m dwm -s 6.1 -a enable,disable -f hard');
|
|
|
|
|
2019-07-23 14:48:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
|
|
|
return {always_rollback => 1};
|
2018-09-26 13:32:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|