mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-12-03 10:06:26 +00:00
Add testcase for Memtest.
This commit is contained in:
parent
20c1f20880
commit
b87049217c
15
needles/console/memtest_seven_completed.json
Normal file
15
needles/console/memtest_seven_completed.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"area": [
|
||||
{
|
||||
"xpos": 268,
|
||||
"ypos": 32,
|
||||
"width": 74,
|
||||
"height": 16,
|
||||
"type": "match"
|
||||
}
|
||||
],
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"memtest_seven_completed"
|
||||
]
|
||||
}
|
BIN
needles/console/memtest_seven_completed.png
Normal file
BIN
needles/console/memtest_seven_completed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.4 KiB |
15
needles/console/memtest_ten_percent.json
Normal file
15
needles/console/memtest_ten_percent.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"memtest_ten_percent"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 269,
|
||||
"ypos": 16,
|
||||
"width": 75,
|
||||
"height": 17,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/console/memtest_ten_percent.png
Normal file
BIN
needles/console/memtest_ten_percent.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.9 KiB |
15
needles/console/memtest_twenty_percent.json
Normal file
15
needles/console/memtest_twenty_percent.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"properties": [],
|
||||
"tags": [
|
||||
"memtest_twenty_percent"
|
||||
],
|
||||
"area": [
|
||||
{
|
||||
"xpos": 269,
|
||||
"ypos": 16,
|
||||
"width": 75,
|
||||
"height": 17,
|
||||
"type": "match"
|
||||
}
|
||||
]
|
||||
}
|
BIN
needles/console/memtest_twenty_percent.png
Normal file
BIN
needles/console/memtest_twenty_percent.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
@ -1864,6 +1864,14 @@
|
||||
"TEST_TARGET": "NONE"
|
||||
}
|
||||
},
|
||||
"memtest": {
|
||||
"profiles": {
|
||||
"fedora-universal-x86_64-*-64bit": 30
|
||||
},
|
||||
"settings": {
|
||||
"ENTRYPOINT": "memtest"
|
||||
}
|
||||
},
|
||||
"modularity_tests": {
|
||||
"profiles": {
|
||||
"fedora-Server-dvd-iso-aarch64-*-aarch64": 30,
|
||||
|
60
tests/memtest.pm
Normal file
60
tests/memtest.pm
Normal file
@ -0,0 +1,60 @@
|
||||
use base "installedtest";
|
||||
use strict;
|
||||
use testapi;
|
||||
use utils;
|
||||
|
||||
# This test checks that MEMTEST can be chosen in the ISO's grub menu.
|
||||
# The we will see, if such memtest start and progresses to certain
|
||||
# level.
|
||||
#
|
||||
|
||||
sub run {
|
||||
|
||||
# Let's navigate through the Grub menu and choose the memtest item.
|
||||
# We use plenty of sleeps to slower down the process a little bit
|
||||
# and to make it visible at the video and for some troubleshooting.
|
||||
# We do not want to use any needles here to navigate the menu.
|
||||
# Wait for Grub to settle
|
||||
sleep 5;
|
||||
# Choose "Troubleshooting"
|
||||
send_key "down";
|
||||
sleep 2;
|
||||
send_key "ret";
|
||||
sleep 2;
|
||||
# Start memtest
|
||||
send_key "down";
|
||||
sleep 1;
|
||||
send_key "down";
|
||||
sleep 1;
|
||||
send_key "ret";
|
||||
# Now Memtest should be running.
|
||||
send_key "f1";
|
||||
# Assert that the test has reached 10%
|
||||
assert_screen "memtest_ten_percent", 120;
|
||||
# And that it has progressed to 20%
|
||||
assert_screen "memtest_twenty_percent", 120;
|
||||
|
||||
#Then try to select a specific test
|
||||
send_key "c";
|
||||
sleep 1;
|
||||
send_key "1";
|
||||
sleep 1;
|
||||
send_key "3";
|
||||
sleep 1;
|
||||
send_key "7";
|
||||
sleep 1;
|
||||
send_key "ret";
|
||||
sleep 1;
|
||||
send_key "0";
|
||||
|
||||
#Assert that the test has been completed.
|
||||
assert_screen "memtest_seven_completed", 240;
|
||||
}
|
||||
|
||||
sub test_flags {
|
||||
return {fatal => 1};
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
# vim: set sw=4 et:
|
Loading…
Reference in New Issue
Block a user