WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 31038e3

Browse files
dschoGit for Windows Build Agent
authored andcommitted
mingw: remove the Makefile target to install test artifacts
It is still one of the really vexing quirks of Git's test suite that it requires executables that are not installed via the `install` target. To be able to validate MinGit, I introduced a Makefile target once upon a time to address that omission so as to be able to run the test suite on any installed Git version by bundling the test suite together with those test-supporting executables. However, I never got around to upstream this because the principal reason (moving toward a BusyBox-backed MinGit) went away: BusyBox-w32 is simply not maintained in a confidence-inducing manner and therefore I all but abandoned that initiative. Therefore, this Makefile target is not in a good shape, and it's time to let it go. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 519d6a6 commit 31038e3

File tree

1 file changed

+0
-51
lines changed

1 file changed

+0
-51
lines changed

config.mak.uname

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -780,57 +780,6 @@ ifeq ($(uname_S),MINGW)
780780
ETC_GITCONFIG = ../etc/gitconfig
781781
ETC_GITATTRIBUTES = ../etc/gitattributes
782782
endif
783-
MINGW_PREFIX := $(subst /,,$(prefix))
784-
785-
DESTDIR_WINDOWS = $(shell cygpath -aw '$(DESTDIR_SQ)')
786-
DESTDIR_MIXED = $(shell cygpath -am '$(DESTDIR_SQ)')
787-
install-mingit-test-artifacts:
788-
install -m755 -d '$(DESTDIR_SQ)/usr/bin'
789-
printf '%s\n%s\n' >'$(DESTDIR_SQ)/usr/bin/perl' \
790-
"#!/mingw64/bin/busybox sh" \
791-
"exec \"$(shell cygpath -am /usr/bin/perl.exe)\" \"\$$@\""
792-
793-
install -m755 -d '$(DESTDIR_SQ)'
794-
printf '%s%s\n%s\n%s\n%s\n%s\n' >'$(DESTDIR_SQ)/init.bat' \
795-
"PATH=$(DESTDIR_WINDOWS)\\$(MINGW_PREFIX)\\bin;" \
796-
"C:\\WINDOWS;C:\\WINDOWS\\system32" \
797-
"@set GIT_TEST_INSTALLED=$(DESTDIR_MIXED)/$(MINGW_PREFIX)/bin" \
798-
"@`echo "$(DESTDIR_WINDOWS)" | sed 's/:.*/:/'`" \
799-
"@cd `echo "$(DESTDIR_WINDOWS)" | sed 's/^.://'`\\test-git\\t" \
800-
"@echo Now, run 'helper\\test-run-command testsuite'"
801-
802-
install -m755 -d '$(DESTDIR_SQ)/test-git'
803-
sed 's/^\(NO_PERL\|NO_PYTHON\)=.*/\1=YesPlease/' \
804-
<GIT-BUILD-OPTIONS >'$(DESTDIR_SQ)/test-git/GIT-BUILD-OPTIONS'
805-
806-
install -m755 -d '$(DESTDIR_SQ)/test-git/t/helper'
807-
install -m755 $(TEST_PROGRAMS) '$(DESTDIR_SQ)/test-git/t/helper'
808-
(cd t && $(TAR) cf - t[0-9][0-9][0-9][0-9] lib-diff) | \
809-
(cd '$(DESTDIR_SQ)/test-git/t' && $(TAR) xf -)
810-
install -m755 t/t556x_common t/*.sh '$(DESTDIR_SQ)/test-git/t'
811-
812-
install -m755 -d '$(DESTDIR_SQ)/test-git/templates'
813-
(cd templates && $(TAR) cf - blt) | \
814-
(cd '$(DESTDIR_SQ)/test-git/templates' && $(TAR) xf -)
815-
816-
# po/build/locale for t0200
817-
install -m755 -d '$(DESTDIR_SQ)/test-git/po/build/locale'
818-
(cd po/build/locale && $(TAR) cf - .) | \
819-
(cd '$(DESTDIR_SQ)/test-git/po/build/locale' && $(TAR) xf -)
820-
821-
# git-daemon.exe for t5802, git-http-backend.exe for t5560
822-
install -m755 -d '$(DESTDIR_SQ)/$(MINGW_PREFIX)/bin'
823-
install -m755 git-daemon.exe git-http-backend.exe \
824-
'$(DESTDIR_SQ)/$(MINGW_PREFIX)/bin'
825-
826-
# git-upload-archive (dashed) for t5000
827-
install -m755 -d '$(DESTDIR_SQ)/$(MINGW_PREFIX)/bin'
828-
install -m755 git-upload-archive.exe '$(DESTDIR_SQ)/$(MINGW_PREFIX)/bin'
829-
830-
# git-difftool--helper for t7800
831-
install -m755 -d '$(DESTDIR_SQ)/$(MINGW_PREFIX)/libexec/git-core'
832-
install -m755 git-difftool--helper \
833-
'$(DESTDIR_SQ)/$(MINGW_PREFIX)/libexec/git-core'
834783
endif
835784
ifeq ($(uname_S),QNX)
836785
COMPAT_CFLAGS += -DSA_RESTART=0

0 commit comments

Comments
 (0)