From patchwork Mon Nov 28 09:37:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abdiel Janulgue X-Patchwork-Id: 9449219 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 83CB76071E for ; Mon, 28 Nov 2016 09:37:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A11024B5B for ; Mon, 28 Nov 2016 09:37:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6EA6825D9E; Mon, 28 Nov 2016 09:37:18 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 27E0E24B5B for ; Mon, 28 Nov 2016 09:37:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 478236E1D2; Mon, 28 Nov 2016 09:37:17 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8E47F6E1D2 for ; Mon, 28 Nov 2016 09:37:15 +0000 (UTC) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP; 28 Nov 2016 01:37:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,563,1473145200"; d="scan'208";a="36337141" Received: from skylake-nuc.fi.intel.com ([10.237.68.38]) by fmsmga005.fm.intel.com with ESMTP; 28 Nov 2016 01:37:14 -0800 From: Abdiel Janulgue To: intel-gfx@lists.freedesktop.org Date: Mon, 28 Nov 2016 11:37:21 +0200 Message-Id: <1480325841-19022-1-git-send-email-abdiel.janulgue@linux.intel.com> X-Mailer: git-send-email 2.7.4 Subject: [Intel-gfx] [i-g-t PATCH] lib: add option for running generic tests cases only X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Pretend to run on a non-intel machine even when running on i915.ko, so that we could run and gather passrate data. Signed-off-by: Abdiel Janulgue --- lib/drmtest.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/drmtest.c b/lib/drmtest.c index 44abc7e..a8b75e8 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -254,8 +254,11 @@ int __drm_open_driver(int chipset) continue; if (chipset & DRIVER_INTEL && is_i915_device(fd) && - has_known_intel_chipset(fd)) + has_known_intel_chipset(fd)) { + igt_skip_on_f(getenv("IGT_GENERIC_ONLY"), + "Generic tests only\n"); return fd; + } if (chipset & DRIVER_VC4 && is_vc4_device(fd)) @@ -415,5 +418,6 @@ int drm_open_driver_render(int chipset) void igt_require_intel(int fd) { + igt_skip_on_f(getenv("IGT_GENERIC_ONLY"), "Generic tests only\n"); igt_require(is_i915_device(fd) && has_known_intel_chipset(fd)); }