Create test for IoT Greenboot.

Finish test and add necessary needles.

Create IOT needle directory and move needles in it.

Delete needle as required by the review.

Add to templates.
This commit is contained in:
Lukáš Růžička 2020-05-27 14:49:22 +02:00 committed by adamwill
parent 14b21866f2
commit ce584750b4
4 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,22 @@
{
"area": [
{
"xpos": 119,
"ypos": 97,
"width": 42,
"height": 13,
"type": "match"
},
{
"xpos": 285,
"ypos": 95,
"width": 62,
"height": 16,
"type": "match"
}
],
"properties": [],
"tags": [
"iot_greenboot_passed"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -1492,6 +1492,19 @@
"ROOT_PASSWORD": "weakpassword"
}
},
"iot_greenboot": {
"profiles": {
"fedora-IoT-dvd_ostree-iso-aarch64-*-aarch64": 20,
"fedora-IoT-dvd_ostree-iso-x86_64-*-64bit": 20
},
"settings": {
"BOOTFROM": "c",
"HDD_1": "disk_%FLAVOR%_%MACHINE%.qcow2",
"POSTINSTALL": "iot_greenboot",
"ROOT_PASSWORD": "weakpassword",
"START_AFTER_TEST": "install_default_upload"
}
},
"mediakit_fileconflicts": {
"profiles": {
"fedora-Server-dvd-iso-aarch64-*-aarch64": 10,

37
tests/iot_greenboot.pm Normal file
View File

@ -0,0 +1,37 @@
use base "installedtest";
use strict;
use testapi;
use utils;
sub run {
my $self = shift;
# switch to TTY3 for both, graphical and console tests
$self->root_console(tty=>3);
# Use ssh to log into this machine to see its status.
type_string "ssh test\@localhost\n";
sleep 2;
# It is very probable that this is the first time that anybody
# wants to ssh in. We need to accept the authentication.
type_string "yes\n";
sleep 1;
# Type the user password for this connection and hopefully log in.
my $pwd = get_var("USER_PASSWORD") // "weakpassword";
type_string "$pwd\n";
sleep 2;
# Check that the output is correct as expected.
assert_screen "iot_greenboot_passed";
# Logout from the ssh connection.
type_string "exit\n";
}
sub test_flags {
return { fatal => 1 };
}
1;
# vim: set sw=4 et: