1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 21:43:08 +00:00

Add the Turkish installation test.

Add turkish console to console_loadkeys_us
This commit is contained in:
Lukáš Růžička 2023-06-22 11:53:15 +02:00 committed by adamwill
parent ba1d492416
commit f528904344
40 changed files with 353 additions and 4 deletions

View File

@ -204,7 +204,16 @@ sub console_login {
if (check_screen $bad, 0) {
# we don't want to 'wait' for this as it won't return
script_run "exit", 0;
my $script = "exit";
# If Turkish keyboard is installed, the word "exit" is typed
# incorrectly because the keyboard layout is different and
# openQA sends keys according to the English layout.
# Therefore we need to send a string that is
# correctly interpreted by the Turkish layout.
if (get_var("LANGUAGE") eq "turkish") {
$script = "ex't";
}
script_run $script, 0;
sleep 2;
}
@ -312,7 +321,7 @@ sub console_loadkeys_us {
# might take a few secs
sleep 3;
}
elsif (get_var('LANGUAGE') eq 'japanese') {
elsif (get_var('LANGUAGE') eq 'japanese' || get_var('LANGUAGE') eq 'turkish') {
script_run "loadkeys us", 0;
sleep 3;
}
@ -834,13 +843,32 @@ sub anaconda_create_user {
timeout => 90,
@_
);
# For some languages, i.e. Turkish, we want to use a complicated
# geo field to test that turkish letters will be displayed correctly
# and that the installer will be able to handle them and change them
# into the correct user name without special characters.
my $geofield = get_var("USER_GECOS");
my $user_login = get_var("USER_LOGIN") || "test";
unless ($geofield) {
# If geofield is not defined, let it be the same as login.
$geofield = $user_login;
}
assert_and_click("anaconda_install_user_creation", timeout => $args{timeout});
assert_screen "anaconda_install_user_creation_screen";
# wait out animation
wait_still_screen 2;
type_very_safely $user_login;
type_very_safely "\t\t\t\t";
# We will type the $geofield as the user name.
type_very_safely $geofield;
# For Turkish, we especially want to check that correct characters
# are typed, so we will check it here.
if (get_var("LANGUAGE") eq "turkish") {
assert_screen("username_typed_correctly_turkish");
}
send_key("tab");
# Now set the login name.
type_very_safely($user_login);
# And fill the password stuff.
type_very_safely "\t\t\t";
_type_user_password();
wait_screen_change { send_key "tab"; };
wait_still_screen 2;

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 24,
"ypos": 552,
"width": 116,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_install_destination_encrypt_data"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 692,
"ypos": 513,
"width": 91,
"height": 14,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_install_destination_save_passphrase"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 863,
"ypos": 733,
"width": 134,
"height": 14,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_install_done"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 265,
"ypos": 294,
"width": 169,
"height": 14,
"type": "match"
}
],
"properties": [],
"tags": [
"ENV-DISTRI-fedora",
"anaconda_install_root_password_screen"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 335,
"ypos": 589,
"width": 24,
"height": 10,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_install_user_created"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"type": "match",
"width": 20,
"ypos": 590,
"height": 10,
"xpos": 336
}
],
"properties": [],
"tags": [
"anaconda_install_user_created"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 364,
"ypos": 220,
"width": 257,
"height": 16,
"type": "match"
},
{
"xpos": 302,
"ypos": 256,
"width": 41,
"height": 15,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_install_user_creation_screen"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 366,
"ypos": 99,
"width": 140,
"height": 59,
"type": "match",
"match": 90
}
],
"properties": [],
"tags": [
"username_typed_correctly_turkish"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 954,
"ypos": 730,
"width": 44,
"height": 18,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_select_install_lang_continue"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 220,
"ypos": 198,
"width": 51,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_select_install_lang_filtered"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 606,
"ypos": 195,
"width": 115,
"height": 19,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_select_install_lang_selected"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

View File

@ -0,0 +1,19 @@
{
"area": [
{
"width": 58,
"height": 18,
"ypos": 220,
"type": "match",
"xpos": 219,
"match": 94
}
],
"properties": [],
"tags": [
"anaconda_select_install_lang_selected",
"anaconda_select_install_lang_filtered",
"ENV-DISTRI-fedora",
"LANGUAGE-english"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 906,
"ypos": 707,
"width": 92,
"height": 18,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_main_hub_begin_installation"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 50,
"ypos": 253,
"width": 117,
"height": 15,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_workstation_highlighted"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 29,
"ypos": 253,
"width": 140,
"height": 15,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_workstation_selected"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

View File

@ -0,0 +1,16 @@
{
"area": [
{
"xpos": 633,
"ypos": 560,
"width": 125,
"height": 14,
"type": "match"
}
],
"properties": [],
"tags": [
"ENV-DISTRI-fedora",
"anaconda_rawhide_accept_fate"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 34,
"ypos": 53,
"width": 28,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"anaconda_spoke_done"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 17,
"ypos": 10,
"width": 73,
"height": 14,
"type": "match"
}
],
"properties": [],
"tags": [
"apps_menu_button"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 KiB

View File

@ -0,0 +1,15 @@
{
"area": [
{
"xpos": 465,
"type": "match",
"height": 122,
"ypos": 250,
"width": 123
}
],
"properties": [],
"tags": [
"getting_started"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 KiB

View File

@ -2079,6 +2079,28 @@
"ROOT_PASSWORD": "weakpassword"
}
},
"install_turkish_language": {
"profiles": {
"fedora-Server-dvd-iso-aarch64-*-aarch64": 40,
"fedora-Server-dvd-iso-ppc64le-*-ppc64le": 40,
"fedora-Server-dvd-iso-x86_64-*-64bit": 40
},
"settings": {
"DESKTOP": "gnome",
"ENCRYPT_PASSWORD": "weakpassword",
"HDDSIZEGB": "15",
"LANGUAGE": "turkish",
"NO_UEFI_POST": "1",
"PACKAGE_SET": "workstation",
"POSTINSTALL": "_console_login",
"QEMU_DISABLE_SNAPSHOTS": "1",
"REPOSITORY_VARIATION": "%LOCATION%",
"ROOT_PASSWORD": "weakpassword",
"USER_GECOS": "I;'[] <>i[ \"d,. };[,r]",
"USER_LOGIN": "test",
"USER_PASSWORD": "weakpassword"
}
},
"install_updates_img_local": {
"profiles": {
"fedora-Server-dvd-iso-ppc64le-*-ppc64le": 30,