diff options
author | Ben Peart <benpeart@microsoft.com> | 2017-09-22 12:35:46 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-01 17:23:05 +0900 |
commit | 5c8cdcfd807311d4ec7165c71b20c5bde9566acd (patch) | |
tree | 92d76db4310a3c30af51c0ac2bb2e9057ba984f2 /tmp-objdir.h | |
parent | split-index: disable the fsmonitor extension when running the split index test (diff) | |
download | tgif-5c8cdcfd807311d4ec7165c71b20c5bde9566acd.tar.xz |
fsmonitor: add test cases for fsmonitor extension
Test the ability to add/remove the fsmonitor index extension via
update-index.
Test that dirty files returned from the integration script are properly
represented in the index extension and verify that ls-files correctly
reports their state.
Test that ensure status results are correct when using the new fsmonitor
extension. Test untracked, modified, and new files by ensuring the
results are identical to when not using the extension.
Test that if the fsmonitor extension doesn't tell git about a change, it
doesn't discover it on its own. This ensures git is honoring the
extension and that we get the performance benefits desired.
Three test integration scripts are provided:
fsmonitor-all - marks all files as dirty
fsmonitor-none - marks no files as dirty
fsmonitor-watchman - integrates with Watchman with debug logging
To run tests in the test suite while utilizing fsmonitor:
First copy t/t7519/fsmonitor-all to a location in your path and then set
GIT_FORCE_PRELOAD_TEST=true and GIT_FSMONITOR_TEST=fsmonitor-all and run
your tests.
Note: currently when using the test script fsmonitor-watchman on
Windows, many tests fail due to a reported but not yet fixed bug in
Watchman where it holds on to handles for directories and files which
prevents the test directory from being cleaned up properly.
Signed-off-by: Ben Peart <benpeart@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tmp-objdir.h')
0 files changed, 0 insertions, 0 deletions