]> Sergey Matveev's repositories - public-inbox.git/commitdiff
xt/net_writer_imap: env knobs for compress/debug/proxy
authorEric Wong <e@80x24.org>
Mon, 27 Sep 2021 09:23:15 +0000 (02:23 -0700)
committerEric Wong <e@80x24.org>
Mon, 27 Sep 2021 09:24:38 +0000 (09:24 +0000)
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

index f12280908b94daaef996e26a759f2e995453dd03..41438cf79b155032a8943a593faaa12d20fde48b 100644 (file)
@@ -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);