2018-09-26 13:32:42 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
sub run {
|
|
|
|
my $self=shift;
|
|
|
|
# switch to tty and login as root
|
|
|
|
$self->root_console(tty=>3);
|
|
|
|
|
|
|
|
# Download the testing script
|
|
|
|
download_modularity_tests();
|
|
|
|
|
|
|
|
# Check that modularity works and that a particular module is available in the system.
|
2019-10-30 13:58:26 +00:00
|
|
|
assert_script_run('/root/test.py -m nodejs -s 12 -a list');
|
2018-09-26 13:32:42 +00:00
|
|
|
|
|
|
|
# Check that module can be enabled and removed.
|
2019-10-30 13:58:26 +00:00
|
|
|
assert_script_run('/root/test.py -m nodejs -s 12 -p default -a install,remove,reset -f hard');
|
2019-07-10 08:47:10 +00:00
|
|
|
|
|
|
|
# Upload modular logs
|
|
|
|
upload_logs '/root/modular.log', failok=>1;
|
2018-09-26 13:32:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|