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: 9760877 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A85E5602BC for ; Thu, 1 Jun 2017 18:54:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8374C284F1 for ; Thu, 1 Jun 2017 18:54:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7642428506; Thu, 1 Jun 2017 18:54:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11FA3284F1 for ; Thu, 1 Jun 2017 18:54:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751083AbdFASyp (ORCPT ); Thu, 1 Jun 2017 14:54:45 -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-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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"