diff options
author | Eric Wong <e@80x24.org> | 2019-01-10 04:53:10 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-01-10 06:46:49 +0000 |
commit | 50c822076abee76c3133ffc3482488392eecedfb (patch) | |
tree | 903752fbe9b3497cfaa67a8739d901223d91f9a9 /t/nntpd.t | |
parent | e041f5446ad266ee24e41a38e0090e2a65167606 (diff) | |
download | public-inbox-50c822076abee76c3133ffc3482488392eecedfb.tar.gz |
This allows v1 tests to continue working on git 1.8.0 for now. This allows git 2.1.4 packaged with Debian 8 ("jessie") to run old tests, at least. I suppose it's safe to drop Debian 7 ("wheezy") due to our dependency on git 1.8.0 for "merge-base --is-ancestor". Writing V2 repositories requires git 2.6 for "get-mark" support, so mask out tests for older gits.
Diffstat (limited to 't/nntpd.t')
-rw-r--r-- | t/nntpd.t | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -18,6 +18,10 @@ use Net::NNTP; use Sys::Hostname; require './t/common.perl'; +# FIXME: make easier to test both versions +my $version = $ENV{PI_VERSION} || 2; +require_git('2.6') if $version == 2; + my $tmpdir = tempdir('pi-nntpd-XXXXXX', TMPDIR => 1, CLEANUP => 1); my $home = "$tmpdir/pi-home"; my $err = "$tmpdir/stderr.log"; @@ -30,10 +34,11 @@ my $init = 'blib/script/public-inbox-init'; use_ok 'PublicInbox::Import'; use_ok 'PublicInbox::Inbox'; use_ok 'PublicInbox::Git'; -use_ok 'PublicInbox::V2Writable'; +SKIP: { + skip "git 2.6+ required for V2Writable", 1 if $version == 1; + use_ok 'PublicInbox::V2Writable'; +} -# XXX FIXME: make it easier to test both versions -my $version = int($ENV{PI_VERSION} || 1); my %opts = ( LocalAddr => '127.0.0.1', ReuseAddr => 1, |