Skip to content

Commit f3b964a

Browse files
newrengitster
authored andcommitted
Add testing with merge-ort merge strategy
In preparation for switching from merge-recursive to merge-ort as the default strategy, have the testsuite default to running with merge-ort. Keep coverage of the recursive backend by having the linux-gcc job run with it. Signed-off-by: Elijah Newren <[email protected]> Reviewed-by: Derrick Stolee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 259490e commit f3b964a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

ci/run-build-and-tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ linux-gcc)
1616
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
1717
make test
1818
export GIT_TEST_SPLIT_INDEX=yes
19+
export GIT_TEST_MERGE_ALGORITHM=recursive
1920
export GIT_TEST_FULL_IN_PACK_ARRAY=true
2021
export GIT_TEST_OE_SIZE=10
2122
export GIT_TEST_OE_DELTA_SIZE=5

t/test-lib.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,8 @@ export EDITOR
448448

449449
GIT_DEFAULT_HASH="${GIT_TEST_DEFAULT_HASH:-sha1}"
450450
export GIT_DEFAULT_HASH
451+
GIT_TEST_MERGE_ALGORITHM="${GIT_TEST_MERGE_ALGORITHM:-ort}"
452+
export GIT_TEST_MERGE_ALGORITHM
451453

452454
# Tests using GIT_TRACE typically don't want <timestamp> <file>:<line> output
453455
GIT_TRACE_BARE=1

0 commit comments

Comments
 (0)