summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorThomas Gummerer <t.gummerer@gmail.com>2018-01-07 22:30:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-01-19 18:36:40 (GMT)
commitae59a4e44f359f74d0fede109c29bb53f726209b (patch)
tree67b21013ce27a076b2b93a4e04bb1661a4876500 /ci
parent4bddd98311f249e9ed8a9b6379c7a097201612d1 (diff)
downloadgit-ae59a4e44f359f74d0fede109c29bb53f726209b.zip
git-ae59a4e44f359f74d0fede109c29bb53f726209b.tar.gz
git-ae59a4e44f359f74d0fede109c29bb53f726209b.tar.bz2
travis: run tests with GIT_TEST_SPLIT_INDEX
Split index mode only has a few dedicated tests, but as the index is involved in nearly every git operation, this doesn't quite cover all the ways repositories with split index can break. To use split index mode throughout the test suite a GIT_TEST_SPLIT_INDEX environment variable can be set, which makes git split the index at random and thus excercises the functionality much more thoroughly. As this is not turned on by default, it is not executed nearly as often as the test suite is run, so occationally breakages slip through. Try to counteract that by running the test suite with GIT_TEST_SPLIT_INDEX mode turned on on travis. To avoid using too many cycles on travis only run split index mode in the linux-gcc target only. The Linux build was chosen over the Mac OS builds because it tends to be much faster to complete. The linux gcc build was chosen over the linux clang build because the linux clang build is the fastest build, so it can serve as an early indicator if something is broken and we want to avoid spending the extra cycles of running the test suite twice for that. Helped-by: Lars Schneider <larsxschneider@gmail.com> Helped-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/run-tests.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/ci/run-tests.sh b/ci/run-tests.sh
index f0c743d..c7aee5b 100755
--- a/ci/run-tests.sh
+++ b/ci/run-tests.sh
@@ -8,3 +8,7 @@
mkdir -p $HOME/travis-cache
ln -s $HOME/travis-cache/.prove t/.prove
make --quiet test
+if test "$jobname" = "linux-gcc"
+then
+ GIT_TEST_SPLIT_INDEX=YesPlease make --quiet test
+fi