forked from os-autoinst/os-autoinst-distri-opensuse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: test sway | ||
description: > | ||
Tests sway | ||
schedule: | ||
- boot/boot_to_desktop | ||
- console/system_prepare | ||
- console/consoletest_setup | ||
- console/hostname | ||
- update/zypper_clear_repos | ||
- console/install_sway_pattern | ||
- console/consoletest_finish | ||
- x11/sway_reconfigure_openqa | ||
- x11/reboot_icewm | ||
- console/install_sway_pattern | ||
- shutdown/shutdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# SUSE's openQA tests | ||
# | ||
# Copyright 2012-2016 SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
|
||
# Summary: Framework to test other Desktop Environments | ||
# Non-Primary desktop environments are generally installed by means | ||
# of a pattern. For those tests, we assume a minimal-X based installation | ||
# where the pattern is being installed on top. | ||
# Maintainer: Dominique Leuenberger <dimstar@opensuse.org> | ||
|
||
use base "consoletest"; | ||
use serial_terminal 'select_serial_terminal'; | ||
use strict; | ||
use warnings; | ||
use testapi; | ||
use utils; | ||
use power_action_utils 'power_action'; | ||
|
||
sub run { | ||
select_serial_terminal; | ||
|
||
script_run("mkdir -p ~/.config/sway"); | ||
script_run("cp /etc/sway/config ~/.config/sway/"); | ||
assert_script_run("sed -i 's/set \$menu dmenu_path/set \$menu dmenu_path | dmenu -nb \\\'#173f4f\\' -sb \\\'#35b9ab\\' -nf \\\'#73ba25\\' -sf \\\'#173f4f\\' -fn \\\'Source Sans Pro-14\\' | xargs swaymsg exec --/' ~/.config/sway/config"); | ||
script_run('echo -e "[Desktop]\\nSession=sway" > ~/.dmrc'); | ||
power_action('reboot', textmode => 1); | ||
$self->wait_boot; | ||
send_key("super-d"); | ||
assert_screen 'sway-menu-bar'; | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# SUSE's openQA tests | ||
# | ||
# Copyright SUSE LLC | ||
# SPDX-License-Identifier: FSFAP | ||
|
||
# Summary: Other Desktop Environments: sway | ||
# Update the openQA internal configuration after the DE has been installed | ||
# Maintainer: Dominique Leuenberger <dimstar@opensuse.org> | ||
|
||
use base "x11test"; | ||
use strict; | ||
use warnings; | ||
use testapi; | ||
use utils; | ||
|
||
sub run { | ||
my $self = shift; | ||
|
||
set_var('DESKTOP', 'sway'); | ||
|
||
set_var('DISPLAYMANAGER', 'sddm'); | ||
set_var('DM_NEEDS_USERNAME', 0); | ||
|
||
$self->result('ok'); | ||
} | ||
|
||
1; |