From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id MAgJBfG5pGa2UQEAe85BDQ:P1 (envelope-from ) for ; Sat, 27 Jul 2024 09:12:17 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id MAgJBfG5pGa2UQEAe85BDQ (envelope-from ) for ; Sat, 27 Jul 2024 11:12:17 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Fgt46C9e; dkim=fail ("headers rsa verify failed") header.d=soeren-tempel.net header.s=opensmtpd header.b=tkY3j9Wr; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=soeren-tempel.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722071537; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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:dkim-signature; bh=Z4p4jsTc9sCpWAYyukfwOVFy/CFI1x9cQQPu2IaK6Tc=; b=BQUOJqLOBvruRHtm81DBZN35OAZDYV+90+jPL+I8UGTxtKZXmS/iC8/wRPunkWePr75BtN xpobiEXYCTOeein1vWqNUcCM4Xs4eNxpMxq+pxOT4VxvcSiBoZwgPxPmLn/wQSxf0qhkst vJOeGHBj6Iwh9MJEzQDquVVptbyf3n01gga+2xZH00WVxLC67nZNnm9to9NnQnG72Icg5M l3+QjWa2dxOE0oIc297jaq13KnuJ2WyPYdFmvq3yAJgLiKpU0CZOKi/D5qF5JLb5XJlgdl mq7qZM3Tw9tGXq8vGO1X+RlF+NnNSy7qMrEOHtkShBywLPGQm231kaUHxw2ZpA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Fgt46C9e; dkim=fail ("headers rsa verify failed") header.d=soeren-tempel.net header.s=opensmtpd header.b=tkY3j9Wr; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=soeren-tempel.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722071537; a=rsa-sha256; cv=none; b=DU1S4DqMAHnq+RBLUFzQpjelGOZ9qEEz7Awu0zrd90D66eR+/y07VlwpBdAiNg3XoFb6S6 AAgdWUw0OFzRzWUNnSJ6l5JEqQuL8B420OIOXStQyenrotjucIRv6duVan6c5jtjofbmWf 8fQp/Oc9k1A1ywQXPjTDfzMKWst7qTqfK2lwXQ4ZiZizVZE45dfML/JaV1dYKJZnditQ1O 1XFMqL9BGxEaRJAN31D0jD1qwXFf7INetrrrM4zBVK9RvwIA19Y5WUNg/Vp/RW4mXju9hv wMNZUOlekUhpxwiqzbCueBJxHflGqeuDGqwQLJW5r2saGjYic+axl/G/x5+pjQ== 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 A7D5D521F4 for ; Sat, 27 Jul 2024 11:12:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXdT0-0002Yh-Hc; Sat, 27 Jul 2024 05:11:54 -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 1sXdSz-0002Y9-5d for guix-patches@gnu.org; Sat, 27 Jul 2024 05:11:53 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sXdSy-000431-TT for guix-patches@gnu.org; Sat, 27 Jul 2024 05:11:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=Z4p4jsTc9sCpWAYyukfwOVFy/CFI1x9cQQPu2IaK6Tc=; b=Fgt46C9eqeqNqQkZ4V0QdYgHQKVOXgFgQJ7wBA4T2IuJ7h23V/tOklrSR/Wy+0xjrf7iW7pMhjpJUmk9vs3aanfZ0iqO029treLDKoGvQ48THRU7Tc6L/S5MBSMPLdXEyFphXDeYwgCKafs7rdLXu45mezGRtrXNNAMspdOLPQu4narKWdsx5ZBCuxyXepRkyrjbuYLTxDVPUx29QTGgGkISndDxF7BJSI9pXZyD2V82eVrrzUT/YPkSGhlBKoS65pi0mz9KNmSDqzZGaYkb5/mZgbU1lvUiJ/gO4hgULG3UUEEsN9OBkj43Egk2DIgfgW1AdjM/Q3x/0oWstu0O+w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXdT8-0002L5-KP for guix-patches@gnu.org; Sat, 27 Jul 2024 05:12:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72106] [PATCH v4 2/5] gnu: klee: Enable the test suite. Resent-From: soeren@soeren-tempel.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 27 Jul 2024 09:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72106 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72106@debbugs.gnu.org Cc: liliana.prikler@gmail.com Received: via spool by 72106-submit@debbugs.gnu.org id=B72106.17220715138765 (code B ref 72106); Sat, 27 Jul 2024 09:12:02 +0000 Received: (at 72106) by debbugs.gnu.org; 27 Jul 2024 09:11:53 +0000 Received: from localhost ([127.0.0.1]:40529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXdSz-0002Gl-3a for submit@debbugs.gnu.org; Sat, 27 Jul 2024 05:11:53 -0400 Received: from magnesium.8pit.net ([45.76.88.171]:37864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXdSu-0002Bq-Sx; Sat, 27 Jul 2024 05:11:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=opensmtpd; bh=Z4p4jsTc 9sCpWAYyukfwOVFy/CFI1x9cQQPu2IaK6Tc=; h=references:in-reply-to:date: subject:cc:to:from; d=soeren-tempel.net; b=tkY3j9WrViEc0KeG2L37xd/tyL3 Ma/TclHapXht3WQ0q2RpKsYY3lhLM4kmbJkEXLNZMcKM635vC1yzk45aiedEUViG0nT35q VnFtV+SFNHPVFrAmnFipsyZ0qNRzFibRmb0jPm3mBWfeId4pR+FWmcLiRWMARBLsZe5Exk U4Cg= Received: from localhost (dynamic-176-005-148-021.176.5.pool.telefonica.de [176.5.148.21]) by magnesium.8pit.net (OpenSMTPD) with ESMTPSA id c07b19d7 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:YES); Sat, 27 Jul 2024 11:11:33 +0200 (CEST) From: soeren@soeren-tempel.net Date: Sat, 27 Jul 2024 11:10:55 +0200 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 X-Migadu-Queue-Id: A7D5D521F4 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -9.36 X-Spam-Score: -9.36 X-TUID: M+DNGMLSz8tM From: Sören Tempel * gnu/packages/check.scm (klee): Enable all tests. [arguments]: Patch lit configuration and set #:test-target. <#:configure-flags?>: Enable system and unit tests, configure gtest. --- gnu/packages/check.scm | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 347bd2e1aa..aeaa2e807f 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -1063,13 +1063,22 @@ (define-public klee (base32 "1nma6dqi8chjb97llsa8mzyskgsg4dx56lm8j514j5wmr8vkafz6")))) (arguments (list + #:test-target "check" #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch (lambda _ + ;; Allow specification of an absolute full path to uclibc. (substitute* "CMakeLists.txt" (("\\$\\{KLEE_UCLIBC_PATH\\}/lib/libc\\.a") - "${KLEE_UCLIBC_PATH}")))) + "${KLEE_UCLIBC_PATH}")) + ;; Make sure that we retain the value of the GUIX_PYTHONPATH + ;; environment variable in the test environmented created by + ;; python-lit. Otherwise, the test scripts won't be able to + ;; find the python-tabulate dependency, causing test failures. + (substitute* "test/lit.cfg" + (("addEnv\\('PWD'\\)" env) + (string-append env "\n" "addEnv('GUIX_PYTHONPATH')"))))) (add-after 'install 'wrap-programs (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) @@ -1085,7 +1094,13 @@ (define-public klee `("KLEE_RUNTIME_LIBRARY_PATH" = (,(string-append lib "/klee/runtime/")))))))) #:configure-flags - #~(list (string-append "-DLLVMCC=" + #~(list "-DENABLE_UNIT_TESTS=ON" + "-DENABLE_SYSTEM_TESTS=ON" + (string-append "-DGTEST_SRC_DIR=" + #+(package-source googletest)) + (string-append "-DGTEST_INCLUDE_DIR=" + #+(package-source googletest) "/googletest/include") + (string-append "-DLLVMCC=" (search-input-file %build-inputs "/bin/clang")) (string-append "-DLLVMCXX=" (search-input-file %build-inputs "/bin/clang++"))