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] tests: clean up t/home* consistently
@ 2021-02-21 18:28  6% Eric Wong
  0 siblings, 0 replies; 4+ results
From: Eric Wong @ 2021-02-21 18:28 UTC (permalink / raw)
  To: meta

And update t/home2/README while we're at it.

Followup-to: 4ea3975dbed0a533 ("tests: setup_public_inboxes: use IMAP-friendly newsgroups")
---
 Makefile.PL    | 2 +-
 t/home2/README | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.PL b/Makefile.PL
index 89f1774e..6da2ed70 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -175,7 +175,7 @@ WriteMakefile(
 	},
 	MAN3PODS => \%man3,
 	clean => {
-		FILES => 't/home1/setup* t/home1/t* t/home1/.public-inbox'
+		FILES => 't/home*/setup* t/home*/t* t/home*/.public-inbox'
 	},
 );
 
diff --git a/t/home2/README b/t/home2/README
index 1ba87891..179584a2 100644
--- a/t/home2/README
+++ b/t/home2/README
@@ -3,6 +3,6 @@ between various tests.
 
 See setup_publicinboxes() in lib/PublicInbox/TestCommon.pm.
 
-It is versioned (currently "1" in "home1") and will be renamed
-"home2" and so forth if the data created by setup_publicinboxes()
+It is versioned (currently "2" in "home2") and will be renamed
+"home3" and so forth if the data created by setup_publicinboxes()
 changes.

^ permalink raw reply related	[relevance 6%]

* [PATCH] tests: clean up t/home* consistently
@ 2021-02-21  9:11  6% Eric Wong
  0 siblings, 0 replies; 4+ results
From: Eric Wong @ 2021-02-21  9:11 UTC (permalink / raw)
  To: meta

And update t/home2/README while we're at it.

Followup-to: 4ea3975dbed0a533 ("tests: setup_public_inboxes: use IMAP-friendly newsgroups")
---
 Makefile.PL    | 2 +-
 t/home2/README | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.PL b/Makefile.PL
index 89f1774e..6da2ed70 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -175,7 +175,7 @@ WriteMakefile(
 	},
 	MAN3PODS => \%man3,
 	clean => {
-		FILES => 't/home1/setup* t/home1/t* t/home1/.public-inbox'
+		FILES => 't/home*/setup* t/home*/t* t/home*/.public-inbox'
 	},
 );
 
diff --git a/t/home2/README b/t/home2/README
index 1ba87891..179584a2 100644
--- a/t/home2/README
+++ b/t/home2/README
@@ -3,6 +3,6 @@ between various tests.
 
 See setup_publicinboxes() in lib/PublicInbox/TestCommon.pm.
 
-It is versioned (currently "1" in "home1") and will be renamed
-"home2" and so forth if the data created by setup_publicinboxes()
+It is versioned (currently "2" in "home2") and will be renamed
+"home3" and so forth if the data created by setup_publicinboxes()
 changes.

^ permalink raw reply related	[relevance 6%]

* [PATCH 06/11] tests: setup_public_inboxes: use IMAP-friendly newsgroups
  2021-02-17 10:06  6% [PATCH 00/11] lei IMAP read support Eric Wong
@ 2021-02-17 10:07  7% ` Eric Wong
  0 siblings, 0 replies; 4+ results
From: Eric Wong @ 2021-02-17 10:07 UTC (permalink / raw)
  To: meta

-imapd won't support newsgroups ending with /\.[0-9]+\z/ since
it reserves those for partitioning inboxes into 50K slices.
So bump the home[0-9]+ version and switch to IMAP-friendly
newsgroup names.
---
 MANIFEST                      | 6 +++---
 lib/PublicInbox/TestCommon.pm | 4 ++--
 t/{home1 => home2}/.gitignore | 0
 t/{home1 => home2}/Makefile   | 0
 t/{home1 => home2}/README     | 0
 5 files changed, 5 insertions(+), 5 deletions(-)
 rename t/{home1 => home2}/.gitignore (100%)
 rename t/{home1 => home2}/Makefile (100%)
 rename t/{home1 => home2}/README (100%)

diff --git a/MANIFEST b/MANIFEST
index 1794d930..82068900 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -334,9 +334,9 @@ t/git.fast-import-data
 t/git.t
 t/gzip_filter.t
 t/hl_mod.t
-t/home1/.gitignore
-t/home1/Makefile
-t/home1/README
+t/home2/.gitignore
+t/home2/Makefile
+t/home2/README
 t/html_index.t
 t/httpd-corner.psgi
 t/httpd-corner.t
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm
index d6b7d20e..c5070cfd 100644
--- a/lib/PublicInbox/TestCommon.pm
+++ b/lib/PublicInbox/TestCommon.pm
@@ -540,7 +540,7 @@ EOM
 # returns the pathname to a ~/.public-inbox/config in scalar context,
 # ($test_home, $pi_config_pathname) in list context
 sub setup_public_inboxes () {
-	my $test_home = "t/home1";
+	my $test_home = "t/home2";
 	my $pi_config = "$test_home/.public-inbox/config";
 	my $stamp = "$test_home/setup-stamp";
 	my @ret = ($test_home, $pi_config);
@@ -555,7 +555,7 @@ sub setup_public_inboxes () {
 	local $ENV{PI_CONFIG} = $pi_config;
 	for my $V (1, 2) {
 		run_script([qw(-init), "-V$V", "t$V",
-				'--newsgroup', "t.$V",
+				'--newsgroup', "t.v$V",
 				"$test_home/t$V", "http://example.com/t$V",
 				"t$V\@example.com" ]) or BAIL_OUT "init v$V";
 	}
diff --git a/t/home1/.gitignore b/t/home2/.gitignore
similarity index 100%
rename from t/home1/.gitignore
rename to t/home2/.gitignore
diff --git a/t/home1/Makefile b/t/home2/Makefile
similarity index 100%
rename from t/home1/Makefile
rename to t/home2/Makefile
diff --git a/t/home1/README b/t/home2/README
similarity index 100%
rename from t/home1/README
rename to t/home2/README

^ permalink raw reply related	[relevance 7%]

* [PATCH 00/11] lei IMAP read support
@ 2021-02-17 10:06  6% Eric Wong
  2021-02-17 10:07  7% ` [PATCH 06/11] tests: setup_public_inboxes: use IMAP-friendly newsgroups Eric Wong
  0 siblings, 1 reply; 4+ results
