git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH 0/2] reftable related tweaks to t1410
@ 2022-02-09 11:29 Han-Wen Nienhuys via GitGitGadget
  2022-02-09 11:29 ` [PATCH 1/2] t1410: use test-tool ref-store to inspect reflogs Han-Wen Nienhuys via GitGitGadget
  2022-02-09 11:29 ` [PATCH 2/2] t1410: mark bufsize boundary test as REFFILES Han-Wen Nienhuys via GitGitGadget
  0 siblings, 2 replies; 3+ messages in thread
From: Han-Wen Nienhuys via GitGitGadget @ 2022-02-09 11:29 UTC (permalink / raw)
  To: git; +Cc: Han-Wen Nienhuys

This adapts two tests in t1410 for use with reftable.

Han-Wen Nienhuys (2):
  t1410: use test-tool ref-store to inspect reflogs
  t1410: mark bufsize boundary test as REFFILES

 t/t1410-reflog.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


base-commit: 38062e73e009f27ea192d50481fcb5e7b0e9d6eb
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-1213%2Fhanwen%2Ft1410-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-1213/hanwen/t1410-v1
Pull-Request: https://github.com/git/git/pull/1213
-- 
gitgitgadget

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] t1410: use test-tool ref-store to inspect reflogs
  2022-02-09 11:29 [PATCH 0/2] reftable related tweaks to t1410 Han-Wen Nienhuys via GitGitGadget
@ 2022-02-09 11:29 ` Han-Wen Nienhuys via GitGitGadget
  2022-02-09 11:29 ` [PATCH 2/2] t1410: mark bufsize boundary test as REFFILES Han-Wen Nienhuys via GitGitGadget
  1 sibling, 0 replies; 3+ messages in thread
From: Han-Wen Nienhuys via GitGitGadget @ 2022-02-09 11:29 UTC (permalink / raw)
  To: git; +Cc: Han-Wen Nienhuys, Han-Wen Nienhuys

From: Han-Wen Nienhuys <hanwen@google.com>

This makes the test compatible with reftable (it doesn't pass yet for
other reasons, unfortunately)

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
---
 t/t1410-reflog.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/t/t1410-reflog.sh b/t/t1410-reflog.sh
index d7ddf7612d4..36f6693d9d3 100755
--- a/t/t1410-reflog.sh
+++ b/t/t1410-reflog.sh
@@ -418,7 +418,8 @@ test_expect_success 'expire with multiple worktrees' '
 		test_commit -C link-wt foobar &&
 		test_tick &&
 		git reflog expire --verbose --all --expire=$test_tick &&
-		test_must_be_empty .git/worktrees/link-wt/logs/HEAD
+		test-tool ref-store worktree:link-wt for-each-reflog-ent HEAD >actual &&
+		test_must_be_empty actual
 	)
 '
 
-- 
gitgitgadget


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] t1410: mark bufsize boundary test as REFFILES
  2022-02-09 11:29 [PATCH 0/2] reftable related tweaks to t1410 Han-Wen Nienhuys via GitGitGadget
  2022-02-09 11:29 ` [PATCH 1/2] t1410: use test-tool ref-store to inspect reflogs Han-Wen Nienhuys via GitGitGadget
@ 2022-02-09 11:29 ` Han-Wen Nienhuys via GitGitGadget
  1 sibling, 0 replies; 3+ messages in thread
From: Han-Wen Nienhuys via GitGitGadget @ 2022-02-09 11:29 UTC (permalink / raw)
  To: git; +Cc: Han-Wen Nienhuys, Han-Wen Nienhuys

From: Han-Wen Nienhuys <hanwen@google.com>

This test fiddles with files under .git/logs to recreate a condition
that is unlikely to warrant special attention under reftable, as
reflog blocks are zlib compressed.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
---
 t/t1410-reflog.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/t1410-reflog.sh b/t/t1410-reflog.sh
index 36f6693d9d3..68f69bb5431 100755
--- a/t/t1410-reflog.sh
+++ b/t/t1410-reflog.sh
@@ -341,7 +341,7 @@ test_expect_success 'stale dirs do not cause d/f conflicts (reflogs off)' '
 # Each line is 114 characters, so we need 75 to still have a few before the
 # last 8K. The 89-character padding on the final entry lines up our
 # newline exactly.
-test_expect_success SHA1 'parsing reverse reflogs at BUFSIZ boundaries' '
+test_expect_success REFFILES,SHA1 'parsing reverse reflogs at BUFSIZ boundaries' '
 	git checkout -b reflogskip &&
 	zf=$(test_oid zero_2) &&
 	ident="abc <xyz> 0000000001 +0000" &&
-- 
gitgitgadget

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-09 12:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-09 11:29 [PATCH 0/2] reftable related tweaks to t1410 Han-Wen Nienhuys via GitGitGadget
2022-02-09 11:29 ` [PATCH 1/2] t1410: use test-tool ref-store to inspect reflogs Han-Wen Nienhuys via GitGitGadget
2022-02-09 11:29 ` [PATCH 2/2] t1410: mark bufsize boundary test as REFFILES Han-Wen Nienhuys via GitGitGadget

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

	https://80x24.org/mirrors/git.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).