From nobody Sun Nov 9 22:39:42 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1551981170117705.5871362851414; Thu, 7 Mar 2019 09:52:50 -0800 (PST) Received: from localhost ([127.0.0.1]:56388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1xCJ-0004AV-3t for importer@patchew.org; Thu, 07 Mar 2019 12:52:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1wqt-0003KA-SK for qemu-devel@nongnu.org; Thu, 07 Mar 2019 12:30:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1wqr-0008BZ-Pt for qemu-devel@nongnu.org; Thu, 07 Mar 2019 12:30:39 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:39003) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1wqp-000883-Nj for qemu-devel@nongnu.org; Thu, 07 Mar 2019 12:30:35 -0500 Received: by mail-wm1-x32c.google.com with SMTP id z84so10075074wmg.4 for ; Thu, 07 Mar 2019 09:30:34 -0800 (PST) Received: from 640k.localdomain ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id d206sm9979753wmc.11.2019.03.07.09.30.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Mar 2019 09:30:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=HLAJODswjyjKfIz+7coNEAk6hp68u70/AMOlZAUhVNY=; b=j8zZPZHwELFPm8HY6vjPWNDaQNKVJhOBrLNCDmH5XUcQbXdcc73VrjJeJoj81xaGTf TgycBsof48+a6k3/5rmZJt+K3qBLGCk8qP6Hfq9p5UQDObRxhs1lhhUYwkQCVd7KCEBR vDBBz6f3HscfTgoPNKWpSTCksbMbojkUaSHHGIcxZFRxw8M4SeVzJzMdJGTG2qaq74G7 9Zp/dMoToaI8iSU0HEjxLK+L+KpAjLV0TIdh6eJUQj1sShEaoVaD4G9oWs3di0tLav14 WC3+faUwJbbDzKtPemTYe4Wtlt5e7OwgEJZjPSJ+WpTrBUEpdX05u/myfZpXXQXdzIbL ilnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=HLAJODswjyjKfIz+7coNEAk6hp68u70/AMOlZAUhVNY=; b=sOLz5mBnexTA7kwPJvXsYsegF4Ykzaf94AMCzp5xgR5M/cvZ9walHlc/QNH9zRVNVy BO/BJ6nxiYoBKeeRkAt9xsSMBUoTxDkkTeMYKDu9jFd0UK8Obb0a1GOgR//dfdOq/SNR X1kcZVzvDl1DqYkitSurd7i557CF4iAhsZYGJjwgpDPUk5oLPuhh+A+6bPo6xFUgsbSa 2W6MVOVRzYXXDpcJceSuV3DauHXyLJQe1+vo7QR0N5/e3TUSsffxI4yVr9ORR2XIpA0n bk4GPCqmo9iDRaMxe8CYXJjRzVc5X/XtOhbWMq6IStawlh8W7WqA0ynb250a9ydUQRbp AvrA== X-Gm-Message-State: APjAAAUejPH5KXAMMy7WQjkkvmDM00wm9LBRcUzUfltDKtsQW+I3/cj6 8aW6MG5Pf5gj5UbrRhwaMOyiTDTC X-Google-Smtp-Source: APXvYqzR5WSlMKOIJNleFM+ts4TG+GzOd9Rpu25AXlA3AnFcFflizoZO499WKb7m7wkts+bvDZ6VZA== X-Received: by 2002:a1c:2543:: with SMTP id l64mr6677530wml.116.1551979833577; Thu, 07 Mar 2019 09:30:33 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Thu, 7 Mar 2019 18:29:32 +0100 Message-Id: <1551979804-6060-26-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1551979804-6060-1-git-send-email-pbonzini@redhat.com> References: <1551979804-6060-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::32c Subject: [Qemu-devel] [PULL 25/57] tests/qgraph: add generic virtio testcases 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: thuth@redhat.com, lviver@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- tests/Makefile.include | 1 + tests/virtio-test.c | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 tests/virtio-test.c diff --git a/tests/Makefile.include b/tests/Makefile.include index 4a9e2e4..ec929cc 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -766,6 +766,7 @@ qos-test-obj-y +=3D tests/libqos/x86_64_pc-machine.o qos-test-obj-y +=3D tests/e1000e-test.o qos-test-obj-y +=3D tests/pci-test.o qos-test-obj-y +=3D tests/sdhci-test.o +qos-test-obj-y +=3D tests/virtio-test.o =20 check-unit-y +=3D tests/test-qgraph$(EXESUF) tests/test-qgraph$(EXESUF): tests/test-qgraph.o $(libqgraph-obj-y) diff --git a/tests/virtio-test.c b/tests/virtio-test.c new file mode 100644 index 0000000..804e537 --- /dev/null +++ b/tests/virtio-test.c @@ -0,0 +1,25 @@ +/* + * QTest testcase for virtio + * + * Copyright (c) 2018 Red Hat, Inc. + * + * This work is licensed under the terms of the GNU GPL, version 2 or late= r. + * See the COPYING file in the top-level directory. + */ + +#include "qemu/osdep.h" +#include "libqtest.h" +#include "libqos/qgraph.h" +#include "libqos/pci.h" + +/* Tests only initialization so far. TODO: Replace with functional tests */ +static void nop(void *obj, void *data, QGuestAllocator *alloc) +{ +} + +static void register_virtio_test(void) +{ + qos_add_test("nop", "virtio", nop, NULL); +} + +libqos_init(register_virtio_test); --=20 1.8.3.1