-# Copyright (C) 2014-2015 all contributors <meta@public-inbox.org>
-# License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt)
+# Copyright (C) 2014-2019 all contributors <meta@public-inbox.org>
+# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
use strict;
use warnings;
use Test::More;
my $git_dir = "$tmpdir/gittest";
my $ibx = PublicInbox::Inbox->new({
address => 'test@example',
- -primary_address => 'test@example',
name => 'tester',
- mainrepo => $git_dir,
+ inboxdir => $git_dir,
url => 'http://example.com/test',
});
my $git = $ibx->git;
my $prev = "";
foreach my $i (1..6) {
- # my $pid = open(my $pipe, "|-");
- # defined $pid or die "fork/pipe failed: $!\n";
- # if ($pid == 0) {
- # exec("ssoma-mda", $git_dir);
- # }
my $mid = "<$i\@example.com>";
my $mid_line = "Message-ID: $mid";
if ($prev) {
$im->done;
}
-# check HTML index
-{
- use IO::File;
- my $cb = PublicInbox::Feed::generate_html_index({
- -inbox => $ibx,
- max => 3
- });
- require 't/common.perl';
- like(stream_to_string($cb), qr/html/, "feed is valid HTML :)");
-}
-
done_testing();