mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 21:09:24 +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)))))
|
||||
clean_test:
|
||||
-$(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
|
||||
$(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)
|
||||
@ -2370,27 +2370,42 @@ TARFROM=--files-from=tar.lst
|
||||
endif
|
||||
ifndef inWinDOS
|
||||
$(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
|
||||
$(ECHOREDIR) "log" >> $(TEST_OUTPUTDIR)/tar.lst
|
||||
$(ECHOREDIR) "dbdigest.cfg" >> $(TEST_OUTPUTDIR)/tar.lst
|
||||
endif
|
||||
$(TEST_OUTPUTDIR)/$(DB_TARGZ): $(TEST_OUTPUTDIR)/tar.lst $(TEST_OUTPUTDIR)/dbdigest.cfg
|
||||
ifdef inCygWin
|
||||
dos2unix $(TEST_OUTPUTDIR)/tar.lst
|
||||
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)
|
||||
endif
|
||||
else
|
||||
$(TEST_OUTPUTDIR)/$(DB_TARGZ): $(TEST_OUTPUTDIR)/dbdigest.cfg
|
||||
ifdef inDOS
|
||||
$(ECHOREDIR) @echo off > dotgz.bat
|
||||
$(ECHOREDIR) cd $(subst /,\,$(TEST_OUTPUTDIR)) >> dotgz.bat
|
||||
$(ECHOREDIR) $(subst /,\,../../$(PREPUP)) $(DB_TARGZ) >> dotgz.bat
|
||||
$(ECHOREDIR) if errorlevel 1 $(DEL) $(DB_TARGZ) >> dotgz.bat
|
||||
$(ECHOREDIR) cd $(subst /,\,../../) >> dotgz.bat
|
||||
$(RUNBATCH) dotgz.bat
|
||||
$(ECHOREDIR) @echo off > dotgz$(SRCBATCHEXT)
|
||||
$(ECHOREDIR) cd $(subst /,\,$(TEST_OUTPUTDIR)) >> dotgz$(SRCBATCHEXT)
|
||||
$(ECHOREDIR) $(subst /,\,../../$(PREPUP)) $(DB_TARGZ) >> dotgz$(SRCBATCHEXT)
|
||||
$(ECHOREDIR) if errorlevel 1 $(DEL) $(DB_TARGZ) >> dotgz$(SRCBATCHEXT)
|
||||
$(ECHOREDIR) cd $(subst /,\,../../) >> dotgz$(SRCBATCHEXT)
|
||||
$(RUNBATCH) dotgz$(SRCBATCHEXT)
|
||||
else
|
||||
ifdef inOS2
|
||||
cd "$(subst /,\,$(TEST_OUTPUTDIR))" && "..\..\$(PREPUP)" $(DB_TARGZ)
|
||||
else
|
||||
cd "$(TEST_OUTPUTDIR)" && "../../$(PREPUP)" $(DB_TARGZ)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
ifndef DB_USE_SSH
|
||||
ifdef inWinDOS
|
||||
UsePutty=1
|
||||
@ -2402,8 +2417,12 @@ ifdef UsePutty
|
||||
plink -load "fpc@www.freepascal.org" "mv $(DB_UPLOADDIR)/$(DB_TARGZ).part $(DB_UPLOADDIR)/$(DB_TARGZ)"
|
||||
else
|
||||
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)"
|
||||
endif
|
||||
endif
|
||||
all : allexectests
|
||||
full :
|
||||
$(MAKE) clean
|
||||
|
@ -541,7 +541,7 @@ clean_sources:
|
||||
|
||||
clean_test:
|
||||
-$(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
|
||||
$(MAKE) clean_test CPU_TARGET=$(TEST_CPU_TARGET) OS_TARGET=$(TEST_OS_TARGET)
|
||||
@ -608,29 +608,44 @@ endif
|
||||
|
||||
ifndef inWinDOS
|
||||
$(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
|
||||
$(ECHOREDIR) "log" >> $(TEST_OUTPUTDIR)/tar.lst
|
||||
$(ECHOREDIR) "dbdigest.cfg" >> $(TEST_OUTPUTDIR)/tar.lst
|
||||
endif
|
||||
|
||||
$(TEST_OUTPUTDIR)/$(DB_TARGZ): $(TEST_OUTPUTDIR)/tar.lst $(TEST_OUTPUTDIR)/dbdigest.cfg
|
||||
ifdef inCygWin
|
||||
dos2unix $(TEST_OUTPUTDIR)/tar.lst
|
||||
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)
|
||||
endif
|
||||
|
||||
else
|
||||
$(TEST_OUTPUTDIR)/$(DB_TARGZ): $(TEST_OUTPUTDIR)/dbdigest.cfg
|
||||
ifdef inDOS
|
||||
$(ECHOREDIR) @echo off > dotgz.bat
|
||||
$(ECHOREDIR) cd $(subst /,\,$(TEST_OUTPUTDIR)) >> dotgz.bat
|
||||
$(ECHOREDIR) $(subst /,\,../../$(PREPUP)) $(DB_TARGZ) >> dotgz.bat
|
||||
$(ECHOREDIR) if errorlevel 1 $(DEL) $(DB_TARGZ) >> dotgz.bat
|
||||
$(ECHOREDIR) cd $(subst /,\,../../) >> dotgz.bat
|
||||
$(RUNBATCH) dotgz.bat
|
||||
$(ECHOREDIR) @echo off > dotgz$(SRCBATCHEXT)
|
||||
$(ECHOREDIR) cd $(subst /,\,$(TEST_OUTPUTDIR)) >> dotgz$(SRCBATCHEXT)
|
||||
$(ECHOREDIR) $(subst /,\,../../$(PREPUP)) $(DB_TARGZ) >> dotgz$(SRCBATCHEXT)
|
||||
$(ECHOREDIR) if errorlevel 1 $(DEL) $(DB_TARGZ) >> dotgz$(SRCBATCHEXT)
|
||||
$(ECHOREDIR) cd $(subst /,\,../../) >> dotgz$(SRCBATCHEXT)
|
||||
$(RUNBATCH) dotgz$(SRCBATCHEXT)
|
||||
else
|
||||
ifdef inOS2
|
||||
cd "$(subst /,\,$(TEST_OUTPUTDIR))" && "..\..\$(PREPUP)" $(DB_TARGZ)
|
||||
else
|
||||
cd "$(TEST_OUTPUTDIR)" && "../../$(PREPUP)" $(DB_TARGZ)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
# 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)"
|
||||
else
|
||||
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)"
|
||||
endif
|
||||
endif
|
||||
|
||||
all : allexectests
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user