usb_install.feature 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. Scenario: Try installing Tails to a too small USB drive
  6. Given I have started Tails from DVD without network and logged in
  7. And I temporarily create a 2 GiB disk named "too-small-device"
  8. And I start Tails Installer in "Clone & Install" mode
  9. But a suitable USB device is not found
  10. When I plug USB drive "too-small-device"
  11. Then Tails Installer detects that a device is too small
  12. And a suitable USB device is not found
  13. When I unplug USB drive "too-small-device"
  14. And I create a 4 GiB disk named "big-enough"
  15. And I plug USB drive "big-enough"
  16. Then the "big-enough" USB drive is selected
  17. Scenario: Detecting when a target USB drive is inserted or removed
  18. Given I have started Tails from DVD without network and logged in
  19. And I temporarily create a 4 GiB disk named "temp"
  20. And I start Tails Installer in "Clone & Install" mode
  21. But a suitable USB device is not found
  22. When I plug USB drive "temp"
  23. Then the "temp" USB drive is selected
  24. When I unplug USB drive "temp"
  25. Then no USB drive is selected
  26. And a suitable USB device is not found
  27. Scenario: Installing Tails to a pristine USB drive
  28. Given I have started Tails from DVD without network and logged in
  29. And I temporarily create a 4 GiB disk named "install"
  30. And I plug USB drive "install"
  31. And I "Clone & Install" Tails to USB drive "install"
  32. Then the running Tails is installed on USB drive "install"
  33. But there is no persistence partition on USB drive "install"
  34. Scenario: Booting Tails from a USB drive without a persistent partition and creating one
  35. Given I have started Tails without network from a USB drive without a persistent partition and stopped at Tails Greeter's login screen
  36. And I log in to a new session
  37. When I create a persistent partition
  38. Then a Tails persistence partition exists on USB drive "__internal"
  39. Scenario: Booting Tails from a USB drive without a persistent partition
  40. Given I have started Tails without network from a USB drive without a persistent partition and stopped at Tails Greeter's login screen
  41. When I log in to a new session
  42. Then Tails is running from USB drive "__internal"
  43. And the persistent Tor Browser directory does not exist
  44. And there is no persistence partition on USB drive "__internal"
  45. #11583
  46. @fragile
  47. Scenario: Booting Tails from a USB drive in UEFI mode
  48. Given I have started Tails without network from a USB drive without a persistent partition and stopped at Tails Greeter's login screen
  49. Then I power off the computer
  50. Given the computer is set to boot in UEFI mode
  51. When I start Tails from USB drive "__internal" with network unplugged and I login
  52. Then the boot device has safe access rights
  53. And Tails is running from USB drive "__internal"
  54. And the boot device has safe access rights
  55. And Tails has started in UEFI mode
  56. Scenario: Installing Tails to a USB drive with an MBR partition table but no partitions, and making sure that it boots
  57. Given I have started Tails from DVD without network and logged in
  58. And I temporarily create a 4 GiB disk named "mbr"
  59. And I create a msdos label on disk "mbr"
  60. And I plug USB drive "mbr"
  61. And I "Clone & Install" Tails to USB drive "mbr"
  62. Then the running Tails is installed on USB drive "mbr"
  63. But there is no persistence partition on USB drive "mbr"
  64. When I shutdown Tails and wait for the computer to power off
  65. And I start Tails from USB drive "mbr" with network unplugged and I login
  66. Then Tails is running from USB drive "mbr"
  67. And the boot device has safe access rights
  68. And there is no persistence partition on USB drive "mbr"
  69. 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
  70. Given a computer
  71. And I temporarily create a 4 GiB disk named "isohybrid"
  72. And I cat an ISO of the Tails image to disk "isohybrid"
  73. And I start Tails from USB drive "isohybrid" with network unplugged and I login
  74. Then Tails is running from USB drive "isohybrid"
  75. When I shutdown Tails and wait for the computer to power off
  76. And I start Tails from DVD with network unplugged and I login
  77. And I try a "Clone & Upgrade" Tails to USB drive "isohybrid"
  78. Then I am suggested to do a "Clone & Install"
  79. When I kill the process "tails-installer"
  80. And I "Clone & Install" Tails to USB drive "isohybrid"
  81. Then the running Tails is installed on USB drive "isohybrid"
  82. But there is no persistence partition on USB drive "isohybrid"
  83. When I shutdown Tails and wait for the computer to power off
  84. And I start Tails from USB drive "isohybrid" with network unplugged and I login
  85. Then Tails is running from USB drive "isohybrid"
  86. And the boot device has safe access rights
  87. And there is no persistence partition on USB drive "isohybrid"