diff --git a/needles/gnome/apps/archiver/archiver_archive_created-20220915.json b/needles/gnome/apps/archiver/archiver_archive_created-20220915.json new file mode 100644 index 00000000..671cf12e --- /dev/null +++ b/needles/gnome/apps/archiver/archiver_archive_created-20220915.json @@ -0,0 +1,16 @@ +{ + "area": [ + { + "height": 62, + "width": 137, + "xpos": 208, + "ypos": 144, + "type": "match", + "match": 94 + } + ], + "properties": [], + "tags": [ + "archiver_archive_created" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/archiver/archiver_archive_created-20220915.png b/needles/gnome/apps/archiver/archiver_archive_created-20220915.png new file mode 100644 index 00000000..062c037f Binary files /dev/null and b/needles/gnome/apps/archiver/archiver_archive_created-20220915.png differ diff --git a/needles/gnome/apps/archiver/archiver_archive_created.json b/needles/gnome/apps/archiver/archiver_archive_created.json new file mode 100644 index 00000000..46d3a530 --- /dev/null +++ b/needles/gnome/apps/archiver/archiver_archive_created.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 262, + "ypos": 160, + "width": 137, + "height": 62, + "type": "match" + } + ], + "properties": [], + "tags": [ + "archiver_archive_created" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/archiver/archiver_archive_created.png b/needles/gnome/apps/archiver/archiver_archive_created.png new file mode 100644 index 00000000..d5ea0881 Binary files /dev/null and b/needles/gnome/apps/archiver/archiver_archive_created.png differ diff --git a/needles/gnome/apps/archiver/archiver_archive_created_unselected.json b/needles/gnome/apps/archiver/archiver_archive_created_unselected.json new file mode 100644 index 00000000..ab714437 --- /dev/null +++ b/needles/gnome/apps/archiver/archiver_archive_created_unselected.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 253, + "ypos": 153, + "width": 156, + "height": 76, + "type": "match" + } + ], + "properties": [], + "tags": [ + "archiver_archive_created" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/archiver/archiver_archive_created_unselected.png b/needles/gnome/apps/archiver/archiver_archive_created_unselected.png new file mode 100644 index 00000000..df198ba6 Binary files /dev/null and b/needles/gnome/apps/archiver/archiver_archive_created_unselected.png differ diff --git a/needles/gnome/apps/archiver/archiver_archive_extracted-20220915.json b/needles/gnome/apps/archiver/archiver_archive_extracted-20220915.json new file mode 100644 index 00000000..4b4c3074 --- /dev/null +++ b/needles/gnome/apps/archiver/archiver_archive_extracted-20220915.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 237, + "width": 116, + "height": 55, + "type": "match", + "ypos": 153 + } + ], + "properties": [], + "tags": [ + "archiver_archive_extracted" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/archiver/archiver_archive_extracted-20220915.png b/needles/gnome/apps/archiver/archiver_archive_extracted-20220915.png new file mode 100644 index 00000000..77e0da38 Binary files /dev/null and b/needles/gnome/apps/archiver/archiver_archive_extracted-20220915.png differ diff --git a/needles/gnome/apps/archiver/archiver_archive_extracted.json b/needles/gnome/apps/archiver/archiver_archive_extracted.json new file mode 100644 index 00000000..477a2669 --- /dev/null +++ b/needles/gnome/apps/archiver/archiver_archive_extracted.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 271, + "ypos": 170, + "width": 116, + "height": 55, + "type": "match" + } + ], + "properties": [], + "tags": [ + "archiver_archive_extracted" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/archiver/archiver_archive_extracted.png b/needles/gnome/apps/archiver/archiver_archive_extracted.png new file mode 100644 index 00000000..a14b1ac1 Binary files /dev/null and b/needles/gnome/apps/archiver/archiver_archive_extracted.png differ diff --git a/needles/gnome/apps/archiver/archiver_button_create-20220915.json b/needles/gnome/apps/archiver/archiver_button_create-20220915.json new file mode 100644 index 00000000..1780a274 --- /dev/null +++ b/needles/gnome/apps/archiver/archiver_button_create-20220915.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "width": 48, + "xpos": 694, + "height": 19, + "type": "match", + "ypos": 285 + } + ], + "properties": [], + "tags": [ + "archiver_button_create" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/archiver/archiver_button_create-20220915.png b/needles/gnome/apps/archiver/archiver_button_create-20220915.png new file mode 100644 index 00000000..dd76b085 Binary files /dev/null and b/needles/gnome/apps/archiver/archiver_button_create-20220915.png differ diff --git a/needles/gnome/apps/archiver/archiver_button_create.json b/needles/gnome/apps/archiver/archiver_button_create.json new file mode 100644 index 00000000..237bfe2b --- /dev/null +++ b/needles/gnome/apps/archiver/archiver_button_create.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 693, + "ypos": 308, + "width": 48, + "height": 19, + "type": "match" + } + ], + "properties": [], + "tags": [ + "archiver_button_create" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/archiver/archiver_button_create.png b/needles/gnome/apps/archiver/archiver_button_create.png new file mode 100644 index 00000000..e9396431 Binary files /dev/null and b/needles/gnome/apps/archiver/archiver_button_create.png differ diff --git a/needles/gnome/apps/archiver/archiver_context_archive.json b/needles/gnome/apps/archiver/archiver_context_archive.json new file mode 100644 index 00000000..c13ff8d1 --- /dev/null +++ b/needles/gnome/apps/archiver/archiver_context_archive.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 347, + "ypos": 498, + "width": 90, + "height": 22, + "type": "match" + } + ], + "properties": [], + "tags": [ + "archiver_context_archive" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/archiver/archiver_context_archive.png b/needles/gnome/apps/archiver/archiver_context_archive.png new file mode 100644 index 00000000..c1e2aaed Binary files /dev/null and b/needles/gnome/apps/archiver/archiver_context_archive.png differ diff --git a/needles/gnome/apps/archiver/archiver_context_extract-20220915.json b/needles/gnome/apps/archiver/archiver_context_extract-20220915.json new file mode 100644 index 00000000..d9c1c1b4 --- /dev/null +++ b/needles/gnome/apps/archiver/archiver_context_extract-20220915.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "ypos": 184, + "type": "match", + "height": 21, + "width": 93, + "xpos": 343 + } + ], + "properties": [], + "tags": [ + "archiver_context_extract" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/archiver/archiver_context_extract-20220915.png b/needles/gnome/apps/archiver/archiver_context_extract-20220915.png new file mode 100644 index 00000000..d8a0586a Binary files /dev/null and b/needles/gnome/apps/archiver/archiver_context_extract-20220915.png differ diff --git a/needles/gnome/apps/archiver/archiver_context_extract.json b/needles/gnome/apps/archiver/archiver_context_extract.json new file mode 100644 index 00000000..e565ebef --- /dev/null +++ b/needles/gnome/apps/archiver/archiver_context_extract.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 346, + "ypos": 204, + "width": 58, + "height": 21, + "type": "match" + } + ], + "properties": [], + "tags": [ + "archiver_context_extract" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/archiver/archiver_context_extract.png b/needles/gnome/apps/archiver/archiver_context_extract.png new file mode 100644 index 00000000..51246d54 Binary files /dev/null and b/needles/gnome/apps/archiver/archiver_context_extract.png differ diff --git a/needles/gnome/apps/archiver/archiver_file_one-20220915.json b/needles/gnome/apps/archiver/archiver_file_one-20220915.json new file mode 100644 index 00000000..f203bc94 --- /dev/null +++ b/needles/gnome/apps/archiver/archiver_file_one-20220915.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 232, + "ypos": 154, + "width": 86, + "height": 53, + "type": "match" + } + ], + "properties": [], + "tags": [ + "archiver_file_one" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/archiver/archiver_file_one-20220915.png b/needles/gnome/apps/archiver/archiver_file_one-20220915.png new file mode 100644 index 00000000..7c5bf2f4 Binary files /dev/null and b/needles/gnome/apps/archiver/archiver_file_one-20220915.png differ diff --git a/needles/gnome/apps/archiver/archiver_file_one.json b/needles/gnome/apps/archiver/archiver_file_one.json new file mode 100644 index 00000000..71c2037c --- /dev/null +++ b/needles/gnome/apps/archiver/archiver_file_one.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 290, + "ypos": 156, + "width": 86, + "height": 71, + "type": "match" + } + ], + "properties": [], + "tags": [ + "archiver_file_one" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/archiver/archiver_file_one.png b/needles/gnome/apps/archiver/archiver_file_one.png new file mode 100644 index 00000000..0c630852 Binary files /dev/null and b/needles/gnome/apps/archiver/archiver_file_one.png differ diff --git a/needles/gnome/apps/archiver/archiver_format_selector-20220915.json b/needles/gnome/apps/archiver/archiver_format_selector-20220915.json new file mode 100644 index 00000000..81d032ea --- /dev/null +++ b/needles/gnome/apps/archiver/archiver_format_selector-20220915.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "type": "match", + "ypos": 382, + "xpos": 656, + "width": 46, + "height": 22 + } + ], + "properties": [], + "tags": [ + "archiver_format_selector" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/archiver/archiver_format_selector-20220915.png b/needles/gnome/apps/archiver/archiver_format_selector-20220915.png new file mode 100644 index 00000000..f1e011d5 Binary files /dev/null and b/needles/gnome/apps/archiver/archiver_format_selector-20220915.png differ diff --git a/needles/gnome/apps/archiver/archiver_format_selector.json b/needles/gnome/apps/archiver/archiver_format_selector.json new file mode 100644 index 00000000..99936ccc --- /dev/null +++ b/needles/gnome/apps/archiver/archiver_format_selector.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 657, + "ypos": 403, + "width": 46, + "height": 22, + "type": "match" + } + ], + "properties": [], + "tags": [ + "archiver_format_selector" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/archiver/archiver_format_selector.png b/needles/gnome/apps/archiver/archiver_format_selector.png new file mode 100644 index 00000000..1977be49 Binary files /dev/null and b/needles/gnome/apps/archiver/archiver_format_selector.png differ diff --git a/needles/gnome/apps/archiver/archiver_select_tarxz-20220915.json b/needles/gnome/apps/archiver/archiver_select_tarxz-20220915.json new file mode 100644 index 00000000..b657cb26 --- /dev/null +++ b/needles/gnome/apps/archiver/archiver_select_tarxz-20220915.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 310, + "width": 99, + "height": 43, + "type": "match", + "ypos": 559 + } + ], + "properties": [], + "tags": [ + "archiver_select_tarxz" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/archiver/archiver_select_tarxz-20220915.png b/needles/gnome/apps/archiver/archiver_select_tarxz-20220915.png new file mode 100644 index 00000000..bc17bbd9 Binary files /dev/null and b/needles/gnome/apps/archiver/archiver_select_tarxz-20220915.png differ diff --git a/needles/gnome/apps/archiver/archiver_select_tarxz.json b/needles/gnome/apps/archiver/archiver_select_tarxz.json new file mode 100644 index 00000000..7c0b9d03 --- /dev/null +++ b/needles/gnome/apps/archiver/archiver_select_tarxz.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "xpos": 621, + "ypos": 562, + "width": 99, + "height": 43, + "type": "match" + } + ], + "properties": [], + "tags": [ + "archiver_select_tarxz" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/archiver/archiver_select_tarxz.png b/needles/gnome/apps/archiver/archiver_select_tarxz.png new file mode 100644 index 00000000..aa574f71 Binary files /dev/null and b/needles/gnome/apps/archiver/archiver_select_tarxz.png differ diff --git a/needles/gnome/apps/archiver/gnome_open_location_pictures-20220915.json b/needles/gnome/apps/archiver/gnome_open_location_pictures-20220915.json new file mode 100644 index 00000000..3be30ee5 --- /dev/null +++ b/needles/gnome/apps/archiver/gnome_open_location_pictures-20220915.json @@ -0,0 +1,15 @@ +{ + "area": [ + { + "ypos": 323, + "width": 80, + "height": 20, + "type": "match", + "xpos": 20 + } + ], + "properties": [], + "tags": [ + "gnome_open_location_pictures" + ] +} \ No newline at end of file diff --git a/needles/gnome/apps/archiver/gnome_open_location_pictures-20220915.png b/needles/gnome/apps/archiver/gnome_open_location_pictures-20220915.png new file mode 100644 index 00000000..c72f1102 Binary files /dev/null and b/needles/gnome/apps/archiver/gnome_open_location_pictures-20220915.png differ diff --git a/templates.fif.json b/templates.fif.json index 7133f740..689aa507 100644 --- a/templates.fif.json +++ b/templates.fif.json @@ -9,6 +9,8 @@ "QEMUCPUS": "2", "QEMURAM": "3072", "QEMUVGA": "virtio", + "XRES": "1024", + "YRES": "768", "QEMU_VIRTIO_RNG": "1", "WORKER_CLASS": "qemu_x86_64" } @@ -70,6 +72,8 @@ "QEMUCPUS": "2", "QEMURAM": "3072", "QEMUVGA": "virtio", + "XRES": "1024", + "YRES": "768", "QEMU_VIRTIO_RNG": "1", "UEFI": "1", "UEFI_PFLASH_CODE": "/usr/share/edk2/ovmf/OVMF_CODE.fd", @@ -1085,6 +1089,22 @@ "START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%" } }, + "archiver": { + "profiles": { + "fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50, + "fedora-Silverblue-dvd_ostree-iso-x86_64-*-64bit": 50, + "fedora-Workstation-live-iso-ppc64le-*-ppc64le": 20, + "fedora-Workstation-live-iso-x86_64-*-64bit": 20, + "fedora-Workstation-upgrade-aarch64-*-aarch64": 40, + "fedora-Workstation-raw_xz-raw.xz-aarch64-*-aarch64": 22 + }, + "settings": { + "BOOTFROM": "c", + "HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2", + "POSTINSTALL_PATH": "tests/applications/archiver", + "START_AFTER_TEST": "%DEPLOY_UPLOAD_TEST%" + } + }, "eog": { "profiles": { "fedora-Silverblue-dvd_ostree-iso-ppc64le-*-ppc64le": 50, diff --git a/tests/applications/archiver/aaa_setup.pm b/tests/applications/archiver/aaa_setup.pm new file mode 100644 index 00000000..f5eb4349 --- /dev/null +++ b/tests/applications/archiver/aaa_setup.pm @@ -0,0 +1,38 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This will set up the environment for the archiver test. +# It creates nine file and places them in the Documents folder. +# Then opens Nautilus (archive fce) and switches to that folder. + +sub run { + my $self = shift; + my $username = get_var("USER_LOGIN") // "test"; + # Create the files on the CLI + $self->root_console(tty => 3); + assert_script_run("cd /home/$username/Documents"); + assert_script_run('for i in {1..9}; do echo $i > file$i.txt; done'); + assert_script_run("chown -R $username:$username /home/$username/Documents/"); + # Exit to the GUI + desktop_vt; + + # Start the application + menu_launch_type("nautilus"); + # Check it has started + assert_screen 'apps_run_files'; + # Fullsize the window. + send_key("super-up"); + + # Open the Documents directory + assert_and_click("gnome_open_location_documents"); +} + +sub test_flags { + return {fatal => 1, milestone => 1}; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/applications/archiver/archive.pm b/tests/applications/archiver/archive.pm new file mode 100644 index 00000000..fd251899 --- /dev/null +++ b/tests/applications/archiver/archive.pm @@ -0,0 +1,37 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This script will test if files in a directory can be archived +# in an archive file. + +sub run { + my $self = shift; + + # We are already in the correct directory, so let's just + # select all the files. + send_key("ctrl-a"); + # Right click on the first of them to open the context menu. + assert_and_click("archiver_file_one", button => 'right'); + # Select to archive it. + assert_and_click("archiver_context_archive"); + # Type the name for the archive + type_very_safely("archived_files"); + # Open the selection of formats. + assert_and_click("archiver_format_selector"); + # Select the tar.xz method + assert_and_click("archiver_select_tarxz"); + # Confirm + assert_and_click("archiver_button_create"); + # Assert that a file has been created in that directory (it may take some time) + assert_screen("archiver_archive_created"); +} + +sub test_flags { + return {fatal => 1}; +} + +1; + +# vim: set sw=4 et: diff --git a/tests/applications/archiver/extract.pm b/tests/applications/archiver/extract.pm new file mode 100644 index 00000000..0299a886 --- /dev/null +++ b/tests/applications/archiver/extract.pm @@ -0,0 +1,49 @@ +use base "installedtest"; +use strict; +use testapi; +use utils; + +# This script will take a newly created archive and will move it into +# another folder, where it will be extracted and checked. + + +sub run { + my $self = shift; + my $username = get_var("USER_LOGIN") // "test"; + # We are already in the correct directory, so let's just + # select the newly archived file, that should be there. + assert_and_click("archiver_archive_created"); + send_key("ctrl-x"); + # Go to the Picture folder. + assert_and_click("gnome_open_location_pictures"); + # Paste it there. + send_key("ctrl-v"); + # Assert that a file has been created in that directory (it may take some time) + assert_screen("archiver_archive_created"); + # Right click onto it + click_lastmatch(button => 'right'); + # Select to Extract the content + assert_and_click("archiver_context_extract"); + # Assert that the extracted folder appeared in that location. + assert_screen("archiver_archive_extracted"); + + # Go to console for further testing. + $self->root_console(tty => 3); + # The archive has been removed from the original location. + assert_script_run("! ls /home/$username/Documents/archived_files.tar.xz"); + # The archive has been put into a new location. + assert_script_run("ls /home/$username/Pictures/archived_files.tar.xz"); + # The content was extracted. + #assert_script_run("ls /home/$username/Pictures/archived_files"); + # All nine files are there. + validate_script_output("ls /home/$username/Pictures/archived_files/* | wc -l", qr/9/); + +} + +sub test_flags { + return {fatal => 1}; +} + +1; + +# vim: set sw=4 et: