From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id F254E1F8C2 for ; Tue, 9 Feb 2021 08:09:37 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 00/11] Maildir code consolidation, test updates Date: Tue, 9 Feb 2021 07:09:26 -0100 Message-Id: <20210209080937.4678-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: MdirReader is the home of Maildir-related code, and -watch is updated to use some of it, as is the InboxWritable->import_maildir (which I'm not sure should live). "lei q --alert=" is slightly changed for CLI-friendliness tr/-/:/ And damn, I just misread "Cwd" as "Covid"; /me goes back to hiding under the bed :< Eric Wong (11): t/thread-index-gap.t: avoid unnecessary map test_common: disable fsync on the command-line where possible t/cgi.t: modernizations and style updates git: ->qx: respect caller's $/ in array context lei: split out MdirReader package, lazy-require earlier t/run.perl: fix for >128 tests use MdirReader in -watch and InboxWritable lei q: prefix --alert ops with ':' instead of '-' t/run.perl: drop Cwd dependency lei: replace "I:"-prefixed info messages with "#" tests: (lei) fixes for TEST_RUN_MODE=0 and oneshot mode MANIFEST | 2 + lib/PublicInbox/Git.pm | 1 - lib/PublicInbox/IPC.pm | 2 + lib/PublicInbox/Import.pm | 6 +-- lib/PublicInbox/InboxWritable.pm | 55 +++++++++------------ lib/PublicInbox/LEI.pm | 21 ++++---- lib/PublicInbox/LeiImport.pm | 25 ++++++---- lib/PublicInbox/LeiOverview.pm | 2 +- lib/PublicInbox/LeiToMail.pm | 26 ++++------ lib/PublicInbox/MdirReader.pm | 39 +++++++++++++++ lib/PublicInbox/TestCommon.pm | 10 +++- lib/PublicInbox/Watch.pm | 6 ++- t/cgi.t | 84 +++++++++++++------------------- t/lei-import.t | 5 +- t/lei-mirror.t | 2 +- t/lei.t | 2 +- t/lei_to_mail.t | 19 ++++++-- t/mdir_reader.t | 22 +++++++++ t/run.perl | 22 ++++----- t/thread-index-gap.t | 10 ++-- 20 files changed, 211 insertions(+), 150 deletions(-) create mode 100644 lib/PublicInbox/MdirReader.pm create mode 100644 t/mdir_reader.t