]> git.ipfire.org Git - thirdparty/git.git/commit
core.fsyncmethod: tests for batch mode
authorNeeraj Singh <neerajsi@microsoft.com>
Tue, 5 Apr 2022 05:20:16 +0000 (22:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Apr 2022 20:13:26 +0000 (13:13 -0700)
commitd42bab442d7ca6bcc38aefe384e94d4320565b77
treef3249ed4e2f3cfdd6d39583476de495c2e45102d
parentfb2d0db502240231cde9584d2a908ae186a2ae06
core.fsyncmethod: tests for batch mode

Add test cases to exercise batch mode for:
 * 'git add'
 * 'git stash'
 * 'git update-index'
 * 'git unpack-objects'

These tests ensure that the added data winds up in the object database.

In this change we introduce a new test helper lib-unique-files.sh. The
goal of this library is to create a tree of files that have different
oids from any other files that may have been created in the current test
repo. This helps us avoid missing validation of an object being added
due to it already being in the repo.

Signed-off-by: Neeraj Singh <neerajsi@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-unique-files.sh [new file with mode: 0644]
t/t3700-add.sh
t/t3903-stash.sh
t/t5300-pack-object.sh