Skip to contentSkip to conversation

ppc64: test rtc parameter

PATCH Applied Laurent Vivier 3 participants 3 messages Jun 1, 2017 – Jun 7, 2017 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc64: test rtc parameter

Add a test using get-time-of-day to check "-rtc base=XXXX-XX-XX" is correct.

---
 powerpc/unittests.cfg | 6 ++++++
 1 file changed, 6 insertions(+)
powerpc/unittests.cfg +6 -0
index fb6b70e..4eda258 100644
@@ -45,6 +45,12 @@ timeout = 5
 extra_params = -append "get-time-of-day date=$(date +%s)"
 groups = rtas
 
+[rtas-get-time-of-day-base]
+file = rtas.elf
+timeout = 5
+extra_params = -rtc base="2006-06-17" -append "get-time-of-day date=$(date --date="2006-06-17 UTC" +%s)"
+groups = rtas
+
 [rtas-set-time-of-day]
 file = rtas.elf
 extra_params = -append "set-time-of-day"
Signature · 1 line
2.9.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Laurent Vivier

Add a test using get-time-of-day to check "-rtc base=XXXX-XX-XX" is correct.

---
 powerpc/unittests.cfg | 6 ++++++
 1 file changed, 6 insertions(+)
powerpc/unittests.cfg +0 -0
index fb6b70e..4eda258 100644
@@ -45,6 +45,12 @@ timeout = 5
 extra_params = -append "get-time-of-day date=$(date +%s)"
 groups = rtas

powerpc/unittests.cfg timeout = 5 · line 56

Quoted 10 lines
powerpc/unittests.cfg +6 -0
 
+[rtas-get-time-of-day-base]
+file = rtas.elf
+timeout = 5
+extra_params = -rtc base="2006-06-17" -append "get-time-of-day date=$(date --date="2006-06-17 UTC" +%s)"
+groups = rtas
+
 [rtas-set-time-of-day]
 file = rtas.elf
 extra_params = -append "set-time-of-day"