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-ASN: 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 23DD71F8C8 for ; Mon, 27 Sep 2021 09:23:15 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] xt/net_writer_imap: env knobs for compress/debug/proxy Date: Mon, 27 Sep 2021 02:23:15 -0700 Message-Id: <20210927092315.24277-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: It can be useful to test with some of these, but we can't enable them universally for all servers (and debug + compress is gross) --- xt/net_writer-imap.t | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xt/net_writer-imap.t b/xt/net_writer-imap.t index f12280908b94..41438cf79b15 100644 --- a/xt/net_writer-imap.t +++ b/xt/net_writer-imap.t @@ -122,6 +122,12 @@ test_lei(sub { } $set_cred_helper->("$ENV{HOME}/.gitconfig", $cred_set) if $cred_set; + # don't combine these two: + $ENV{TEST_IMAP_COMPRESS} and lei_ok qw(config imap.compress true); + $ENV{TEST_IMAP_DEBUG} and lei_ok qw(config imap.debug true); + my $proxy = $ENV{TEST_IMAP_PROXY}; + lei_ok(qw(config imap.proxy), $proxy) if $proxy; + lei_ok qw(q f:qp@example.com -o), $folder_url; $nwr->imap_each($folder_uri, $imap_slurp_all, my $res = []); is(scalar(@$res), 1, 'got one deduped result') or diag explain($res);