git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
4dad9043fbf29479f1ef40f6bda830edb2ec835e blob 1165 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
# Helpers for t208* tests

# Runs `git -c checkout.workers=$1 -c checkout.thesholdForParallelism=$2 ${@:4}`
# and checks that the number of workers spawned is equal to $3.
#
git_pc()
{
	if test $# -lt 4
	then
		BUG "too few arguments to git_pc()"
	fi &&

	workers=$1 threshold=$2 expected_workers=$3 &&
	shift 3 &&

	rm -f trace &&
	GIT_TRACE2="$(pwd)/trace" git \
		-c checkout.workers=$workers \
		-c checkout.thresholdForParallelism=$threshold \
		-c advice.detachedHead=0 \
		"$@" &&

	# Check that the expected number of workers has been used. Note that it
	# can be different from the requested number in two cases: when the
	# threshold is not reached; and when there are not enough
	# parallel-eligible entries for all workers.
	#
	local workers_in_trace=$(grep "child_start\[..*\] git checkout--helper" trace | wc -l) &&
	test $workers_in_trace -eq $expected_workers &&
	rm -f trace
}

# Verify that both the working tree and the index were created correctly
verify_checkout()
{
	git -C "$1" diff-index --quiet HEAD -- &&
	git -C "$1" diff-index --quiet --cached HEAD -- &&
	git -C "$1" status --porcelain >"$1".status &&
	test_must_be_empty "$1".status
}
debug log:

solving 4dad9043fb ...
found 4dad9043fb in https://public-inbox.org/git/3733857ffa47c4d16fba91c2ca02ad0cce278dd7.1604521276.git.matheus.bernardino@usp.br/ ||
	https://public-inbox.org/git/05299a3cc0ae8ebb55d17ba35adb953aeb003dca.1603937110.git.matheus.bernardino@usp.br/

applying [1/2] https://public-inbox.org/git/3733857ffa47c4d16fba91c2ca02ad0cce278dd7.1604521276.git.matheus.bernardino@usp.br/
diff --git a/t/lib-parallel-checkout.sh b/t/lib-parallel-checkout.sh
new file mode 100644
index 0000000000..4dad9043fb

Checking patch t/lib-parallel-checkout.sh...
Applied patch t/lib-parallel-checkout.sh cleanly.

skipping https://public-inbox.org/git/05299a3cc0ae8ebb55d17ba35adb953aeb003dca.1603937110.git.matheus.bernardino@usp.br/ for 4dad9043fb
index at:
100644 4dad9043fbf29479f1ef40f6bda830edb2ec835e	t/lib-parallel-checkout.sh

Code repositories for project(s) associated with this 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).