From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kJChH7cIW2fExwAA62LTzQ:P1 (envelope-from ) for ; Thu, 12 Dec 2024 16:00:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id kJChH7cIW2fExwAA62LTzQ (envelope-from ) for ; Thu, 12 Dec 2024 17:00:55 +0100 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=S1Ch4g3d; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=HKXqOvXp; 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=inria.fr (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734019255; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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:dkim-signature; bh=oM/xlbMW47mn6WUZHG59yh0cGM5by5LgtssvEC8NynQ=; b=rq/mU9y/F9RGIydf5ltXwTHZ5dY3A2RUoqrkxVKjgeMDKLAzJCzUeH/a94e1ywwwoSLDhy 8tYeeUog0Su7jaVNYQD1LHtxooNNOHbEqfljrShpjumeDTv4qTlaZpoWfS5GBfiJoPcGkj T7P5afGQXQ3+suIX8apE4WggKN0jdmiiZW1Xd3qRsRUOXLtJST67Fp6x6UoIa0rgfF1Ykn FB+VscQgkVdYI9czUYNiL340BLMW6K0BBNc3sRoM1CZVFVqkwX4fjJJIK+j44CySluL+D5 1Itol8ATSOE84wNQTgQ/gOYfUPthvuzD4CZYm7viwcdawnHWX/5fir2iPN+R8Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=S1Ch4g3d; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b=HKXqOvXp; 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=inria.fr (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734019255; a=rsa-sha256; cv=none; b=Jm0sebQ2WxC52dfF4z9ZEFYN54xa8VOqkp5Xp40FFa4o5rJPZYmsKVMHArd3vhPFd4oVOy K4Afde+iDUwb0UHKTE3zDasMCvdBrUNNQt78ZuT4BGv1YGm9nqDFDOAGzR5XA/Xp7hDzEA WhvMSA8tWVC2hknFkPKVA8j9LcF1rsbdYBZ9oVvAfGTTWyrei+4/nKVmaq+jxreOpMnSWs RGtrRCkTFPtliv/b97NfegujZEBz8Q6ADqsQHOdKbsywAtdgVerJLAACHMHX6E3xhZnS2t PvfNIx/6nom7yhZhHcz5quD1YF5ro7pMIeHGw6X9yPQ8wh/NvTfa/vc8zrrSkQ== 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 634D68C7CA for ; Thu, 12 Dec 2024 17:00:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLlbm-0001y2-HS; Thu, 12 Dec 2024 11:00:11 -0500 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 1tLlbi-0001vQ-CP for guix-patches@gnu.org; Thu, 12 Dec 2024 11:00:07 -0500 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 1tLlbi-0000pP-26 for guix-patches@gnu.org; Thu, 12 Dec 2024 11:00:06 -0500 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=oM/xlbMW47mn6WUZHG59yh0cGM5by5LgtssvEC8NynQ=; b=S1Ch4g3dzg1BSAMWk0aPbRivEfFOGODi3zTu6UDhgi7zt0Q46xY0q8mN02PtVcSJqEBGvGYnsvUSia1aNZf2VSNF+FB5XPKp7Imk8ywNbQ+icCa7OSjYPpjklR2/HtBYLLgOS3KY1WpQtXjXDy0pJKnjr+uzMH5L5xUQf1HjiipPyOenx1pl29PBQJ/bj/EsggFMUAlVLBYuAXtq9LjrrJMIGjOBkccnjRAgyfh7Tx6IoAlW0KXCx7IyRH5ssCGEM+wjH/hh8UUy5jY7k30vrvDd94xFiEiTgsTxWaIHxIpEl0nrTwRZfwmwe0Li41i1tsmNLrYApTYV9EgT5p0H1A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLlbh-0000zZ-08 for guix-patches@gnu.org; Thu, 12 Dec 2024 11:00:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74769] [PATCH Cuirass v2 2/7] tests: Rename specifications-equal? procedure. Resent-From: Romain GARBAGE Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 12 Dec 2024 16:00:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74769 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74769@debbugs.gnu.org Cc: ludovic.courtes@inria.fr, Romain GARBAGE Received: via spool by 74769-submit@debbugs.gnu.org id=B74769.17340191563561 (code B ref 74769); Thu, 12 Dec 2024 16:00:04 +0000 Received: (at 74769) by debbugs.gnu.org; 12 Dec 2024 15:59:16 +0000 Received: from localhost ([127.0.0.1]:39980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLlat-0000vH-JZ for submit@debbugs.gnu.org; Thu, 12 Dec 2024 10:59:15 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:36970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLlan-0000u3-Fo for 74769@debbugs.gnu.org; Thu, 12 Dec 2024 10:59:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oM/xlbMW47mn6WUZHG59yh0cGM5by5LgtssvEC8NynQ=; b=HKXqOvXpw/my+IAkUB7S49gZwC+kdcLjnIZ45tQRn+i3nxnLuZuUGQte TzKj+yJZal0oahr+OABS+n59oNi4DNQ4wRMdf2qcxUnjSUCxsI6wVPbkl yp1XG/ZahDVlLkczvO0ZCCSb7U4FUFbQwr61cIWKh7x8piziYe0JJoobG I=; X-IronPort-AV: E=Sophos;i="6.12,229,1728943200"; d="scan'208";a="104178637" Received: from unknown (HELO guix-A102.bordeaux.inria.fr) ([193.50.110.191]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2024 16:58:58 +0100 From: Romain GARBAGE Date: Thu, 12 Dec 2024 16:57:50 +0100 Message-ID: <20241212155845.27344-2-romain.garbage@inria.fr> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241212155845.27344-1-romain.garbage@inria.fr> References: <20241212155845.27344-1-romain.garbage@inria.fr> 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 X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 0.51 X-Spam-Score: 0.51 X-Migadu-Queue-Id: 634D68C7CA X-TUID: 3TQjSHK+GKlP * tests/common.scm (specifications=?): New variable. (specifications-equal?): Remove variable. * tests/gitlab.scm: Use new variable name. --- tests/common.scm | 4 ++-- tests/gitlab.scm | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/common.scm b/tests/common.scm index 5054ea0..488d8db 100644 --- a/tests/common.scm +++ b/tests/common.scm @@ -31,7 +31,7 @@ test-init-db! with-guix-daemon wait-for-bridge - specifications-equal?)) + specifications=?)) (define %db (make-parameter #f)) @@ -125,7 +125,7 @@ Return the socket on success and #f on failure." (strerror (system-error-errno args))) #f))))))) -(define (specifications-equal? spec1 spec2) +(define (specifications=? spec1 spec2) "Return true if SPEC2 and SPEC2 are equivalent, false otherwise." (and (eq? (specification-name spec1) (specification-name spec2)) diff --git a/tests/gitlab.scm b/tests/gitlab.scm index adf94cc..117a94d 100644 --- a/tests/gitlab.scm +++ b/tests/gitlab.scm @@ -158,7 +158,7 @@ }") (test-assert "default-json" - (specifications-equal? + (specifications=? (let ((event (json->gitlab-event default-mr-json))) (gitlab-merge-request->specification (gitlab-event-value event) @@ -177,7 +177,7 @@ (systems (list "x86_64-linux"))))) (test-assert "custom-json" - (specifications-equal? + (specifications=? (let ((event (json->gitlab-event custom-mr-json))) (gitlab-merge-request->specification (gitlab-event-value event) @@ -197,7 +197,7 @@ "aarch64-linux"))))) (test-assert "custom-json-multiple-packages" - (specifications-equal? + (specifications=? (let ((event (json->gitlab-event custom-mr-json-multiple-packages))) (gitlab-merge-request->specification (gitlab-event-value event) @@ -216,7 +216,7 @@ (systems (list "x86_64-linux"))))) (test-assert "custom-json-name-prefix" - (specifications-equal? + (specifications=? (let ((event (json->gitlab-event custom-mr-json-name-prefix))) (gitlab-merge-request->specification (gitlab-event-value event) @@ -235,7 +235,7 @@ (systems (list "x86_64-linux"))))) (test-assert "custom-json-build-all" - (specifications-equal? + (specifications=? (let ((event (json->gitlab-event custom-mr-json-build-all))) (gitlab-merge-request->specification (gitlab-event-value event) -- 2.46.0