From nobody Sun Nov 9 22:27:06 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 155198143287970.88729441632051; Thu, 7 Mar 2019 09:57:12 -0800 (PST) Received: from localhost ([127.0.0.1]:56461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1xGW-00084T-OW for importer@patchew.org; Thu, 07 Mar 2019 12:57:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1wqe-00031W-Ss for qemu-devel@nongnu.org; Thu, 07 Mar 2019 12:30:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1wqe-0007zs-3i for qemu-devel@nongnu.org; Thu, 07 Mar 2019 12:30:24 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]:56277) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1wqd-0007zI-Ro for qemu-devel@nongnu.org; Thu, 07 Mar 2019 12:30:24 -0500 Received: by mail-wm1-x336.google.com with SMTP id q187so10149493wme.5 for ; Thu, 07 Mar 2019 09:30:23 -0800 (PST) Received: from 640k.localdomain ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id d206sm9979753wmc.11.2019.03.07.09.30.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Mar 2019 09:30:22 -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=v3lESk55hw8XuGlGShzjOIOowBPK8525xla4V8empQY=; b=I9iv0h0n0vD4+Vzj32e94oNGXpinfcUsd2Xq7ZF5CDDfGbJziALj17BfboQbmJqENx 5ol+0c1R3QtQBFx/7W8Dwyj4Du7ZXq1Nl1n7sq73mZZXZ/W7eOKDCmSXXAb+JXOBm6x5 lo+gHRxXqVWOoagker3p+yWMxyegMmC8siJ9tmUiT7HoeWMrhZSN4z43copcYMx8Sc1f Pk/W1wCavRWb3fmjMitA0JVgeZQLbvwklEFqWkbobsGey0E5kysfGx1TtKQFqoFxzDmW 1OlnoENVI9b12UPZStxvpct+/w6P56SCtqLpkS3SOC+u/86Kyk9Yw7q4i5oD/Szt2DXO ITOw== 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=v3lESk55hw8XuGlGShzjOIOowBPK8525xla4V8empQY=; b=gYlhj/HeZgJfQSc30swAvAbZYPpMH3mMV6DYjbhueLq/VT/1Soq+DIjyAwTp+MZXZu KV+ygtQ0L616070pDfAQ58TT9eKSwwDnbvGn51D8ZEdc2ScAnvem4IypbcZU1+HdxlVt z0m+Fjc5lfa1ZJcMMhWmSreu8ifmT+eB+IMHnV69GJV+VTE0+qp4WKYpVjX6zAoDBULL kGij3HuE8ElacRhda24PZoBfVb860QEEXE3/k6bcIxyb2BJ4DFh+Yuz8DTKFpr3UIHZX ajsMxc37ujT2H9XEcjJG/jXcZ6yRuoyUr8I9CUuiyue12vJc+QiqYTfpaPqezjIXgWRm wHZg== X-Gm-Message-State: APjAAAW3SMQsmFjBtdhl+5bwJaGlUw9nfW9RUdCOjcQke8HXc+TtubRk Zf89YQ6ymrkHoqNFc9ikafcFqP1G X-Google-Smtp-Source: APXvYqz673fgcT6HAmeP8TnjqeTz4BsngS6LH1BKFXDdyua8x0qeptQsxmX41zyWoBKl0qGl5zfUjA== X-Received: by 2002:a1c:2947:: with SMTP id p68mr6473377wmp.104.1551979822517; Thu, 07 Mar 2019 09:30:22 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Thu, 7 Mar 2019 18:29:22 +0100 Message-Id: <1551979804-6060-16-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::336 Subject: [Qemu-devel] [PULL 15/57] tests/qgraph: add generic PCI 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/pci-test.c | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 tests/pci-test.c diff --git a/tests/Makefile.include b/tests/Makefile.include index 4b545ac..4391b7f 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -760,6 +760,7 @@ qos-test-obj-y +=3D tests/libqos/arm-xilinx-zynq-a9-mac= hine.o qos-test-obj-y +=3D tests/libqos/x86_64_pc-machine.o =20 # Tests +qos-test-obj-y +=3D tests/pci-test.o qos-test-obj-y +=3D tests/sdhci-test.o =20 check-unit-y +=3D tests/test-qgraph$(EXESUF) diff --git a/tests/pci-test.c b/tests/pci-test.c new file mode 100644 index 0000000..ff80985 --- /dev/null +++ b/tests/pci-test.c @@ -0,0 +1,25 @@ +/* + * QTest testcase for PCI + * + * 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_pci_test(void) +{ + qos_add_test("nop", "pci-device", nop, NULL); +} + +libqos_init(register_pci_test); --=20 1.8.3.1