blob: 29a68ea72d274fad22dbf258ece831be28e0a775 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
metadata:
name: TC19
format: "Manual Test Definition 1.0"
description: "TC19: Real Time Clock"
maintainer:
- ryan.harkin@linaro.org
os:
- openembedded
scope:
- functional
devices:
- lces2
- soca9
environment:
- manual-test
run:
steps:
- '# soca9: skip'
- '# lces2: ok'
- ' '
- '# example of setting hwclock'
- '# hwclock --set --date="2015-12-31 23:59:55" --localtime'
- ' '
- '# Run this command sequence, the watch the time tick over from from 2015 to 2016'
- ' '
- 'hwclock --set --date="2015-12-31 23:59:55" --localtime ; while [ true ]; do hwclock; sleep 10; done'
- 'reboot'
- '# check date and time after reboot'
- 'hwclock'
- 'date'
- ' '
- '# Set the hwclock back to match the system time'
- 'hwclock -w'
expected:
- 'clock is set to the specified values and overflows correctly'
|