[kvm-unit-tests PATCH] ppc64: test rtc parameter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Laurent Vivier <lvivier@xxxxxxxxxx>
---
 powerpc/unittests.cfg | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/powerpc/unittests.cfg b/powerpc/unittests.cfg
index fb6b70e..4eda258 100644
--- a/powerpc/unittests.cfg
+++ b/powerpc/unittests.cfg
@@ -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"
-- 
2.9.4

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux