From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mA5+CEyfz2CZ0QAAgWs5BA (envelope-from ) for ; Sun, 20 Jun 2021 22:04:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WKckBEyfz2CMQQAAB5/wlQ (envelope-from ) for ; Sun, 20 Jun 2021 20:04:28 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 A4E6320ABD for ; Sun, 20 Jun 2021 22:04:27 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 0462F2757D; Sun, 20 Jun 2021 16:04:21 -0400 (EDT) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 50CAE27185 for ; Sun, 20 Jun 2021 16:04:16 -0400 (EDT) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 066C11B00043; Sun, 20 Jun 2021 23:04:14 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1624219454; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ppjo2DfLJENalPCSaDLhJ5d+nu1y7v/Xqs34jd5mfKc=; b=gNKnMtG0sTbOotwkuCM5lcb5RbpRZHKN/qqGZc+I/vA0VVasnN+ih0bWADBxzw62+6DVL2 U7fYysm2yo70LxnbLyIJJBmlGMbZfG00llYLbNJXfPWo20qtICPe47WUnxWOpn4n7LpVtv X+VhfwtKQAl/BD6D6UnlGLu3fcUtOirOOdaszP4Yj7DXJedpuM+5aIJC9QkrgDB+e3B0Zy tavwiKjSsn4OqsfEriiN/HsEpxC0xWRLo+PbAKAt4vJ/YobZAbrcIQQ6ydtvbY9S6XkhSJ BobIDIsgwiM5zBAfz9Tl5eMikSfv0KzeabNoMp26pCwBl0ditgqNh2QqacLQSg== From: Tomi Ollila To: David Bremner , notmuch@notmuchmail.org Subject: Re: [PATCH] test/libconfig: make indexing more consistent In-Reply-To: <20210619133116.2392932-1-david@tethera.net> References: <20210619133116.2392932-1-david@tethera.net> User-Agent: Notmuch/0.32+21~gfdddd4c (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1624219454; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ppjo2DfLJENalPCSaDLhJ5d+nu1y7v/Xqs34jd5mfKc=; b=KVTZckjhhoKI1OfmXv/EiuYjqbD56NJDiaq3pJXvsmIE0YoAJ6iIph++d4uRTHyp71w1ic 16ZwtAvi5W+hdovLNJBQYK/2KC3q/Ia2jfF+8Kt7gZwoTD1geCCGjU5GXTfdpY+QPF8UUC UeO59b8srqemhRXseod0HnrxdDJc5hF9MUBhT2rGSU1SCuxm9jp3vkPKDCGLXlgm66UNPB aDTDNrW+j3Etc0rdcX5RwVqrc9Ed0PKN7eK//SgaJAGHLbDQBlbhwgO3SOWzGoGvFzawY6 nGnHF2kfWAWzUbqrVIQ0aeTtgBUXCWnnnXy6JhUl05Nvh2eaiDRiuPoDgOsD3g== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1624219454; a=rsa-sha256; cv=none; b=YevW4QZaF+yuLuP9ZwI6odpB9SrcDavBnXdz1xSPls0u/sp2fJbairI8zUnChqAGmJuO+5 +ZzdPclN4UcCksh6kiYCOrOiQ2b2JlmRXPv19UZ0tqVHe7m7LD4LyIotvLLWjwgApUmk05 IvllgqzET0mi1K4z7cRg+mSXfHQ7tR0T+ioHf1sQqATWtrcc59t9Ny2GYWMP4DB5SvjoP3 xYXDX6RNB4qNblj0MY/pNMfq56mfUVQPDGbKr/ixzMNOowuVcOu60FfSDBg9gD1RvHTslg K173/aZoYklWk2siicCcKYHJGKCEzw05TNcAr2+OIE3zm6ujOVwnXvLdlIx6XA== Message-ID-Hash: YH3M32IYM4PYP24IAFKGNDV4UN5OAZ2L X-Message-ID-Hash: YH3M32IYM4PYP24IAFKGNDV4UN5OAZ2L X-MailFrom: tomi.ollila@iki.fi X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624219467; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=OCrLJtQcK/wvMspU3ZijCKgP4+2o6WE+q13SJNxp7GU=; b=RkQNNyKukW3Q2MBbxbht0L18ARRouWcIMk5kENZoBXQ0OzkYxP7NYNexskLajSnOllTa46 G0sXbPwDptvMzLIqhJIBARG8dVtyL6G64wPH63htmlspCcFZ1g6lXirv5sA9eUW3PLM/lF XSCFwy1QLLGA+7NGBBUsX0mg2AELmQGc6PdvfCY2+iPJ/bSsy5kE+tPKPzbe4LwJwTn7gW DhBiT12NqqsvNrACCt2FwmQELvpHThZQ04zFSjPHM1zCzbTjqA/+atCAQA15Mz8GsAJGyq eyn1QkEYXPXvHha8wM6liNJSTxJb73ZdPgjmUzU1vFyEsGQtRWvC1Zv4Eo35WA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1624219467; a=rsa-sha256; cv=fail; b=K8hc37rsAr8C1I1YejwoGZsJr7lI13zdRPwQfJ/remnVQlZ3LFWMOx38DoHh7ffoAXGbPW 8eFUl5cGWhHOpCKekPyaDb3dtPPuVNFF0Y4zbZaQA8NUGPZPDoaE5nYyBz127VuzkLDkhl bNDMhmTqPyK7v26BgbeFeBMqQWjQvoB5ovFcIpppn+E/YPyXyrkTs5YIs5iyQzvrUyhTcQ 4zM9l7DvQbDpzETn5jkZqRRoe/Ubfy91B0/GtPmKqDPzZ2u2wD7j33A/5Oopan8eJutMTk uyYZNlQw6U1Kk6+/cw0Im0cSRpyzmN88EgZj8GAcg9e929XUQUaYZ6bNnzVcRA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=gNKnMtG0; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 1.02 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=gNKnMtG0; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: A4E6320ABD X-Spam-Score: 1.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: lug+RiR93p10 On Sat, Jun 19 2021, David Bremner wrote: > The other tests have converted to two digit decimal, the commit does > the same to the remaining test that was printing out indices in hex. LGTM. Tomi > --- > test/T590-libconfig.sh | 24 ++++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) > > diff --git a/test/T590-libconfig.sh b/test/T590-libconfig.sh > index bc7298f8..189381f7 100755 > --- a/test/T590-libconfig.sh > +++ b/test/T590-libconfig.sh > @@ -713,23 +713,23 @@ cat c_head2 - c_tail <<'EOF' | test_C ${MAIL_DIR} %NULL% %NULL% > key < NOTMUCH_CONFIG_LAST; > key = (notmuch_config_key_t)(key + 1)) { > const char *val = notmuch_config_get (db, key); > - printf("%x: '%s'\n", key, val ? val : "NULL" ); > + printf("%02d: '%s'\n", key, val ? val : "NULL" ); > } > } > EOF > cat <<'EOF' >EXPECTED > == stdout == > -0: 'MAIL_DIR' > -1: 'MAIL_DIR' > -2: 'MAIL_DIR/.notmuch/hooks' > -3: 'MAIL_DIR/.notmuch/backups' > -4: 'foo;bar;fub' > -5: 'unread;inbox' > -6: 'sekrit_junk' > -7: 'true' > -8: 'test_suite@notmuchmail.org' > -9: 'test_suite_other@notmuchmail.org;test_suite@otherdomain.org' > -a: 'Notmuch Test Suite' > +00: 'MAIL_DIR' > +01: 'MAIL_DIR' > +02: 'MAIL_DIR/.notmuch/hooks' > +03: 'MAIL_DIR/.notmuch/backups' > +04: 'foo;bar;fub' > +05: 'unread;inbox' > +06: 'sekrit_junk' > +07: 'true' > +08: 'test_suite@notmuchmail.org' > +09: 'test_suite_other@notmuchmail.org;test_suite@otherdomain.org' > +10: 'Notmuch Test Suite' > == stderr == > EOF > test_expect_equal_file EXPECTED OUTPUT > -- > 2.30.2 > _______________________________________________ > notmuch mailing list -- notmuch@notmuchmail.org > To unsubscribe send an email to notmuch-leave@notmuchmail.org