From patchwork Wed Apr 24 14:06:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Qiang X-Patchwork-Id: 1090158 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=163.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=163.com header.i=@163.com header.b="GwZv4O5y"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44q2XQ4FSHz9s5c for ; Thu, 25 Apr 2019 00:20:22 +1000 (AEST) Received: from localhost ([127.0.0.1]:42417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJIl2-0006P5-Ej for incoming@patchwork.ozlabs.org; Wed, 24 Apr 2019 10:20:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJIfe-0002XI-84 for qemu-devel@nongnu.org; Wed, 24 Apr 2019 10:14:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJIY4-0006iM-5m for qemu-devel@nongnu.org; Wed, 24 Apr 2019 10:06:57 -0400 Received: from m12-14.163.com ([220.181.12.14]:53821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJIY2-0006eH-BK for qemu-devel@nongnu.org; Wed, 24 Apr 2019 10:06:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=2TTlu/WUmtNBcWno47 ofLFqkm5RSgRV/gD7rqr6U8rw=; b=GwZv4O5yknvbcjuGXvKNRrR7lGVKtX8ZMq Fv7TTmfmFyoUZQaQqlMQUSxAsK/lfCnJJ7Q+Iuee7nsuQmFTczM0Y4073UgYN+Ss dtEoFbS5VQzYRGbk5hnKT+8oRWNjtzrO0stuSe8ycr+q25D5ylf96lKseZPn4K7F FsXrRtjpU= Received: from localhost.localdomain (unknown [115.200.201.0]) by smtp10 (Coremail) with SMTP id DsCowAC3Ayl0bcBcrks9CA--.5531S2; Wed, 24 Apr 2019 22:06:45 +0800 (CST) From: Li Qiang To: philmd@redhat.com, lersek@redhat.com, kraxel@redhat.com, thuth@redhat.com, lvivier@redhat.com, pbonzini@redhat.com Date: Wed, 24 Apr 2019 07:06:38 -0700 Message-Id: <20190424140643.62457-1-liq3ea@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: DsCowAC3Ayl0bcBcrks9CA--.5531S2 X-Coremail-Antispam: 1Uf129KBjvdXoWruw13Wr43GFy7tw43Kw4rXwb_yoWDCrb_WF 97A3s8Gw4DZFyDJFW7Jw45tFyjqFW8Cr1rJFn0gFsakrW7Ar1DJFsFgrykuryUGF45Cr9x CwsrWry8Awn8ZjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8489tUUUUU== X-Originating-IP: [115.200.201.0] X-CM-SenderInfo: 5oltjvrd6rljoofrz/xtbBoQCgbVQHEpk9xwAAsO X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 220.181.12.14 Subject: [Qemu-devel] [PATCH v2 0/5] fw_cfg_test refactor and add two test cases X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Li Qiang , liq3ea@gmail.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" In the disscuss of adding reboot timeout test case: https://lists.gnu.org/archive/html/qemu-devel/2019-04/msg03304.html Philippe suggested we should uses the only related option for one specific test. However currently we uses one QTestState for all the test cases. In order to achieve Philippe's idea, I split the test case for its own QTestState. As this patchset has changed a lot, I don't bump the version. Change since v1: Add a patch to store the reboot_timeout as little endian Fix the endian issue per Thomas's review Li Qiang (5): tests: refactor fw_cfg_test tests: fw_cfg: add a function to get the fw_cfg file fw_cfg: reboot: store reboot-timeout as little endian tests: fw_cfg: add reboot_timeout test case tests: fw_cfg: add splash time test case hw/nvram/fw_cfg.c | 4 +- tests/fw_cfg-test.c | 125 +++++++++++++++++++++++++++++++++++++++--- tests/libqos/fw_cfg.c | 55 +++++++++++++++++++ tests/libqos/fw_cfg.h | 9 +++ 4 files changed, 184 insertions(+), 9 deletions(-) Tested-by: Thomas Huth