usb_install.feature 4.97 KB
Newer Older
1
@product
2
Feature: Installing Tails to a USB drive
3
  As a Tails user
4
  I want to install Tails to a suitable USB drive
5

6
  Scenario: Try installing Tails to a too small USB drive
7
    Given I have started Tails from DVD without network and logged in
8
    And I temporarily create a 2 GiB disk named "too-small-device"
9
    And I start Tails Installer in "Clone & Install" mode
10
    But a suitable USB device is not found
11
    When I plug USB drive "too-small-device"
12
    Then Tails Installer detects that a device is too small
13
    And a suitable USB device is not found
anonym's avatar
anonym committed
14
    When I unplug USB drive "too-small-device"
15
16
17
    And I create a 4 GiB disk named "current"
    And I plug USB drive "current"
    Then the "current" USB drive is selected
18

intrigeri's avatar
intrigeri committed
19
  Scenario: Detecting when a target USB drive is inserted or removed
20
    Given I have started Tails from DVD without network and logged in
21
    And I temporarily create a 4 GiB disk named "temp"
22
    And I start Tails Installer in "Clone & Install" mode
23
    But a suitable USB device is not found
24
25
26
    When I plug USB drive "temp"
    Then the "temp" USB drive is selected
    When I unplug USB drive "temp"
27
28
29
    Then no USB drive is selected
    And a suitable USB device is not found

30
  Scenario: Installing Tails to a pristine USB drive
31
    Given I have started Tails from DVD without network and logged in
32
33
34
35
36
    And I temporarily create a 4 GiB disk named "install"
    And I plug USB drive "install"
    And I "Clone & Install" Tails to USB drive "install"
    Then the running Tails is installed on USB drive "install"
    But there is no persistence partition on USB drive "install"
37

38
  Scenario: Booting Tails from a USB drive without a persistent partition and creating one
39
    Given I have started Tails without network from a USB drive without a persistent partition and stopped at Tails Greeter's login screen
40
41
42
43
44
    And I log in to a new session
    Then Tails seems to have booted normally
    When I create a persistent partition
    Then a Tails persistence partition exists on USB drive "current"

45
  Scenario: Booting Tails from a USB drive without a persistent partition
46
    Given I have started Tails without network from a USB drive without a persistent partition and stopped at Tails Greeter's login screen
47
48
    When I log in to a new session
    Then Tails seems to have booted normally
49
    And Tails is running from USB drive "current"
50
    And the persistent Tor Browser directory does not exist
51
    And there is no persistence partition on USB drive "current"
52

53
  Scenario: Booting Tails from a USB drive in UEFI mode
54
    Given I have started Tails without network from a USB drive without a persistent partition and stopped at Tails Greeter's login screen
55
56
    Then I power off the computer
    Given the computer is set to boot in UEFI mode
57
58
    When I start Tails from USB drive "current" with network unplugged and I login
    Then the boot device has safe access rights
59
60
    And Tails is running from USB drive "current"
    And the boot device has safe access rights
61
    And Tails has started in UEFI mode
62

63
  Scenario: Installing Tails to a USB drive with an MBR partition table but no partitions, and making sure that it boots
64
    Given I have started Tails from DVD without network and logged in
65
    And I temporarily create a 4 GiB disk named "mbr"
66
67
68
    And I create a msdos label on disk "mbr"
    And I plug USB drive "mbr"
    And I "Clone & Install" Tails to USB drive "mbr"
69
    Then the running Tails is installed on USB drive "mbr"
70
    But there is no persistence partition on USB drive "mbr"
71
    When I shutdown Tails and wait for the computer to power off
72
73
    And I start Tails from USB drive "mbr" with network unplugged and I login
    Then Tails is running from USB drive "mbr"
74
75
    And the boot device has safe access rights
    And there is no persistence partition on USB drive "mbr"
76

77
  Scenario: Cat:ing a Tails isohybrid to a USB drive and booting it, then trying to upgrading it but ending up having to do a fresh installation, which boots
78
    Given a computer
79
    And I temporarily create a 4 GiB disk named "isohybrid"
80
    And I cat an ISO of the Tails image to disk "isohybrid"
81
82
    And I start Tails from USB drive "isohybrid" with network unplugged and I login
    Then Tails is running from USB drive "isohybrid"
83
    When I shutdown Tails and wait for the computer to power off
84
    And I start Tails from DVD with network unplugged and I login
85
    And I try a "Clone & Upgrade" Tails to USB drive "isohybrid"
86
    Then I am suggested to do a "Clone & Install"
87
    When I kill the process "tails-installer"
88
    And I "Clone & Install" Tails to USB drive "isohybrid"
89
    Then the running Tails is installed on USB drive "isohybrid"
90
    But there is no persistence partition on USB drive "isohybrid"
91
    When I shutdown Tails and wait for the computer to power off
92
93
    And I start Tails from USB drive "isohybrid" with network unplugged and I login
    Then Tails is running from USB drive "isohybrid"
94
95
    And the boot device has safe access rights
    And there is no persistence partition on USB drive "isohybrid"