summaryrefslogtreecommitdiffstats
path: root/cucumber
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2016-11-26 12:10:57 +0100
committerPhilip Hands <phil@hands.com>2016-11-26 23:52:18 +0100
commit715efaab8bd4d0061f135cabccb955c8dc336c84 (patch)
treee8935f6afb47b9a3e38d3a4963e5ac41b82c86b0 /cucumber
parentf22bafe44423c45a24cb239337bc0bb91981d041 (diff)
downloadjenkins.debian.net-715efaab8bd4d0061f135cabccb955c8dc336c84.tar.xz
lvc: first cut at a Debian-Edu install
Diffstat (limited to 'cucumber')
-rw-r--r--cucumber/features/images/d-i_gui_Edu-AutoPartition.pngbin0 -> 8408 bytes
-rw-r--r--cucumber/features/images/d-i_gui_Edu-Profile.pngbin0 -> 210566 bytes
-rw-r--r--cucumber/features/images/d-i_text_Edu-Profile.pngbin0 -> 80161 bytes
-rw-r--r--cucumber/features/install.feature21
-rw-r--r--cucumber/features/step_definitions/common_steps.rb32
5 files changed, 53 insertions, 0 deletions
diff --git a/cucumber/features/images/d-i_gui_Edu-AutoPartition.png b/cucumber/features/images/d-i_gui_Edu-AutoPartition.png
new file mode 100644
index 00000000..9bef4d34
--- /dev/null
+++ b/cucumber/features/images/d-i_gui_Edu-AutoPartition.png
Binary files differ
diff --git a/cucumber/features/images/d-i_gui_Edu-Profile.png b/cucumber/features/images/d-i_gui_Edu-Profile.png
new file mode 100644
index 00000000..d9d1df89
--- /dev/null
+++ b/cucumber/features/images/d-i_gui_Edu-Profile.png
Binary files differ
diff --git a/cucumber/features/images/d-i_text_Edu-Profile.png b/cucumber/features/images/d-i_text_Edu-Profile.png
new file mode 100644
index 00000000..9c4cdc11
--- /dev/null
+++ b/cucumber/features/images/d-i_text_Edu-Profile.png
Binary files differ
diff --git a/cucumber/features/install.feature b/cucumber/features/install.feature
index cb061fd8..2fa32386 100644
--- a/cucumber/features/install.feature
+++ b/cucumber/features/install.feature
@@ -82,3 +82,24 @@ Feature: Doing variations on d-i installs
When the computer is set to boot from ide drive
And I start the computer
Then I should see a LXDE Login prompt
+
+ @debedu
+ Scenario: Install default Debedu
+ Given a disk is created for Debian Installer tests
+ And I intend to use gui mode
+ And I start the computer
+ And I select the install mode
+ And I select British English
+ And I select Standalone Debian-Edu profile
+ And I use the Debian-Edu Automatic Partitioning
+ And I ignore Popcon
+ And I set the root password to "rootme"
+ And I set the password for "Philip Hands" to be "verysecret"
+ And I wait while the bulk of the packages are installed
+ And I install GRUB
+ And I allow reboot after the install is complete
+ And I wait for the reboot
+ And I power off the computer
+ And the computer is set to boot from ide drive
+ When I start the computer
+ Then I should see a Gnome Login prompt
diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb
index b7f46a7e..6dac688d 100644
--- a/cucumber/features/step_definitions/common_steps.rb
+++ b/cucumber/features/step_definitions/common_steps.rb
@@ -459,6 +459,38 @@ Given /^I select the non-GUI task$/ do
@screen.type(Sikuli::Key.ENTER)
end
+Given /^I select Standalone Debian-Edu profile$/ do
+ @screen.wait(diui_png("Edu-Profile"), 2 * 60 * PATIENCE)
+ @screen.type(Sikuli::Key.SPACE)
+ @screen.type(Sikuli::Key.DOWN)
+ @screen.type(Sikuli::Key.SPACE)
+ @screen.type(Sikuli::Key.DOWN)
+ @screen.type(Sikuli::Key.DOWN)
+ @screen.type(Sikuli::Key.SPACE)
+ @screen.type(Sikuli::Key.DOWN)
+ @screen.type(Sikuli::Key.SPACE)
+
+ if "gui" == @ui_mode
+ @screen.wait(diui_png("CONTINUEunselected"), 10 * PATIENCE)
+ @screen.type(Sikuli::Key.TAB)
+ @screen.wait(diui_png("CONTINUEselected"), 10 * PATIENCE)
+ end
+ @screen.type(Sikuli::Key.ENTER)
+end
+
+Given /^I use the Debian-Edu Automatic Partitioning$/ do
+ @screen.wait(diui_png("Edu-AutoPartition"), 10 * PATIENCE)
+ # prompt about Writing Partitions to disk:
+ @screen.wait(diui_png("No"), 10 * PATIENCE)
+ if "gui" == @ui_mode
+ @screen.type(Sikuli::Key.DOWN)
+ else
+ @screen.type(Sikuli::Key.TAB)
+ end
+ @screen.wait(diui_png("Yes"), 10 * PATIENCE)
+ @screen.type(Sikuli::Key.ENTER)
+end
+
Given /^I select the minimal task$/ do
@screen.wait(diui_png("DesktopTask_Yes"), 2 * 60 * PATIENCE)