git-commit-vandalism/t/helper
Stephen P. Smith b841d4ff43 Add human format to test-tool
Add the human format support to the test tool so that
GIT_TEST_DATE_NOW can be used to specify the current time.

The get_time() helper function was created and and checks the
GIT_TEST_DATE_NOW environment variable.  If GIT_TEST_DATE_NOW is set,
then that date is used instead of the date returned by by
gettimeofday().

All calls to gettimeofday() were replaced by calls to get_time().

Renamed occurances of TEST_DATE_NOW to GIT_TEST_DATE_NOW since the
variable is now used in the get binary and not just in the test-tool.

Signed-off-by: Stephen P. Smith <ischis2@cox.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2019-01-29 09:40:08 -08:00
..
.gitignore Merge branch 'sb/test-helper-excludes' 2017-12-27 11:16:29 -08:00
test-chmtime.c Merge branch 'ps/test-chmtime-get' 2018-04-25 13:29:00 +09:00
test-config.c t/helper: merge test-config into test-tool 2018-03-27 08:45:47 -07:00
test-ctype.c t/helper: merge test-ctype into test-tool 2018-03-27 08:45:47 -07:00
test-date.c Add human format to test-tool 2019-01-29 09:40:08 -08:00
test-delta.c t/helper: merge (unused) test-delta into test-tool 2018-03-27 08:45:47 -07:00
test-drop-caches.c test-drop-caches: simplify delay loading of NtSetSystemInformation 2018-05-04 11:35:00 +09:00
test-dump-cache-tree.c t/helper: merge test-dump-cache-tree into test-tool 2018-03-27 08:45:47 -07:00
test-dump-fsmonitor.c fsmonitor: add a test tool to dump the index extension 2017-10-01 17:23:05 +09:00
test-dump-split-index.c Update struct index_state to use struct object_id 2018-05-02 13:59:50 +09:00
test-dump-untracked-cache.c dir: convert struct untracked_cache_dir to object_id 2018-05-02 13:59:51 +09:00
test-example-decorate.c Replace all die("BUG: ...") calls by BUG() ones 2018-05-06 19:06:13 +09:00
test-fake-ssh.c
test-genrandom.c t/helper: merge test-genrandom into test-tool 2018-03-27 08:45:47 -07:00
test-hashmap.c t/helper: merge test-hashmap into test-tool 2018-03-27 08:45:47 -07:00
test-index-version.c t/helper: merge test-index-version into test-tool 2018-03-27 08:45:47 -07:00
test-lazy-init-name-hash.c t/helper: merge test-lazy-init-name-hash into test-tool 2018-03-27 08:45:47 -07:00
test-line-buffer.c test-line-buffer: simplify command parsing 2017-09-22 12:49:53 +09:00
test-match-trees.c t/helper: merge (unused) test-match-trees into test-tool 2018-03-27 08:45:47 -07:00
test-mergesort.c t/helper: merge (unused) test-mergesort into test-tool 2018-03-27 08:45:47 -07:00
test-mktemp.c t/helper: merge test-mktemp into test-tool 2018-03-27 08:45:47 -07:00
test-online-cpus.c t/helper: merge test-online-cpus into test-tool 2018-03-27 08:45:47 -07:00
test-parse-options.c t0040,t1502: Demonstrate parse_options bugs 2017-09-25 14:35:50 +09:00
test-path-utils.c Sync with Git 2.17.1 2018-05-29 17:10:05 +09:00
test-pkt-line.c test-pkt-line: introduce a packet-line test helper 2018-03-14 14:15:07 -07:00
test-prio-queue.c t/helper: merge test-prio-queue into test-tool 2018-03-27 08:45:47 -07:00
test-read-cache.c t/helper: merge test-read-cache into test-tool 2018-03-27 08:45:47 -07:00
test-ref-store.c refs: add repository argument to get_main_ref_store 2018-04-12 11:38:56 +09:00
test-regex.c t/helper: merge test-regex into test-tool 2018-03-27 08:45:47 -07:00
test-revision-walking.c t/helper: merge test-revision-walking into test-tool 2018-03-27 08:45:47 -07:00
test-run-command.c t/helper: merge test-run-command into test-tool 2018-03-27 08:45:47 -07:00
test-scrap-cache-tree.c Merge branch 'ma/lockfile-cleanup' 2018-05-30 14:04:05 +09:00
test-sha1-array.c t/helper: merge test-sha1-array into test-tool 2018-03-27 08:45:47 -07:00
test-sha1.c t/helper: merge test-sha1 into test-tool 2018-03-27 08:45:47 -07:00
test-sha1.sh t/helper: merge test-sha1 into test-tool 2018-03-27 08:45:47 -07:00
test-sigchain.c t/helper: merge test-sigchain into test-tool 2018-03-27 08:45:47 -07:00
test-strcmp-offset.c t/helper: merge test-strcmp-offset into test-tool 2018-03-27 08:45:47 -07:00
test-string-list.c t/helper: merge test-string-list into test-tool 2018-03-27 08:45:47 -07:00
test-submodule-config.c Merge branch 'sb/submodule-move-nested' 2018-05-08 15:59:17 +09:00
test-subprocess.c t/helper: merge test-subprocess into test-tool 2018-03-27 08:45:47 -07:00
test-svn-fe.c
test-tool.c BUG_exit_code: fix sparse "symbol not declared" warning 2018-05-10 18:23:09 +09:00
test-tool.h t/helper: merge test-write-cache into test-tool 2018-03-27 08:45:47 -07:00
test-urlmatch-normalization.c t/helper: merge test-urlmatch-normalization into test-tool 2018-03-27 08:45:47 -07:00
test-wildmatch.c t/helper: merge test-wildmatch into test-tool 2018-03-27 08:45:47 -07:00
test-write-cache.c Merge branch 'ma/lockfile-cleanup' 2018-05-30 14:04:05 +09:00