From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0r.migadu.com with LMTPS id YKtxI5xBjWA5YQEALuJCtg (envelope-from ) for ; Sat, 01 May 2021 13:55:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QH5FH5xBjWDhLAAA1q6Kng (envelope-from ) for ; Sat, 01 May 2021 11:55:08 +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 F202510DD9 for ; Sat, 1 May 2021 13:55:07 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id DF6B7271F2; Sat, 1 May 2021 07:54:41 -0400 (EDT) Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by mail.notmuchmail.org (Postfix) with ESMTPS id 622CB27182 for ; Sat, 1 May 2021 07:54:31 -0400 (EDT) Received: by mail-ot1-x32f.google.com with SMTP id g7-20020a9d5f870000b02902a5831ad705so885052oti.10 for ; Sat, 01 May 2021 04:54:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PCM5wpu9pnQu1zv2Bccwxq47hGJLABbmIJUtD5Lxfmo=; b=drBuv8FgoKd75WCY4z4F8M6cmdHOrYLxfkfXi10mHy3hh61bfkSJegz3cwP0hLEVit omSA/vlxtwEcKJ/tPu0JCN6NPZGQ30Qr7001HChGIPB+9QaoDLCmGB7sZRuDDYCv4Ke9 rMai6zWgU9mZe2zpU/gsMRcCd7QgOyKgJMF1hGfdLh8Xef2VHktNHM7Eq0qruJJvAYFL 39mH02bd33CrkHvht97xrrdhy85xbxmF2hJRdjRGf8gMIxKVy8K2WQXQGkmgL1jmn4wI kpD/80glVNKz1LDh7cKx3UImp4B2YCOtjCXAfVUnvIdtwhNC5Bs5KVIVrDhQdp/oXrFN gsjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PCM5wpu9pnQu1zv2Bccwxq47hGJLABbmIJUtD5Lxfmo=; b=MkiRS63Cr6UoO+Cf53xQbEOqQhvNRBWzncm7dhvHNUBppCE2PugaryWiUyKXBiR654 3KzVrGKrymt17B3kea0LglXVl2W1IKtDBY+7xaPfELUOykWajw54yg2CA2MhndoqC+yV eIv8GI8MfgHgtnFZbcrjXvo41X4wfOeDNO4MYLKTH5OXxOC+9PRsBrTS4RdT6PNxhauK Bn9ik0tK08+s52KXuKV0YBqFEr2cR2FfMBsbg1fYeDK8RUG/KIISKGp5mr6nQh9+ce1/ ZlGniPy9VexhhASizngLkg6GWZcdedfmrquDBcgLj9A9MuKsyZZMGoE3NSZ/OHWb3bHw j8AA== X-Gm-Message-State: AOAM532bk+IAOjV4qQRCSOuFcVYnIKItsJ4RAy8gYzHW6po+AxDHQAVp qjhGdUF7XtoFsQzVnBb0kim53rp8GhPsFg== X-Google-Smtp-Source: ABdhPJzH7YG2ekPV0od0+7N8bfQq+ZvkGIRg97VK3vyEweWPjyYg9nAJCcwiDq//B9bZq2DYjQpfuw== X-Received: by 2002:a9d:6c54:: with SMTP id g20mr7522205otq.116.1619870064737; Sat, 01 May 2021 04:54:24 -0700 (PDT) Received: from localhost ([2806:2f0:4060:638f:a2c5:89ff:fe0c:1151]) by smtp.gmail.com with ESMTPSA id p11sm1314539oti.53.2021.05.01.04.54.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 May 2021 04:54:24 -0700 (PDT) From: Felipe Contreras To: notmuch@notmuchmail.org Subject: [PATCH 00/13] test: several fixes and improvements Date: Sat, 1 May 2021 06:54:09 -0500 Message-Id: <20210501115422.483314-1-felipe.contreras@gmail.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Message-ID-Hash: KJ45HNJQKWZ2MX7HSDXJJGOEAHSCZJN7 X-Message-ID-Hash: KJ45HNJQKWZ2MX7HSDXJJGOEAHSCZJN7 X-MailFrom: felipe.contreras@gmail.com 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 CC: Daniel Kahn Gillmor 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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619870108; 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-unsubscribe:list-subscribe:list-post:dkim-signature; bh=5la+EpznX9RS65NhVSS3QS44xG6x7WPWKoaioel6GqM=; b=JX3zvIXOhMZt6Xz+oTuJ4kkY1jINIGCn8mf9ma5bD+WITFtkEFULt83skcrS2Pgd+IuzGE fPaELwUvMUC/UdVTt7kkl+MLfnFPuzC5o5BqoaQUgVSjwNnPB6HAjd6FqaB0QXar/6Boy5 q02EWhKQvwELRzwAnIoo2tsQJGFaPxIhE/Hzx1quDiiiwIcLKKr1mR2wfG9fEPSvxsEDIf PHlKX7Vcvdzqyadx7U/NCBtLDANl17WA5+Dwr/nCeQYVUcf/XU785mnNmtygZP/6+IkkTd ehYKGBSpSDeA8G/nurXAMZBLkykpvBZ0+coJKEgC2zEi/23/gjAU0JaZNeqO9g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619870108; a=rsa-sha256; cv=none; b=I/EMvYpH4eH+8LDAd8RZ4Rq7Mw1TTgmS/DZX52O1HpYkoaPoBVJ1E7ZyQ6N+m2ZoIskRc1 g2VPU7cp+W6mrMYT7Blndm9A450XkC1mkGoTo7E7Z0p1mljFtj9Incs5DVAuvY9w1SsSWh Kh2IfJZkA53capkU1XoH/CN5s+dSI/0DIcEfNECMeOdf9QECswLyFVPiePoWajNUpqpgHR v7ExqakI1gMpjvq1Tbo7s37h9HxMoldR7s/r5yUHRqmkFeSprfQtjaU231/RGmfO9mmK3p ze6hioyWoNs0I1HxI5OXXWEGNkHy1ywbTvtNBJVSkox0ruxyvvV3ta/xkL6BZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=drBuv8Fg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: -0.96 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=drBuv8Fg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: F202510DD9 X-Spam-Score: -0.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: l1RVP26VXiGE The current tests fail on my machine due to my configuration, mainly because I didn't have dtach installed, but also other stuff. The following patches fix all the issues I found, and also do plenty of cleanups. Felipe Contreras (13): test: fix passwd_sanitize() test: unset NAME environment variable test: remove USER_FULL_NAME when not present test: use correct fqdn in passwd_sanitize() test: fix wrong SKIP messages test: add prereqs check in test_emacs_expect_t test: add external prereqs to many emacs tests test: split emacs functionality to its own file test: emacs: simplify missing dependencies check test: emacs: check for configured emacs test: emacs: fix a couple of shellcheck complaints test: trivial style cleanups test: more style fixes test/T000-basic.sh | 2 +- test/T070-insert.sh | 2 +- test/T140-excludes.sh | 3 +- test/T160-json.sh | 1 + test/T170-sexp.sh | 1 + test/T190-multipart.sh | 3 +- test/T310-emacs.sh | 2 + test/T320-emacs-large-search-buffer.sh | 3 + test/T330-emacs-subject-to-filename.sh | 3 + test/T350-crypto.sh | 2 + test/T355-smime.sh | 2 + test/T357-index-decryption.sh | 2 + test/T358-emacs-protected-headers.sh | 2 + test/T420-emacs-test-functions.sh | 1 + test/T430-emacs-address-cleaning.sh | 3 + test/T440-emacs-hello.sh | 2 + test/T450-emacs-show.sh | 2 + test/T455-emacs-charsets.sh | 3 + test/T460-emacs-tree.sh | 2 + test/T490-parse-time-string.sh | 6 +- test/T510-thread-replies.sh | 1 + test/T590-libconfig.sh | 10 + test/T590-thread-breakage.sh | 10 +- test/T630-emacs-draft.sh | 2 + test/T720-emacs-attachment-warnings.sh | 3 + test/T730-emacs-forwarding.sh | 3 + test/export-dirs.sh | 3 +- test/test-lib-common.sh | 6 +- test/test-lib-emacs.sh | 209 ++++++++++++++++++ test/test-lib.sh | 282 ++++--------------------- 30 files changed, 310 insertions(+), 266 deletions(-) create mode 100644 test/test-lib-emacs.sh -- 2.31.0