From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id SKEJEl+xWmRyjwAASxT56A (envelope-from ) for ; Tue, 09 May 2023 22:47:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CO73EV+xWmSvtgAA9RJhRA (envelope-from ) for ; Tue, 09 May 2023 22:47:27 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EBDAC2A919 for ; Tue, 9 May 2023 22:47:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pwUEk-0002DF-Mv; Tue, 09 May 2023 16:47:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwUEh-0002Ct-BW for guix-patches@gnu.org; Tue, 09 May 2023 16:47:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pwUEh-0007v6-1S for guix-patches@gnu.org; Tue, 09 May 2023 16:47:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pwUEg-0007Gn-T7 for guix-patches@gnu.org; Tue, 09 May 2023 16:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63400] [PATCH 1/1] gnu: vulkan-loader: Skip x86-specific tests on non-x86 platforms. Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 09 May 2023 20:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63400 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63400@debbugs.gnu.org Received: via spool by 63400-submit@debbugs.gnu.org id=B63400.168366516727857 (code B ref 63400); Tue, 09 May 2023 20:47:02 +0000 Received: (at 63400) by debbugs.gnu.org; 9 May 2023 20:46:07 +0000 Received: from localhost ([127.0.0.1]:44596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwUDm-0007FF-Oo for submit@debbugs.gnu.org; Tue, 09 May 2023 16:46:07 -0400 Received: from mailout.easymail.ca ([64.68.200.34]:55234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwUDk-0007ET-Fy for 63400@debbugs.gnu.org; Tue, 09 May 2023 16:46:05 -0400 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 357BA6A068 for <63400@debbugs.gnu.org>; Tue, 9 May 2023 20:45:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo07-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo07-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6J4OGP99uw6i for <63400@debbugs.gnu.org>; Tue, 9 May 2023 20:45:58 +0000 (UTC) Received: from localhost.localdomain (23-233-96-72.cpe.pppoe.ca [23.233.96.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id C370B69FF8 for <63400@debbugs.gnu.org>; Tue, 9 May 2023 20:45:58 +0000 (UTC) From: Simon South Date: Tue, 9 May 2023 16:45:27 -0400 Message-Id: <1f4f4283b03ab0020443a9e23c01dd840819e1f0.1683661648.git.simon@simonsouth.net> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683665247; a=rsa-sha256; cv=none; b=VqamnyUu7mGm09uLnNVDuBBKBR4GRkpVM1dRT1RUL50jgYyCmI4pV1iSFGi7dY4AxqD2Tu BUrdKC4bTLdH+akA/sya95t4zDI6lJ0j1HV6buuUA93ILpwYM3eTJ4/N+9e9O9RWWMut1+ M2YWB4jg1GTsmo3tNOsiuS6hSqhMYzII+HfcROlEEYzSI1qA8btAEWZ2M14TO3DT8in5lv hMQzUzdUPjola3yVFPzRw3DFp3n06yWasFnzvTDsS2y9rQOPQVR60DBLkrtV5woauGk319 mfrTX398OTphx3fgF8rFcGkDZWASNZPrMVX/lmKu1jJ6nHjoBfCc+D+coHGm3A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683665247; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=yAN4cvgWDIeVj5kMEpAZia+MknDmhZNB3MhYQB2k9Ls=; b=RjonTTNm3J9cLovyY14ko+5swq5b8hFji3q2qumf/pTVwLslLFyZSY/GtsD0ytyqw4qP2C wnm2Necd2u02axKKrLN0nRrFknlvJT/vyLQ+wf1VDALmXle9/Kj1ReLT1P/auVzDjP9LIp O5TeAvBtiNNyM70vh9bp67wTj/yyvF8V8scO2SkQheQA0ES6Qkzbmz8irX1gZZmbGqqdx+ XaG/ojCLXcIY2k/S4KHSpz0tqZq8ZMXE61Cb3h+sHHCXPHaO+dmUF0LdAtjbFFR/rdSJR6 1mUWMVd89ux5T124vBcWDtseQjASUyq2+OcguttOJvws52yl2eEDdB+nJ7KwRg== X-Migadu-Spam-Score: 0.89 X-Spam-Score: 0.89 X-Migadu-Queue-Id: EBDAC2A919 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: ihmG0Co9t65u * gnu/packages/patches/vulkan-loader-skip-incompatible-tests.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/vulkan.scm (vulkan-loader)[source]: Apply it. --- gnu/local.mk | 1 + ...ulkan-loader-skip-incompatible-tests.patch | 62 +++++++++++++++++++ gnu/packages/vulkan.scm | 2 + 3 files changed, 65 insertions(+) create mode 100644 gnu/packages/patches/vulkan-loader-skip-incompatible-tests.patch diff --git a/gnu/local.mk b/gnu/local.mk index 77abf61d3c..b431e4f8ce 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -2031,6 +2031,7 @@ dist_patch_DATA = \ %D%/packages/patches/vtk-7-gcc-10-compat.patch \ %D%/packages/patches/vtk-7-hdf5-compat.patch \ %D%/packages/patches/vtk-7-python-compat.patch \ + %D%/packages/patches/vulkan-loader-skip-incompatible-tests.patch \ %D%/packages/patches/wacomtablet-add-missing-includes.patch \ %D%/packages/patches/wacomtablet-qt5.15.patch \ %D%/packages/patches/warsow-qfusion-fix-bool-return-type.patch \ diff --git a/gnu/packages/patches/vulkan-loader-skip-incompatible-tests.patch b/gnu/packages/patches/vulkan-loader-skip-incompatible-tests.patch new file mode 100644 index 0000000000..92e3d03bb6 --- /dev/null +++ b/gnu/packages/patches/vulkan-loader-skip-incompatible-tests.patch @@ -0,0 +1,62 @@ +Certain tests that use the pre-built libraries provided in +tests/framework/data/binaries presume they are running on a 32- or +64-bit x86 host, as these are the only architectures for which the +libraries are provided. + +Skip these tests on non-x86 platforms where the tests are certain to +fail. + +diff --git a/tests/loader_regression_tests.cpp b/tests/loader_regression_tests.cpp +index 7390596bd..1b0780c65 100644 +--- a/tests/loader_regression_tests.cpp ++++ b/tests/loader_regression_tests.cpp +@@ -1014,6 +1014,9 @@ TEST(CreateDevice, ConsecutiveCreateWithoutDestruction) { + } + + TEST(TryLoadWrongBinaries, WrongICD) { ++#if !defined(__x86_64__) && !defined(__i386__) ++ GTEST_SKIP() << "Skip this test as it is not compatible with this architecture."; ++#endif + FrameworkEnvironment env{}; + env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)); + env.add_icd(TestICDDetails(CURRENT_PLATFORM_DUMMY_BINARY_WRONG_TYPE).set_is_fake(true)); +@@ -1041,6 +1044,9 @@ TEST(TryLoadWrongBinaries, WrongICD) { + } + + TEST(TryLoadWrongBinaries, WrongExplicit) { ++#if !defined(__x86_64__) && !defined(__i386__) ++ GTEST_SKIP() << "Skip this test as it is not compatible with this architecture."; ++#endif + FrameworkEnvironment env{}; + env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)); + env.get_test_icd().physical_devices.emplace_back("physical_device_0"); +@@ -1077,6 +1083,9 @@ TEST(TryLoadWrongBinaries, WrongExplicit) { + } + + TEST(TryLoadWrongBinaries, WrongImplicit) { ++#if !defined(__x86_64__) && !defined(__i386__) ++ GTEST_SKIP() << "Skip this test as it is not compatible with this architecture."; ++#endif + FrameworkEnvironment env{}; + env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)); + env.get_test_icd().physical_devices.emplace_back("physical_device_0"); +@@ -1114,6 +1123,9 @@ TEST(TryLoadWrongBinaries, WrongImplicit) { + } + + TEST(TryLoadWrongBinaries, WrongExplicitAndImplicit) { ++#if !defined(__x86_64__) && !defined(__i386__) ++ GTEST_SKIP() << "Skip this test as it is not compatible with this architecture."; ++#endif + FrameworkEnvironment env{}; + env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)); + env.get_test_icd().physical_devices.emplace_back("physical_device_0"); +@@ -1159,6 +1171,9 @@ TEST(TryLoadWrongBinaries, WrongExplicitAndImplicit) { + } + + TEST(TryLoadWrongBinaries, WrongExplicitAndImplicitErrorOnly) { ++#if !defined(__x86_64__) && !defined(__i386__) ++ GTEST_SKIP() << "Skip this test as it is not compatible with this architecture."; ++#endif + FrameworkEnvironment env{}; + env.add_icd(TestICDDetails(TEST_ICD_PATH_VERSION_2)); + env.get_test_icd().physical_devices.emplace_back("physical_device_0"); diff --git a/gnu/packages/vulkan.scm b/gnu/packages/vulkan.scm index b0d968938b..e9f287564c 100644 --- a/gnu/packages/vulkan.scm +++ b/gnu/packages/vulkan.scm @@ -222,6 +222,8 @@ (define-public vulkan-loader (url "https://github.com/KhronosGroup/Vulkan-Loader") (commit "v1.3.232"))) (file-name (git-file-name name version)) + (patches + (search-patches "vulkan-loader-skip-incompatible-tests.patch")) (sha256 (base32 "0w69sh669sx9pwlvv2rv92ds2hm2rbzsa6qqcmd8kcad0qfq7dz2")))) -- 2.39.2