From patchwork Thu Jun 1 18:54:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 769900 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3wdxNP6B0Qz9sN8 for ; Fri, 2 Jun 2017 04:54:45 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751157AbdFASyo (ORCPT ); Thu, 1 Jun 2017 14:54:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45114 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751091AbdFASyo (ORCPT ); Thu, 1 Jun 2017 14:54:44 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 77CC34E4CD; Thu, 1 Jun 2017 18:54:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 77CC34E4CD Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=lvivier@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 77CC34E4CD Received: from thinkpad.redhat.com (ovpn-117-7.ams2.redhat.com [10.36.117.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 266E77E4E9; Thu, 1 Jun 2017 18:54:29 +0000 (UTC) From: Laurent Vivier To: kvm@vger.kernel.org Cc: Paolo Bonzini , Thomas Huth , Andrew Jones , kvm-ppc@vger.kernel.org, =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= , Laurent Vivier Subject: [kvm-unit-tests PATCH] ppc64: test rtc parameter Date: Thu, 1 Jun 2017 20:54:28 +0200 Message-Id: <20170601185428.7538-1-lvivier@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 01 Jun 2017 18:54:43 +0000 (UTC) Sender: kvm-ppc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm-ppc@vger.kernel.org Add a test using get-time-of-day to check "-rtc base=XXXX-XX-XX" is correct. Signed-off-by: Laurent Vivier Reviewed-by: Thomas Huth --- 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"