summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/Makefile13
-rw-r--r--t/README10
-rw-r--r--t/annotate-tests.sh363
-rw-r--r--t/gitweb-lib.sh2
-rw-r--r--t/lib-rebase.sh121
-rw-r--r--t/lib-t6000.sh106
-rw-r--r--t/perf/README2
-rwxr-xr-xt/perf/p4211-line-log.sh34
-rw-r--r--t/perf/perf-lib.sh7
-rwxr-xr-xt/t0000-basic.sh62
-rwxr-xr-xt/t0001-init.sh4
-rwxr-xr-xt/t0005-signals.sh7
-rwxr-xr-xt/t0008-ignores.sh170
-rwxr-xr-xt/t0009-prio-queue.sh50
-rwxr-xr-xt/t0021-conversion.sh14
-rwxr-xr-xt/t0040-parse-options.sh46
-rwxr-xr-xt/t0060-path-utils.sh72
-rwxr-xr-xt/t1006-cat-file.sh67
-rwxr-xr-xt/t1307-config-blob.sh70
-rwxr-xr-xt/t1403-show-ref.sh167
-rwxr-xr-xt/t1411-reflog-show.sh22
-rwxr-xr-xt/t1508-at-combinations.sh66
-rwxr-xr-xt/t1512-rev-parse-disambiguation.sh18
-rwxr-xr-xt/t1513-rev-parse-prefix.sh96
-rwxr-xr-xt/t2012-checkout-last.sh34
-rwxr-xr-xt/t2024-checkout-dwim.sh6
-rwxr-xr-xt/t2202-add-addremove.sh10
-rwxr-xr-xt/t3010-ls-files-killed-modified.sh50
-rwxr-xr-xt/t3032-merge-recursive-options.sh2
-rwxr-xr-xt/t3200-branch.sh38
-rwxr-xr-xt/t3210-pack-refs.sh33
-rwxr-xr-xt/t3211-peel-ref.sh9
-rwxr-xr-xt/t3400-rebase.sh62
-rwxr-xr-xt/t3401-rebase-partial.sh69
-rwxr-xr-xt/t3403-rebase-skip.sh7
-rwxr-xr-xt/t3404-rebase-interactive.sh151
-rwxr-xr-xt/t3406-rebase-message.sh50
-rwxr-xr-xt/t3409-rebase-preserve-merges.sh62
-rwxr-xr-xt/t3415-rebase-autosquash.sh57
-rwxr-xr-xt/t3420-rebase-autostash.sh170
-rwxr-xr-xt/t3421-rebase-topology-linear.sh350
-rwxr-xr-xt/t3425-rebase-topology-merges.sh258
-rwxr-xr-xt/t3505-cherry-pick-empty.sh18
-rwxr-xr-xt/t3600-rm.sh96
-rwxr-xr-xt/t3900-i18n-commit.sh40
-rw-r--r--t/t3900/UTF-16.txtbin0 -> 146 bytes
-rwxr-xr-xt/t3903-stash.sh29
-rwxr-xr-xt/t4000-diff-format.sh48
-rwxr-xr-xt/t4014-format-patch.sh53
-rwxr-xr-xt/t4015-diff-whitespace.sh345
-rwxr-xr-xt/t4041-diff-submodule-option.sh25
-rwxr-xr-xt/t4150-am.sh40
-rwxr-xr-xt/t4201-shortlog.sh16
-rwxr-xr-xt/t4203-mailmap.sh88
-rwxr-xr-xt/t4205-log-pretty-formats.sh120
-rwxr-xr-xt/t4211-line-log.sh80
-rw-r--r--t/t4211/expect.beginning-of-file43
-rw-r--r--t/t4211/expect.end-of-file62
-rw-r--r--t/t4211/expect.move-support-f80
-rw-r--r--t/t4211/expect.multiple104
-rw-r--r--t/t4211/expect.multiple-overlapping187
-rw-r--r--t/t4211/expect.multiple-superset187
-rw-r--r--t/t4211/expect.parallel-change-f-to-main160
-rw-r--r--t/t4211/expect.simple-f59
-rw-r--r--t/t4211/expect.simple-f-to-main100
-rw-r--r--t/t4211/expect.simple-main68
-rw-r--r--t/t4211/expect.simple-main-to-end70
-rw-r--r--t/t4211/expect.two-ranges102
-rw-r--r--t/t4211/expect.vanishes-early39
-rw-r--r--t/t4211/history.export406
-rwxr-xr-xt/t4212-log-corrupt.sh9
-rwxr-xr-xt/t4254-am-corrupt.sh36
-rwxr-xr-xt/t5303-pack-corruption-resilience.sh29
-rwxr-xr-xt/t5407-post-rewrite-hook.sh4
-rwxr-xr-xt/t5500-fetch-pack.sh27
-rwxr-xr-xt/t5505-remote.sh850
-rwxr-xr-xt/t5510-fetch.sh34
-rwxr-xr-xt/t5521-pull-options.sh26
-rwxr-xr-xt/t5528-push-default.sh65
-rwxr-xr-xt/t5530-upload-pack-error.sh3
-rwxr-xr-xt/t5560-http-backend-noserver.sh2
-rwxr-xr-xt/t5570-git-daemon.sh3
-rwxr-xr-xt/t5601-clone.sh7
-rwxr-xr-xt/t5701-clone-local.sh4
-rwxr-xr-xt/t5702-clone-options.sh10
-rwxr-xr-xt/t5706-clone-branch.sh8
-rwxr-xr-xt/t5710-info-alternate.sh8
-rwxr-xr-xt/t5801-remote-helpers.sh78
-rwxr-xr-xt/t5802-connect-helper.sh72
-rwxr-xr-xt/t6000-rev-list-misc.sh8
-rwxr-xr-xt/t6002-rev-list-bisect.sh84
-rwxr-xr-xt/t6003-rev-list-topo-order.sh101
-rwxr-xr-xt/t6006-rev-list-format.sh208
-rwxr-xr-xt/t6012-rev-list-simplify.sh37
-rwxr-xr-xt/t6019-rev-list-ancestry-path.sh27
-rwxr-xr-xt/t6111-rev-list-treesame.sh196
-rwxr-xr-xt/t6120-describe.sh27
-rwxr-xr-xt/t7102-reset.sh41
-rwxr-xr-xt/t7301-clean-interactive.sh475
-rwxr-xr-xt/t7400-submodule-basic.sh112
-rwxr-xr-xt/t7401-submodule-summary.sh116
-rwxr-xr-xt/t7403-submodule-sync.sh388
-rwxr-xr-xt/t7406-submodule-update.sh70
-rwxr-xr-xt/t7407-submodule-foreach.sh18
-rwxr-xr-xt/t7508-status.sh62
-rwxr-xr-xt/t7512-status-help.sh57
-rwxr-xr-xt/t7600-merge.sh12
-rwxr-xr-xt/t7601-merge-pull-config.sh2
-rwxr-xr-xt/t8001-annotate.sh6
-rwxr-xr-xt/t8002-blame.sh12
-rwxr-xr-xt/t8003-blame-corner-cases.sh6
-rwxr-xr-xt/t9001-send-email.sh49
-rwxr-xr-xt/t9020-remote-svn.sh2
-rwxr-xr-xt/t9112-git-svn-md5less-file.sh2
-rwxr-xr-xt/t9402-git-cvsserver-refs.sh12
-rwxr-xr-xt/t9802-git-p4-filetype.sh6
-rwxr-xr-xt/t9902-completion.sh214
-rwxr-xr-xt/t9903-bash-prompt.sh464
-rw-r--r--t/test-lib-functions.sh18
-rw-r--r--t/test-lib.sh264
-rwxr-xr-xt/valgrind/analyze.sh8
-rwxr-xr-xt/valgrind/valgrind.sh3
122 files changed, 8199 insertions, 1855 deletions
diff --git a/t/Makefile b/t/Makefile
index 44ca7d32dc..2373a04f7a 100644
--- a/t/Makefile
+++ b/t/Makefile
@@ -15,9 +15,16 @@ PROVE ?= prove
DEFAULT_TEST_TARGET ?= test
TEST_LINT ?= test-lint-duplicates test-lint-executable
+ifdef TEST_OUTPUT_DIRECTORY
+TEST_RESULTS_DIRECTORY = $(TEST_OUTPUT_DIRECTORY)/test-results
+else
+TEST_RESULTS_DIRECTORY = test-results
+endif
+
# Shell quote;
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
PERL_PATH_SQ = $(subst ','\'',$(PERL_PATH))
+TEST_RESULTS_DIRECTORY_SQ = $(subst ','\'',$(TEST_RESULTS_DIRECTORY))
T = $(sort $(wildcard t[0-9][0-9][0-9][0-9]-*.sh))
TSVN = $(sort $(wildcard t91[0-9][0-9]-*.sh))
@@ -36,10 +43,10 @@ $(T):
@echo "*** $@ ***"; GIT_CONFIG=.git/config '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
pre-clean:
- $(RM) -r test-results
+ $(RM) -r '$(TEST_RESULTS_DIRECTORY_SQ)'
clean-except-prove-cache:
- $(RM) -r 'trash directory'.* test-results
+ $(RM) -r 'trash directory'.* '$(TEST_RESULTS_DIRECTORY_SQ)'
$(RM) -r valgrind/bin
clean: clean-except-prove-cache
@@ -65,7 +72,7 @@ aggregate-results-and-cleanup: $(T)
$(MAKE) clean
aggregate-results:
- for f in test-results/t*-*.counts; do \
+ for f in '$(TEST_RESULTS_DIRECTORY_SQ)'/t*-*.counts; do \
echo "$$f"; \
done | '$(SHELL_PATH_SQ)' ./aggregate-results.sh
diff --git a/t/README b/t/README
index ec52468861..2167125008 100644
--- a/t/README
+++ b/t/README
@@ -76,6 +76,11 @@ appropriately before running "make".
command being run and their output if any are also
output.
+--verbose-only=<pattern>::
+ Like --verbose, but the effect is limited to tests with
+ numbers matching <pattern>. The number matched against is
+ simply the running count of the test within the file.
+
--debug::
This may help the person who is developing a new test.
It causes the command defined with test_debug to run.
@@ -121,6 +126,11 @@ appropriately before running "make".
the 't/valgrind/' directory and