From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MJe3JgG7/2PrCQEAbAwnHQ (envelope-from ) for ; Wed, 01 Mar 2023 21:52:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OJ/tJgG7/2N01gAA9RJhRA (envelope-from ) for ; Wed, 01 Mar 2023 21:52:17 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 aspmx1.migadu.com (Postfix) with ESMTPS id DFE533EA19 for ; Wed, 1 Mar 2023 21:52:16 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=boula.in header.s=key1 header.b=TGK4JxoZ; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=fail reason="SPF not aligned (relaxed)" header.from=boula.in (policy=quarantine) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677703937; h=from:from: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:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=O4dAKth0Rv6v6cvrTViktddSYznaYaYCc0QeEGypd7o=; b=bILjkWYmzC8UUx3xy41MN71s+bovlkJqFsVeVyTAqCQ6h0rGpZLFrdik8NP5YTkxcktQ9p wa3CoXtVK3DGSIAnJxBhNuY1ISUQgqpX56M1SHAFQUStsK/sYyS0Q1/suJLL4Mi+ZK2cn9 dZkCMPaOj6mKVX1x/1apUNkrhhLnSPP1UPEeJam5Ht2oM7k0lvfzoV2DNKG7sBHtXqeG+K +yA/1kkVVTXO6P5V04YXBbAKPZHYOAz1a90g9WtgFely81leymP5g/t6WDuAJB6QnKAgK4 m4Y18w0fPgKSrtgjo0joz1Jy11h7prPEH9smUKdlt5jHg0a99QBEcMcie8lRdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=boula.in header.s=key1 header.b=TGK4JxoZ; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=fail reason="SPF not aligned (relaxed)" header.from=boula.in (policy=quarantine) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677703937; a=rsa-sha256; cv=none; b=pZ9tSSDp4y952p0OzKWoEjSCeuOfNGdxr/H0y+bwB07+lpycGXYQi2O2FgqzrMfR8VjVN1 e8tM4u7m4K07mH2+zinCvE4M3CWhzuws9oyNGW7zkWIkICbr/lTYxLx0k9A9o9tmY27BqL RS+odcT7s5dkxhUMtN9+qCMSRXjGqJuoK+4Qify90ISy58+hJQP5Lh/JNtLWuAkSjy1tj2 rwNLgCEL9Q5CHqgitHajKsMi4stXZ7wHtZiwdjfHVryw1cnKWEsHfAgw4Ymq3SaQlhyr3r lZxTpRsit0IN6fZBBA37ufe1/3VhRw07vQy8hA7rJCCd17I00ZzDM6Pm4MB5vw== Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 39A855F42B; Wed, 1 Mar 2023 20:52:14 +0000 (UTC) Received: from out-24.mta0.migadu.com (out-24.mta0.migadu.com [91.218.175.24]) by mail.notmuchmail.org (Postfix) with ESMTPS id 0B45E5F36B for ; Wed, 1 Mar 2023 20:52:12 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boula.in; s=key1; t=1677703930; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=r7bbS6VWsBPlUxXpWVRij8ow9DdS8mPdhCAs6DA5WTg=; b=TGK4JxoZMAlIMAbaMl0KaXwG9fmg2ZzmG4V27diDblAM6cSrtognSkOKERd6JOk09cOdkR MgpFR35dO2o9USBL/p+77BPiVUp21RKwcL42lXDkU13pGkC6B6oIJY/2ZIqgdUbUQ7bOZa DpgsHsY6VawXsViBZiiP9zZjR94VULEw2gifH9JcSOlKwCLTatX4TyqE5W6Ch3CpnrUhYF vkEVmkyOLhmd+xI068SlEuB7L90+DU+8ogp31qCqxNzAzG5iuDppkPYDRDpD/mx125ZeOW u8dM4hceU4GMhRcSXcX7pratIcpfmRxkaH63rBAGVsD6sVw89+6YXXKQpG321g== From: Kevin Boulain To: notmuch@notmuchmail.org Subject: [PATCH 1/2] test: display key name in property tests Date: Wed, 1 Mar 2023 21:51:48 +0100 Message-Id: <20230301205149.297637-1-kevin@boula.in> MIME-Version: 1.0 Message-ID-Hash: GA5NPBB3JT6FL6RSUBM3UCKSRTJKE5A7 X-Message-ID-Hash: GA5NPBB3JT6FL6RSUBM3UCKSRTJKE5A7 X-MailFrom: kevin@boula.in X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 CC: Kevin Boulain X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: X-Migadu-Spam-Score: 6.00 X-Spam: Yes X-Spam-Score: 6.00 X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam: Yes X-Migadu-Queue-Id: DFE533EA19 List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Country: DE X-Migadu-Flow: FLOW_IN X-TUID: UnmKrknO+RU7 To ease the review of the next patch. --- test/T610-message-property.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/test/T610-message-property.sh b/test/T610-message-property.sh index 2685f3b5..7ebddae3 100755 --- a/test/T610-message-property.sh +++ b/test/T610-message-property.sh @@ -12,7 +12,7 @@ void print_properties (notmuch_message_t *message, const char *prefix, notmuch_b notmuch_message_properties_t *list; for (list = notmuch_message_get_properties (message, prefix, exact); notmuch_message_properties_valid (list); notmuch_message_properties_move_to_next (list)) { - printf("%s\n", notmuch_message_properties_value(list)); + printf("%s = %s\n", notmuch_message_properties_key(list), notmuch_message_properties_value(list)); } notmuch_message_properties_destroy (list); } @@ -157,7 +157,7 @@ print_properties (message, "testkey1", TRUE); EOF cat <<'EOF' >EXPECTED == stdout == -testvalue1 +testkey1 = testvalue1 == stderr == EOF test_expect_equal_file EXPECTED OUTPUT @@ -171,10 +171,10 @@ print_properties (message, "testkey1", TRUE); EOF cat <<'EOF' >EXPECTED == stdout == -alice -bob -testvalue1 -testvalue2 +testkey1 = alice +testkey1 = bob +testkey1 = testvalue1 +testkey1 = testvalue2 == stderr == EOF test_expect_equal_file EXPECTED OUTPUT @@ -200,13 +200,13 @@ awk ' NR == 1 { print; next } \ rm unsorted_OUTPUT cat <<'EOF' >EXPECTED == stdout == -alice -bob -testvalue1 -testvalue2 -alice3 -bob3 -testvalue3 +testkey1 = alice +testkey1 = bob +testkey1 = testvalue1 +testkey1 = testvalue2 +testkey3 = alice3 +testkey3 = bob3 +testkey3 = testvalue3 == stderr == EOF test_expect_equal_file EXPECTED OUTPUT