diff mbox

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

Message ID 20170601185428.7538-1-lvivier@redhat.com
State Accepted
Headers show

Commit Message

Laurent Vivier June 1, 2017, 6:54 p.m. UTC
Add a test using get-time-of-day to check "-rtc base=XXXX-XX-XX"
is correct.

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

Comments

Thomas Huth June 2, 2017, 3:39 p.m. UTC | #1
On 01.06.2017 20:54, Laurent Vivier wrote:
> Add a test using get-time-of-day to check "-rtc base=XXXX-XX-XX"
> is correct.
> 
> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
> ---
>  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"
> 

Reviewed-by: Thomas Huth <thuth@redhat.com>
--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Radim Krčmář June 7, 2017, 2:32 p.m. UTC | #2
2017-06-01 20:54+0200, Laurent Vivier:
> Add a test using get-time-of-day to check "-rtc base=XXXX-XX-XX"
> is correct.
> 
> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
> ---

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

Patch

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"