2021-08-24 08:16:40 +00:00
|
|
|
use base "installedtest";
|
|
|
|
use strict;
|
|
|
|
use testapi;
|
|
|
|
use utils;
|
|
|
|
use desktoptools;
|
|
|
|
|
|
|
|
# This script tests if Software can install applications from RPMs, verify
|
|
|
|
# the installation and open the application directly from Software.
|
|
|
|
|
|
|
|
# We copied the subroutine from the install_multi_rpms.pm and adapted it
|
|
|
|
# to only install one single application.
|
|
|
|
# We have decided to duplicate that code here and not place in the library,
|
|
|
|
# as we will probably not use it anywhere else than this Software test.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sub run {
|
|
|
|
my $self = shift;
|
|
|
|
|
|
|
|
unless (get_var("SUBVARIANT") eq "Silverblue") {
|
|
|
|
|
2023-03-22 11:31:48 +00:00
|
|
|
# Find the application.
|
2023-03-23 16:20:24 +00:00
|
|
|
find_application("inkscape");
|
2021-08-24 08:16:40 +00:00
|
|
|
# Install the application.
|
2023-03-23 16:20:24 +00:00
|
|
|
install_application("inkscape", "rpm");
|
2021-08-24 08:16:40 +00:00
|
|
|
wait_still_screen(10);
|
|
|
|
# Check that it is installed.
|
2023-03-23 16:20:24 +00:00
|
|
|
check_app_installed("inkscape");
|
2021-08-24 08:16:40 +00:00
|
|
|
# Start it from Software.
|
2023-03-23 16:20:24 +00:00
|
|
|
start_application_via_packagemanager("inkscape");
|
2021-08-24 08:16:40 +00:00
|
|
|
|
|
|
|
# Confirm that it has been installed using CLI tools.
|
|
|
|
# Switch to console
|
|
|
|
$self->root_console(tty => 3);
|
|
|
|
# Check that the rpm is installed.
|
2023-03-23 16:20:24 +00:00
|
|
|
assert_script_run("rpm -qa inkscape");
|
2021-08-24 08:16:40 +00:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
record_info("Silverblue override", "This test has been skipped because the functionality is not available on Silverblue.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sub test_flags {
|
|
|
|
# When finished, rollback to milestone
|
|
|
|
return {always_rollback => 1};
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
|
|
|
# vim: set sw=4 et:
|
|
|
|
|