user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 2/3] t/www_listing: test "all" HTML listing
  2019-12-26  6:48  5% [PATCH 0/3] some test coverage improvements Eric Wong
@ 2019-12-26  6:48  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2019-12-26  6:48 UTC (permalink / raw)
  To: meta

We now have coverage for PublicInbox::WwwListing::list_all.
---
 t/www_listing.t | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/t/www_listing.t b/t/www_listing.t
index 2ff053de..e785ae9b 100644
--- a/t/www_listing.t
+++ b/t/www_listing.t
@@ -31,7 +31,10 @@ like(PublicInbox::WwwListing::fingerprint($bare), qr/\A[a-f0-9]{40}\z/,
 sub tiny_test {
 	my ($json, $host, $port) = @_;
 	my $http = HTTP::Tiny->new;
-	my $res = $http->get("http://$host:$port/manifest.js.gz");
+	my $res = $http->get("http://$host:$port/");
+	is($res->{status}, 200, 'got HTML listing');
+	like($res->{content}, qr!</html>!si, 'listing looks like HTML');
+	$res = $http->get("http://$host:$port/manifest.js.gz");
 	is($res->{status}, 200, 'got manifest');
 	my $tmp;
 	IO::Uncompress::Gunzip::gunzip(\(delete $res->{content}) => \$tmp);
@@ -85,6 +88,8 @@ SKIP: {
 	ok(unlink("$bare->{git_dir}/description"), 'removed bare/description');
 	open $fh, '>', $cfgfile or die;
 	print $fh <<"" or die;
+[publicinbox]
+	wwwlisting = all
 [publicinbox "bare"]
 	inboxdir = $bare->{git_dir}
 	url = http://$host/bare

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/3] some test coverage improvements
@ 2019-12-26  6:48  5% Eric Wong
  2019-12-26  6:48  7% ` [PATCH 2/3] t/www_listing: test "all" HTML listing Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2019-12-26  6:48 UTC (permalink / raw)
  To: meta

These were based on some bugs found by my patch series to
eliminate per-request closures from the WWW code:
   https://public-inbox.org/meta/20191225075104.22184-1-e@80x24.org/

Fixes coming for to those...

Eric Wong (3):
  t/www_listing: quiet down stderr in -httpd
  t/www_listing: test "all" HTML listing
  t/solver_git: test with -httpd, too

 t/solver_git.t  | 42 +++++++++++++++++++++++++++++++-----------
 t/www_listing.t |  8 +++++++-
 2 files changed, 38 insertions(+), 12 deletions(-)


^ permalink raw reply	[relevance 5%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2019-12-26  6:48  5% [PATCH 0/3] some test coverage improvements Eric Wong
2019-12-26  6:48  7% ` [PATCH 2/3] t/www_listing: test "all" HTML listing Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).