From: Thomas Huth Date: Fri, 02 Jun 2017 15:39:15 +0000 Subject: Re: [kvm-unit-tests PATCH] ppc64: test rtc parameter Message-Id: <4ed330d9-66aa-7195-7691-5afa91342e23@redhat.com> List-Id: References: <20170601185428.7538-1-lvivier@redhat.com> In-Reply-To: <20170601185428.7538-1-lvivier@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Laurent Vivier , kvm@vger.kernel.org Cc: Paolo Bonzini , Andrew Jones , kvm-ppc@vger.kernel.org, =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= 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 > --- > 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