Ticket #11377: clock_changes_test.sh
File clock_changes_test.sh, 345 bytes (added by , 7 years ago) |
---|
Line | |
---|---|
1 | #!/bin/bash |
2 | |
3 | sudo echo "Setup sudo authentication" |
4 | |
5 | test_type=${1:-until} |
6 | wait_timeout=${2:-5} |
7 | |
8 | echo "Starting test to wait for $wait_timeout seconds" |
9 | ./clock_changes --type $test_type --time $wait_timeout & |
10 | echo "Adjusting time to 01:00:00" |
11 | sudo date -s 01:00:00 |
12 | echo "Waiting..." |
13 | wait |
14 | echo "Test complete, please check your system clock" |
15 | date |