Skip to content

Commit 97164c9

Browse files
derrickstoleegitster
authored andcommitted
ci: add optional test variables
The commit-graph and multi-pack-index features introduce optional data structures that are not required for normal Git operations. It is important to run the normal test suite without them enabled, but it is helpful to also run the test suite using them. Our continuous integration scripts include a second test stage that runs with optional GIT_TEST_* variables enabled. Add the following two variables to that stage: GIT_TEST_COMMIT_GRAPH GIT_TEST_MULTI_PACK_INDEX This will slow down the operation, as we build a commit-graph file after every 'git commit' operation and build a multi-pack-index during every 'git repack' operation. However, it is important that future changes are compatible with these features. Signed-off-by: Derrick Stolee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a4b8ab5 commit 97164c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ci/run-build-and-tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ then
1515
export GIT_TEST_FULL_IN_PACK_ARRAY=true
1616
export GIT_TEST_OE_SIZE=10
1717
export GIT_TEST_OE_DELTA_SIZE=5
18+
export GIT_TEST_COMMIT_GRAPH=1
19+
export GIT_TEST_MULTI_PACK_INDEX=1
1820
make --quiet test
1921
fi
2022

0 commit comments

Comments
 (0)