mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
![Jeff King](/assets/img/avatar_default.png)
The current test suite is good at letting you test a particular version of Git. But it's not very good at letting you test _two_ versions and seeing how they interact (e.g., one cloning from the other). This commit adds a test harness that will build two arbitrary versions of git and make it easy to call them from inside your tests. See the README and the example script for details. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
17 lines
328 B
Makefile
17 lines
328 B
Makefile
-include ../../config.mak
|
|
export GIT_TEST_OPTIONS
|
|
|
|
SHELL_PATH ?= $(SHELL)
|
|
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
|
|
T = $(sort $(wildcard i[0-9][0-9][0-9][0-9]-*.sh))
|
|
|
|
all: $(T)
|
|
|
|
$(T):
|
|
@echo "*** $@ ***"; '$(SHELL_PATH_SQ)' $@ $(GIT_TEST_OPTS)
|
|
|
|
clean:
|
|
rm -rf build "trash directory".* test-results
|
|
|
|
.PHONY: all clean $(T)
|