1 @product @check_tor_leaks
4 I want Tor to work properly
5 And for that I need a reasonably accurate system clock
7 Scenario: Clock with host's time
8 Given I have started Tails from DVD without network and logged in
9 When the network is plugged
11 Then Tails clock is less than 5 minutes incorrect
15 Scenario: Clock with host's time in bridge mode
16 Given I have started Tails from DVD without network and logged in with bridge mode enabled
17 When the network is plugged
18 And the Tor Launcher autostarts
19 And I configure some bridge pluggable transports in Tor Launcher
21 Then Tails clock is less than 5 minutes incorrect
25 Scenario: Clock is one day in the future in bridge mode
26 Given I have started Tails from DVD without network and logged in with bridge mode enabled
27 When I bump the system time with "+1 day"
28 And the network is plugged
29 And the Tor Launcher autostarts
30 And I configure some bridge pluggable transports in Tor Launcher
32 Then Tails clock is less than 5 minutes incorrect
34 Scenario: The system time is not synced to the hardware clock
35 Given I have started Tails from DVD without network and logged in
36 When I bump the system time with "-15 days"
37 And I warm reboot the computer
38 And the computer reboots Tails
39 Then Tails' hardware clock is close to the host system's time
41 Scenario: Anti-test: Changes to the hardware clock are kept when rebooting
42 Given I have started Tails from DVD without network and logged in
43 When I bump the hardware clock's time with "-15 days"
44 And I warm reboot the computer
45 And the computer reboots Tails
46 Then the hardware clock is still off by "-15 days"
48 Scenario: The clock is set to the source date when the hardware clock is way in the past
50 And the network is unplugged
51 And the hardware clock is set to "01 Jan 2000 12:34:56"
52 And I start the computer
53 And the computer boots Tails
54 Then the system clock is just past Tails' source date