From: Eric Wong @ 2021-02-17 10:06 UTC (permalink / raw)
  To: meta

IMAP write support for search results is planned, but testing
could get tricky...

Still unsure about some UI bits w.r.t --format/-f:
	https://public-inbox.org/meta/20210217044032.GA17934@dcvr/

convert and import should support parallel network xfers,
NNTP reads, and eventually JMAP...

convert and import don't support compressed mboxes, yet.

Eric Wong (11):
  lei: bless config
  watch: move imap_common_init to NetReader
  watch: connect to NNTP and IMAP in config order
  lei import: start rearranging code for IMAP support
  lei import: move check_input_format to lei
  tests: setup_public_inboxes: use IMAP-friendly newsgroups
  t/lei_to_mail: remove unnecessary arg passing
  lei convert: mail format conversion sub-command
  lei import: add IMAP, (maildir|mbox*):$PATHNAME support
  lei: consolidate the bulk of the IPC code
  lei: check for IMAP auth errors

 MANIFEST                         |  11 +-
 lib/PublicInbox/GitCredential.pm |  18 ++-
 lib/PublicInbox/LEI.pm           |  62 +++++++-
 lib/PublicInbox/LeiAuth.pm       |  70 +++++++++
 lib/PublicInbox/LeiConvert.pm    | 137 +++++++++++++++++
 lib/PublicInbox/LeiDedupe.pm     |   2 +-
 lib/PublicInbox/LeiImport.pm     | 156 +++++++++++++-------
 lib/PublicInbox/LeiMirror.pm     |  19 +--
 lib/PublicInbox/LeiOverview.pm   |   7 +-
 lib/PublicInbox/LeiToMail.pm     |   5 +-
 lib/PublicInbox/MdirReader.pm    |  26 ++++
 lib/PublicInbox/NetReader.pm     | 242 +++++++++++++++++++++++++++++--
 lib/PublicInbox/TestCommon.pm    |  15 +-
 lib/PublicInbox/Watch.pm         |  82 ++---------
 t/{home1 => home2}/.gitignore    |   0
 t/{home1 => home2}/Makefile      |   0
 t/{home1 => home2}/README        |   0
 t/lei-convert.t                  |  36 +++++
 t/lei-import-imap.t              |  28 ++++
 t/lei-import-maildir.t           |   4 +-
 t/lei_to_mail.t                  |  14 +-
 t/net_reader-imap.t              |  40 +++++
 xt/lei-auth-fail.t               |  20 +++
 23 files changed, 820 insertions(+), 174 deletions(-)
 create mode 100644 lib/PublicInbox/LeiAuth.pm
 create mode 100644 lib/PublicInbox/LeiConvert.pm
 rename t/{home1 => home2}/.gitignore (100%)
 rename t/{home1 => home2}/Makefile (100%)
 rename t/{home1 => home2}/README (100%)
 create mode 100644 t/lei-convert.t
 create mode 100644 t/lei-import-imap.t
 create mode 100644 t/net_reader-imap.t
 create mode 100644 xt/lei-auth-fail.t


^ permalink raw reply	[relevance 6%]

Results 1-4 of 4 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2021-02-17 10:06  6% [PATCH 00/11] lei IMAP read support Eric Wong
2021-02-17 10:07  7% ` [PATCH 06/11] tests: setup_public_inboxes: use IMAP-friendly newsgroups Eric Wong
2021-02-21  9:11  6% [PATCH] tests: clean up t/home* consistently Eric Wong
2021-02-21 18:28  6% 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).