all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Romain GARBAGE <romain.garbage@inria.fr>
To: 74769@debbugs.gnu.org
Cc: ludovic.courtes@inria.fr, Romain GARBAGE <romain.garbage@inria.fr>
Subject: [bug#74769] [PATCH Cuirass v2 2/7] tests: Rename specifications-equal? procedure.
Date: Thu, 12 Dec 2024 16:57:50 +0100	[thread overview]
Message-ID: <20241212155845.27344-2-romain.garbage@inria.fr> (raw)
In-Reply-To: <20241212155845.27344-1-romain.garbage@inria.fr>

* 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





  reply	other threads:[~2024-12-12 16:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-10 16:01 [bug#74769] [PATCH Cuirass 0/4] Forgejo event support Romain GARBAGE
2024-12-10 16:09 ` [bug#74769] [PATCH Cuirass 1/4] tests: Move procedure definition Romain GARBAGE
2024-12-10 16:09   ` [bug#74769] [PATCH Cuirass 2/4] forgejo: Add module for Forgejo JSON objects definition Romain GARBAGE
2024-12-12 13:34     ` Ludovic Courtès
2024-12-10 16:09   ` [bug#74769] [PATCH Cuirass 3/4] tests: Explicit Gitlab endpoint related variables Romain GARBAGE
2024-12-10 16:09   ` [bug#74769] [PATCH Cuirass 4/4] http: Add admin/forgejo/event Romain GARBAGE
2024-12-12 15:57 ` [bug#74769] [PATCH Cuirass v2 1/7] tests: Move procedure definition Romain GARBAGE
2024-12-12 15:57   ` Romain GARBAGE [this message]
2024-12-12 15:57   ` [bug#74769] [PATCH Cuirass v2 3/7] forges: Add module for common forges utilities Romain GARBAGE
2024-12-12 15:57   ` [bug#74769] [PATCH Cuirass v2 4/7] forges: Define default values for specifications Romain GARBAGE
2024-12-12 15:57   ` [bug#74769] [PATCH Cuirass v2 5/7] forgejo: Add module for Forgejo JSON objects definition Romain GARBAGE
2024-12-12 15:57   ` [bug#74769] [PATCH Cuirass v2 6/7] tests: Explicit Gitlab endpoint related variables Romain GARBAGE
2024-12-12 15:57   ` [bug#74769] [PATCH Cuirass v2 7/7] http: Add admin/forgejo/event Romain GARBAGE
2024-12-13 10:17   ` bug#74769: [PATCH Cuirass v2 1/7] tests: Move procedure definition Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241212155845.27344-2-romain.garbage@inria.fr \
    --to=romain.garbage@inria.fr \
    --cc=74769@debbugs.gnu.org \
    --cc=ludovic.courtes@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.