From: Junio C Hamano Date: Tue, 6 Nov 2018 06:50:23 +0000 (+0900) Subject: Merge branch 'sg/test-verbose-log' X-Git-Tag: v2.20.0-rc0~61 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/67f673aa4a580b9e407b1ca505abf1f50510ec47?ds=inline;hp=-c Merge branch 'sg/test-verbose-log' Our test scripts can now take the '-V' option as a synonym for the '--verbose-log' option. * sg/test-verbose-log: test-lib: introduce the '-V' short option for '--verbose-log' --- 67f673aa4a580b9e407b1ca505abf1f50510ec47 diff --combined t/README index 8847489640,0c31792d14..2e9bef2852 --- a/t/README +++ b/t/README @@@ -154,6 -154,7 +154,7 @@@ appropriately before running "make" As the names depend on the tests' file names, it is safe to run the tests with this option in parallel. + -V:: --verbose-log:: Write verbose output to the same logfile as `--tee`, but do _not_ write it to stdout. Unlike `--tee --verbose`, this option @@@ -315,34 -316,10 +316,34 @@@ packs on demand. This normally only hap over 2GB. This variable forces the code path on any object larger than bytes. -GIT_TEST_OE_DELTA_SIZE= exercises the uncomon pack-objects code +GIT_TEST_OE_DELTA_SIZE= exercises the uncommon pack-objects code path where deltas larger than this limit require extra memory allocation for bookkeeping. +GIT_TEST_VALIDATE_INDEX_CACHE_ENTRIES= checks that cache-tree +records are valid when the index is written out or after a merge. This +is mostly to catch missing invalidation. Default is true. + +GIT_TEST_COMMIT_GRAPH=, when true, forces the commit-graph to +be written after every 'git commit' command, and overrides the +'core.commitGraph' setting to true. + +GIT_TEST_FSMONITOR=$PWD/t7519/fsmonitor-all exercises the fsmonitor +code path for utilizing a file system monitor to speed up detecting +new or changed files. + +GIT_TEST_INDEX_VERSION= exercises the index read/write code path +for the index version specified. Can be set to any valid version +(currently 2, 3, or 4). + +GIT_TEST_PRELOAD_INDEX= exercises the preload-index code path +by overriding the minimum number of cache entries required per thread. + +GIT_TEST_INDEX_THREADS= enables exercising the multi-threaded loading +of the index for the whole test suite by bypassing the default number of +cache entries and thread minimums. Setting this to 1 will make the +index loading single threaded. + Naming Tests ------------ @@@ -417,13 -394,13 +418,13 @@@ This test harness library does the foll consistently when command line arguments --verbose (or -v), --debug (or -d), and --immediate (or -i) is given. -Do's, don'ts & things to keep in mind -------------------------------------- +Do's & don'ts +------------- Here are a few examples of things you probably should and shouldn't do when writing tests. -Do: +Here are the "do's:" - Put all code inside test_expect_success and other assertions. @@@ -468,21 -445,16 +469,21 @@@ Windows, where the shell (MSYS bash) mangles absolute path names. For details, see the commit message of 4114156ae9. -Don't: + - Remember that inside the