Re: [PATCH 3/3] Enable parallel tests
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:07
Johannes Schindelin [off-list ref] writes:
On multiprocessor machines, or with I/O heavy tests (that leave the CPU waiting a lot), it makes sense to parallelize the tests.
I was actually thinking about doing this eventually. Thanks for beating me to it.
Parallel mode also triggers removal of the trash directory 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.
I think making the tests remove their own mess makes sense regardless. I have to wonder why you would want to make this change conditional on MAKEFLAGS. I was envisioning that parallel tests would run in "trash directory/$(basename $0)" or something. Are there downsides of doing this change unconditionally?
clean: - $(RM) -r 'trash directory' test-results + $(RM) -rf 'trash directory' test-results
This is not needed, I think, as RM is defined with -f already.