aboutsummaryrefslogtreecommitdiff
path: root/t/Makefile
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2008-08-08 13:08:37 +0200
committerJunio C Hamano <gitster@pobox.com>2008-08-08 22:24:28 -0700
commitabc5d372ec242fc654dc6780df6ea3d63dc72f2f (patch)
treeab7dc98b9d8ffbfd4d8c6624bbd1a520d11f6a08 /t/Makefile
parente3df89a4b167c2ca0bd2b0a0025fd16c4d3dd651 (diff)
downloadgit-abc5d372ec242fc654dc6780df6ea3d63dc72f2f.tar.gz
git-abc5d372ec242fc654dc6780df6ea3d63dc72f2f.tar.xz
Enable parallel tests
On multiprocessor machines, or with I/O heavy tests (that leave the CPU waiting a lot), it makes sense to parallelize the tests. However, care has to be taken that the different jobs use different trash directories. This commit does so, by creating the trash directories with a suffix that is unique with regard to the test, as it is the test's base name. Further, the trash directory is removed in the test itself if everything went fine, so that the trash directories do not pile up only to be removed at the very end. If a test failed, the trash directory is not removed. Chances are that the exact error message is lost in the clutter, but you can still see what test failed from the name of the trash directory, and repeat the test (without -j). If all was good, you will see the aggregated results. Suggestions to simplify this commit came from Junio and René. There still is an issue with tests that want to run a server process and listen to a fixed port (http and svn) --- they cannot run in parallel but this patch does not address this issue. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/Makefile')
-rw-r--r--t/Makefile1
1 files changed, 0 insertions, 1 deletions
diff --git a/t/Makefile b/t/Makefile
index aa952e1c5..ed49c20b1 100644
--- a/t/Makefile
+++ b/t/Makefile
@@ -39,4 +39,3 @@ full-svn-test:
$(MAKE) $(TSVN) GIT_SVN_NO_OPTIMIZE_COMMITS=0 LC_ALL=en_US.UTF-8
.PHONY: pre-clean $(T) aggregate-results clean
-.NOTPARALLEL: