1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-20 13:03:09 +00:00
os-autoinst-distri-fedora/tests/applications/eog/save_as.pm
Lukáš Růžička 1f8b56e068 Change the way to download test data.
This PR changes the way to download the test data into the VM.
Although it does not use a disk image as suggested in one
of the review, it does not clone the entire repository, but
a simple tar.gz file that holds the data which will be
distributed into the directory structure.

This way, the amount of data needed to be downloaded dropped
from approximately 50MB to below 2MB.

Also, the existing test suites were adapted to this situation.
2022-07-04 09:34:04 +02:00

40 lines
855 B
Perl

use base "installedtest";
use strict;
use testapi;
use utils;
# This part tests if the application can save the image as a different file.
sub run {
my $self = shift;
sleep 2;
assert_screen("eog_image_default");
# Shift-ctrl-S to save a file as a new file.
send_key("shift-ctrl-s");
wait_still_screen(3);
# Type the new name, this should be possible without any intervention.
type_very_safely("new_image");
# Hit enter to confirm
send_key("ret");
wait_still_screen("2");
# Go to console
$self->root_console(tty=>3);
# List the location
assert_script_run("ls /home/test/Pictures/");
# Compare the files
assert_script_run("diff /home/test/Pictures/leaves.jpg /home/test/Pictures/new_image.jpg");
}
sub test_flags {
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: