summaryrefslogtreecommitdiff
path: root/ci/run-build-and-tests.sh
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2018-10-17 13:00:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-10-19 00:21:28 (GMT)
commit97164c9fe9ff1471ee56ed7be5c4f4ed5f6d8977 (patch)
treeee57fedb10a111efa82fc9e2b9581caf9b158a00 /ci/run-build-and-tests.sh
parenta4b8ab5363a32f283a61ef3a962853556d136c0e (diff)
downloadgit-97164c9fe9ff1471ee56ed7be5c4f4ed5f6d8977.zip
git-97164c9fe9ff1471ee56ed7be5c4f4ed5f6d8977.tar.gz
git-97164c9fe9ff1471ee56ed7be5c4f4ed5f6d8977.tar.bz2
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 <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ci/run-build-and-tests.sh')
-rwxr-xr-xci/run-build-and-tests.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/ci/run-build-and-tests.sh b/ci/run-build-and-tests.sh
index 2a5bff4..cda170d 100755
--- a/ci/run-build-and-tests.sh
+++ b/ci/run-build-and-tests.sh
@@ -15,6 +15,8 @@ then
export GIT_TEST_FULL_IN_PACK_ARRAY=true
export GIT_TEST_OE_SIZE=10
export GIT_TEST_OE_DELTA_SIZE=5
+ export GIT_TEST_COMMIT_GRAPH=1
+ export GIT_TEST_MULTI_PACK_INDEX=1
make --quiet test
fi