mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 13:49:11 +02:00
* updates necessary for correct uploading of testsuite results under OS/2
git-svn-id: trunk@28828 -
This commit is contained in:
parent
3355d0eea0
commit
47818b38a6
@ -2321,7 +2321,7 @@ clean_sources:
|
|||||||
-$(DEL) $(wildcard $(patsubst %.pp,%$(PPUEXT),$(wildcard $(addsuffix /*.pp,$(DIRS)))))
|
-$(DEL) $(wildcard $(patsubst %.pp,%$(PPUEXT),$(wildcard $(addsuffix /*.pp,$(DIRS)))))
|
||||||
clean_test:
|
clean_test:
|
||||||
-$(DELTREE) $(TEST_OUTPUTDIR)
|
-$(DELTREE) $(TEST_OUTPUTDIR)
|
||||||
-$(DEL) core gmon.out testprep-stamp.$(TEST_FULL_TARGET) dotgz.bat
|
-$(DEL) core gmon.out testprep-stamp.$(TEST_FULL_TARGET) dotgz$(SRCBATCHEXT)
|
||||||
clean: clean_sources fpc_clean
|
clean: clean_sources fpc_clean
|
||||||
$(MAKE) clean_test CPU_TARGET=$(TEST_CPU_TARGET) OS_TARGET=$(TEST_OS_TARGET)
|
$(MAKE) clean_test CPU_TARGET=$(TEST_CPU_TARGET) OS_TARGET=$(TEST_OS_TARGET)
|
||||||
$(MAKE) -C tstunits clean CPU_TARGET=$(TEST_CPU_TARGET) OS_TARGET=$(TEST_OS_TARGET)
|
$(MAKE) -C tstunits clean CPU_TARGET=$(TEST_CPU_TARGET) OS_TARGET=$(TEST_OS_TARGET)
|
||||||
@ -2370,27 +2370,42 @@ TARFROM=--files-from=tar.lst
|
|||||||
endif
|
endif
|
||||||
ifndef inWinDOS
|
ifndef inWinDOS
|
||||||
$(TEST_OUTPUTDIR)/tar.lst:
|
$(TEST_OUTPUTDIR)/tar.lst:
|
||||||
|
ifdef inOS2
|
||||||
|
cd $(subst /,\,$(TEST_OUTPUTDIR)) && gnufind . -name "*.log" -o -name "*.elg" > tar.lst
|
||||||
|
$(ECHOREDIR) log>> $(TEST_OUTPUTDIR)/tar.lst
|
||||||
|
$(ECHOREDIR) dbdigest.cfg>> $(TEST_OUTPUTDIR)/tar.lst
|
||||||
|
else
|
||||||
cd $(TEST_OUTPUTDIR) && find . -name '*.log' -o -name '*.elg' > tar.lst
|
cd $(TEST_OUTPUTDIR) && find . -name '*.log' -o -name '*.elg' > tar.lst
|
||||||
$(ECHOREDIR) "log" >> $(TEST_OUTPUTDIR)/tar.lst
|
$(ECHOREDIR) "log" >> $(TEST_OUTPUTDIR)/tar.lst
|
||||||
$(ECHOREDIR) "dbdigest.cfg" >> $(TEST_OUTPUTDIR)/tar.lst
|
$(ECHOREDIR) "dbdigest.cfg" >> $(TEST_OUTPUTDIR)/tar.lst
|
||||||
|
endif
|
||||||
$(TEST_OUTPUTDIR)/$(DB_TARGZ): $(TEST_OUTPUTDIR)/tar.lst $(TEST_OUTPUTDIR)/dbdigest.cfg
|
$(TEST_OUTPUTDIR)/$(DB_TARGZ): $(TEST_OUTPUTDIR)/tar.lst $(TEST_OUTPUTDIR)/dbdigest.cfg
|
||||||
ifdef inCygWin
|
ifdef inCygWin
|
||||||
dos2unix $(TEST_OUTPUTDIR)/tar.lst
|
dos2unix $(TEST_OUTPUTDIR)/tar.lst
|
||||||
endif
|
endif
|
||||||
|
ifdef inOS2
|
||||||
|
dos2unix $(TEST_OUTPUTDIR)/tar.lst
|
||||||
|
cd $(subst /,\,$(TEST_OUTPUTDIR)) && $(TARPROG) czf $(DB_TARGZ) $(TARFROM)
|
||||||
|
else
|
||||||
cd $(TEST_OUTPUTDIR) && $(TARPROG) czf $(DB_TARGZ) $(TARFROM)
|
cd $(TEST_OUTPUTDIR) && $(TARPROG) czf $(DB_TARGZ) $(TARFROM)
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
$(TEST_OUTPUTDIR)/$(DB_TARGZ): $(TEST_OUTPUTDIR)/dbdigest.cfg
|
$(TEST_OUTPUTDIR)/$(DB_TARGZ): $(TEST_OUTPUTDIR)/dbdigest.cfg
|
||||||
ifdef inDOS
|
ifdef inDOS
|
||||||
$(ECHOREDIR) @echo off > dotgz.bat
|
$(ECHOREDIR) @echo off > dotgz$(SRCBATCHEXT)
|
||||||
$(ECHOREDIR) cd $(subst /,\,$(TEST_OUTPUTDIR)) >> dotgz.bat
|
$(ECHOREDIR) cd $(subst /,\,$(TEST_OUTPUTDIR)) >> dotgz$(SRCBATCHEXT)
|
||||||
$(ECHOREDIR) $(subst /,\,../../$(PREPUP)) $(DB_TARGZ) >> dotgz.bat
|
$(ECHOREDIR) $(subst /,\,../../$(PREPUP)) $(DB_TARGZ) >> dotgz$(SRCBATCHEXT)
|
||||||
$(ECHOREDIR) if errorlevel 1 $(DEL) $(DB_TARGZ) >> dotgz.bat
|
$(ECHOREDIR) if errorlevel 1 $(DEL) $(DB_TARGZ) >> dotgz$(SRCBATCHEXT)
|
||||||
$(ECHOREDIR) cd $(subst /,\,../../) >> dotgz.bat
|
$(ECHOREDIR) cd $(subst /,\,../../) >> dotgz$(SRCBATCHEXT)
|
||||||
$(RUNBATCH) dotgz.bat
|
$(RUNBATCH) dotgz$(SRCBATCHEXT)
|
||||||
|
else
|
||||||
|
ifdef inOS2
|
||||||
|
cd "$(subst /,\,$(TEST_OUTPUTDIR))" && "..\..\$(PREPUP)" $(DB_TARGZ)
|
||||||
else
|
else
|
||||||
cd "$(TEST_OUTPUTDIR)" && "../../$(PREPUP)" $(DB_TARGZ)
|
cd "$(TEST_OUTPUTDIR)" && "../../$(PREPUP)" $(DB_TARGZ)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
ifndef DB_USE_SSH
|
ifndef DB_USE_SSH
|
||||||
ifdef inWinDOS
|
ifdef inWinDOS
|
||||||
UsePutty=1
|
UsePutty=1
|
||||||
@ -2402,8 +2417,12 @@ ifdef UsePutty
|
|||||||
plink -load "fpc@www.freepascal.org" "mv $(DB_UPLOADDIR)/$(DB_TARGZ).part $(DB_UPLOADDIR)/$(DB_TARGZ)"
|
plink -load "fpc@www.freepascal.org" "mv $(DB_UPLOADDIR)/$(DB_TARGZ).part $(DB_UPLOADDIR)/$(DB_TARGZ)"
|
||||||
else
|
else
|
||||||
scp $(DB_SSH_EXTRA) $(TEST_OUTPUTDIR)/$(DB_TARGZ) $(DB_HOST):$(DB_UPLOADDIR)/$(DB_TARGZ).part
|
scp $(DB_SSH_EXTRA) $(TEST_OUTPUTDIR)/$(DB_TARGZ) $(DB_HOST):$(DB_UPLOADDIR)/$(DB_TARGZ).part
|
||||||
|
ifdef inOS2
|
||||||
|
$(ECHOREDIR) . | ssh $(DB_SSH_EXTRA) $(DB_HOST) "mv $(DB_UPLOADDIR)/$(DB_TARGZ).part $(DB_UPLOADDIR)/$(DB_TARGZ)"
|
||||||
|
else
|
||||||
ssh $(DB_SSH_EXTRA) $(DB_HOST) "mv $(DB_UPLOADDIR)/$(DB_TARGZ).part $(DB_UPLOADDIR)/$(DB_TARGZ)"
|
ssh $(DB_SSH_EXTRA) $(DB_HOST) "mv $(DB_UPLOADDIR)/$(DB_TARGZ).part $(DB_UPLOADDIR)/$(DB_TARGZ)"
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
all : allexectests
|
all : allexectests
|
||||||
full :
|
full :
|
||||||
$(MAKE) clean
|
$(MAKE) clean
|
||||||
|
@ -541,7 +541,7 @@ clean_sources:
|
|||||||
|
|
||||||
clean_test:
|
clean_test:
|
||||||
-$(DELTREE) $(TEST_OUTPUTDIR)
|
-$(DELTREE) $(TEST_OUTPUTDIR)
|
||||||
-$(DEL) core gmon.out testprep-stamp.$(TEST_FULL_TARGET) dotgz.bat
|
-$(DEL) core gmon.out testprep-stamp.$(TEST_FULL_TARGET) dotgz$(SRCBATCHEXT)
|
||||||
|
|
||||||
clean: clean_sources fpc_clean
|
clean: clean_sources fpc_clean
|
||||||
$(MAKE) clean_test CPU_TARGET=$(TEST_CPU_TARGET) OS_TARGET=$(TEST_OS_TARGET)
|
$(MAKE) clean_test CPU_TARGET=$(TEST_CPU_TARGET) OS_TARGET=$(TEST_OS_TARGET)
|
||||||
@ -608,29 +608,44 @@ endif
|
|||||||
|
|
||||||
ifndef inWinDOS
|
ifndef inWinDOS
|
||||||
$(TEST_OUTPUTDIR)/tar.lst:
|
$(TEST_OUTPUTDIR)/tar.lst:
|
||||||
|
ifdef inOS2
|
||||||
|
cd $(subst /,\,$(TEST_OUTPUTDIR)) && gnufind . -name "*.log" -o -name "*.elg" > tar.lst
|
||||||
|
$(ECHOREDIR) log>> $(TEST_OUTPUTDIR)/tar.lst
|
||||||
|
$(ECHOREDIR) dbdigest.cfg>> $(TEST_OUTPUTDIR)/tar.lst
|
||||||
|
else
|
||||||
cd $(TEST_OUTPUTDIR) && find . -name '*.log' -o -name '*.elg' > tar.lst
|
cd $(TEST_OUTPUTDIR) && find . -name '*.log' -o -name '*.elg' > tar.lst
|
||||||
$(ECHOREDIR) "log" >> $(TEST_OUTPUTDIR)/tar.lst
|
$(ECHOREDIR) "log" >> $(TEST_OUTPUTDIR)/tar.lst
|
||||||
$(ECHOREDIR) "dbdigest.cfg" >> $(TEST_OUTPUTDIR)/tar.lst
|
$(ECHOREDIR) "dbdigest.cfg" >> $(TEST_OUTPUTDIR)/tar.lst
|
||||||
|
endif
|
||||||
|
|
||||||
$(TEST_OUTPUTDIR)/$(DB_TARGZ): $(TEST_OUTPUTDIR)/tar.lst $(TEST_OUTPUTDIR)/dbdigest.cfg
|
$(TEST_OUTPUTDIR)/$(DB_TARGZ): $(TEST_OUTPUTDIR)/tar.lst $(TEST_OUTPUTDIR)/dbdigest.cfg
|
||||||
ifdef inCygWin
|
ifdef inCygWin
|
||||||
dos2unix $(TEST_OUTPUTDIR)/tar.lst
|
dos2unix $(TEST_OUTPUTDIR)/tar.lst
|
||||||
endif
|
endif
|
||||||
|
ifdef inOS2
|
||||||
|
dos2unix $(TEST_OUTPUTDIR)/tar.lst
|
||||||
|
cd $(subst /,\,$(TEST_OUTPUTDIR)) && $(TARPROG) czf $(DB_TARGZ) $(TARFROM)
|
||||||
|
else
|
||||||
cd $(TEST_OUTPUTDIR) && $(TARPROG) czf $(DB_TARGZ) $(TARFROM)
|
cd $(TEST_OUTPUTDIR) && $(TARPROG) czf $(DB_TARGZ) $(TARFROM)
|
||||||
|
endif
|
||||||
|
|
||||||
else
|
else
|
||||||
$(TEST_OUTPUTDIR)/$(DB_TARGZ): $(TEST_OUTPUTDIR)/dbdigest.cfg
|
$(TEST_OUTPUTDIR)/$(DB_TARGZ): $(TEST_OUTPUTDIR)/dbdigest.cfg
|
||||||
ifdef inDOS
|
ifdef inDOS
|
||||||
$(ECHOREDIR) @echo off > dotgz.bat
|
$(ECHOREDIR) @echo off > dotgz$(SRCBATCHEXT)
|
||||||
$(ECHOREDIR) cd $(subst /,\,$(TEST_OUTPUTDIR)) >> dotgz.bat
|
$(ECHOREDIR) cd $(subst /,\,$(TEST_OUTPUTDIR)) >> dotgz$(SRCBATCHEXT)
|
||||||
$(ECHOREDIR) $(subst /,\,../../$(PREPUP)) $(DB_TARGZ) >> dotgz.bat
|
$(ECHOREDIR) $(subst /,\,../../$(PREPUP)) $(DB_TARGZ) >> dotgz$(SRCBATCHEXT)
|
||||||
$(ECHOREDIR) if errorlevel 1 $(DEL) $(DB_TARGZ) >> dotgz.bat
|
$(ECHOREDIR) if errorlevel 1 $(DEL) $(DB_TARGZ) >> dotgz$(SRCBATCHEXT)
|
||||||
$(ECHOREDIR) cd $(subst /,\,../../) >> dotgz.bat
|
$(ECHOREDIR) cd $(subst /,\,../../) >> dotgz$(SRCBATCHEXT)
|
||||||
$(RUNBATCH) dotgz.bat
|
$(RUNBATCH) dotgz$(SRCBATCHEXT)
|
||||||
|
else
|
||||||
|
ifdef inOS2
|
||||||
|
cd "$(subst /,\,$(TEST_OUTPUTDIR))" && "..\..\$(PREPUP)" $(DB_TARGZ)
|
||||||
else
|
else
|
||||||
cd "$(TEST_OUTPUTDIR)" && "../../$(PREPUP)" $(DB_TARGZ)
|
cd "$(TEST_OUTPUTDIR)" && "../../$(PREPUP)" $(DB_TARGZ)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
# Use Putty, unless we set DB_USE_SSH to force ssh usage
|
# Use Putty, unless we set DB_USE_SSH to force ssh usage
|
||||||
@ -647,8 +662,12 @@ ifdef UsePutty
|
|||||||
plink -load "fpc@www.freepascal.org" "mv $(DB_UPLOADDIR)/$(DB_TARGZ).part $(DB_UPLOADDIR)/$(DB_TARGZ)"
|
plink -load "fpc@www.freepascal.org" "mv $(DB_UPLOADDIR)/$(DB_TARGZ).part $(DB_UPLOADDIR)/$(DB_TARGZ)"
|
||||||
else
|
else
|
||||||
scp $(DB_SSH_EXTRA) $(TEST_OUTPUTDIR)/$(DB_TARGZ) $(DB_HOST):$(DB_UPLOADDIR)/$(DB_TARGZ).part
|
scp $(DB_SSH_EXTRA) $(TEST_OUTPUTDIR)/$(DB_TARGZ) $(DB_HOST):$(DB_UPLOADDIR)/$(DB_TARGZ).part
|
||||||
|
ifdef inOS2
|
||||||
|
$(ECHOREDIR) . | ssh $(DB_SSH_EXTRA) $(DB_HOST) "mv $(DB_UPLOADDIR)/$(DB_TARGZ).part $(DB_UPLOADDIR)/$(DB_TARGZ)"
|
||||||
|
else
|
||||||
ssh $(DB_SSH_EXTRA) $(DB_HOST) "mv $(DB_UPLOADDIR)/$(DB_TARGZ).part $(DB_UPLOADDIR)/$(DB_TARGZ)"
|
ssh $(DB_SSH_EXTRA) $(DB_HOST) "mv $(DB_UPLOADDIR)/$(DB_TARGZ).part $(DB_UPLOADDIR)/$(DB_TARGZ)"
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
all : allexectests
|
all : allexectests
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user