mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-17 04:40:34 +01:00
+ added check if COMSPEC returns error code
This commit is contained in:
parent
dfb2918780
commit
e1d40d471a
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Don't edit, this file is generated by FPCMake Version 1.1 [2002/12/15]
|
# Don't edit, this file is generated by FPCMake Version 1.1 [2002/12/17]
|
||||||
#
|
#
|
||||||
default: allexectests
|
default: allexectests
|
||||||
MAKEFILETARGETS=linux go32v2 win32 os2 freebsd beos netbsd amiga atari sunos qnx netware openbsd wdosx
|
MAKEFILETARGETS=linux go32v2 win32 os2 freebsd beos netbsd amiga atari sunos qnx netware openbsd wdosx
|
||||||
@ -1078,6 +1078,14 @@ units/$(FPCMADE):
|
|||||||
DOTEST=./dotest$(EXEEXT)
|
DOTEST=./dotest$(EXEEXT)
|
||||||
$(DOTEST) : units utils/dotest.pp utils/redir.pp utils/teststr.pp
|
$(DOTEST) : units utils/dotest.pp utils/redir.pp utils/teststr.pp
|
||||||
$(FPC) -n -Fuunits -FE. utils/dotest.pp
|
$(FPC) -n -Fuunits -FE. utils/dotest.pp
|
||||||
|
$(FPC) -n -Fuunits -FE. utils/fail.pp
|
||||||
|
$(FPC) -n -Fuunits -FE. utils/testfail.pp
|
||||||
|
ifneq ($(wildcard ./testfail$(SRCEXEEXT)),)
|
||||||
|
TESTCOMSPECRES:=$(shell ./testfail$(SRCEXEEXT))
|
||||||
|
endif
|
||||||
|
ifneq ($(TESTCOMSPECRES),)
|
||||||
|
NOCOMSPEC=1
|
||||||
|
endif
|
||||||
DIGEST=./digest$(EXEEXT)
|
DIGEST=./digest$(EXEEXT)
|
||||||
$(DIGEST) : units utils/digest.pp utils/teststr.pp
|
$(DIGEST) : units utils/digest.pp utils/teststr.pp
|
||||||
$(FPC) -n -Fuunits -FE. utils/digest.pp
|
$(FPC) -n -Fuunits -FE. utils/digest.pp
|
||||||
@ -1094,7 +1102,10 @@ ifdef INTERACTIVE
|
|||||||
override DOTESTOPT+=-i
|
override DOTESTOPT+=-i
|
||||||
endif
|
endif
|
||||||
ifdef DOALL
|
ifdef DOALL
|
||||||
override DOTESTOPT=-a
|
override DOTESTOPT+=-a
|
||||||
|
endif
|
||||||
|
ifdef NOCOMSPEC
|
||||||
|
override DOTESTOPT+=-x
|
||||||
endif
|
endif
|
||||||
DIRS=webtbs webtbf tbs tbf test test/cg test/units/system test/units/dos test/units/objects
|
DIRS=webtbs webtbf tbs tbf test test/cg test/units/system test/units/dos test/units/objects
|
||||||
%.log : %.pp $(DOTEST)
|
%.log : %.pp $(DOTEST)
|
||||||
@ -1168,6 +1179,9 @@ info :
|
|||||||
@echo " onlygraph - run only graph tests"
|
@echo " onlygraph - run only graph tests"
|
||||||
@echo " onlyinteractive - run only interactive tests"
|
@echo " onlyinteractive - run only interactive tests"
|
||||||
@echo Done using FPC=$(FPC)
|
@echo Done using FPC=$(FPC)
|
||||||
|
ifdef COMSPEC
|
||||||
|
@echo And using COMSPEC=$(COMSPEC)
|
||||||
|
endif
|
||||||
override DATESUFFIX:=$(shell $(DATE) +%Y.%m.%d)
|
override DATESUFFIX:=$(shell $(DATE) +%Y.%m.%d)
|
||||||
ifneq ($(wildcard log.$(DATESUFFIX)),)
|
ifneq ($(wildcard log.$(DATESUFFIX)),)
|
||||||
override DATESUFFIX=$(shell $(DATE) +%Y.%m.%d.%H.%M)
|
override DATESUFFIX=$(shell $(DATE) +%Y.%m.%d.%H.%M)
|
||||||
|
|||||||
@ -61,6 +61,16 @@ units/$(FPCMADE):
|
|||||||
DOTEST=./dotest$(EXEEXT)
|
DOTEST=./dotest$(EXEEXT)
|
||||||
$(DOTEST) : units utils/dotest.pp utils/redir.pp utils/teststr.pp
|
$(DOTEST) : units utils/dotest.pp utils/redir.pp utils/teststr.pp
|
||||||
$(FPC) -n -Fuunits -FE. utils/dotest.pp
|
$(FPC) -n -Fuunits -FE. utils/dotest.pp
|
||||||
|
$(FPC) -n -Fuunits -FE. utils/fail.pp
|
||||||
|
$(FPC) -n -Fuunits -FE. utils/testfail.pp
|
||||||
|
|
||||||
|
ifneq ($(wildcard ./testfail$(SRCEXEEXT)),)
|
||||||
|
TESTCOMSPECRES:=$(shell ./testfail$(SRCEXEEXT))
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ($(TESTCOMSPECRES),)
|
||||||
|
NOCOMSPEC=1
|
||||||
|
endif
|
||||||
|
|
||||||
DIGEST=./digest$(EXEEXT)
|
DIGEST=./digest$(EXEEXT)
|
||||||
$(DIGEST) : units utils/digest.pp utils/teststr.pp
|
$(DIGEST) : units utils/digest.pp utils/teststr.pp
|
||||||
@ -87,7 +97,11 @@ override DOTESTOPT+=-i
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifdef DOALL
|
ifdef DOALL
|
||||||
override DOTESTOPT=-a
|
override DOTESTOPT+=-a
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef NOCOMSPEC
|
||||||
|
override DOTESTOPT+=-x
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
@ -216,6 +230,9 @@ info :
|
|||||||
@echo " onlygraph - run only graph tests"
|
@echo " onlygraph - run only graph tests"
|
||||||
@echo " onlyinteractive - run only interactive tests"
|
@echo " onlyinteractive - run only interactive tests"
|
||||||
@echo Done using FPC=$(FPC)
|
@echo Done using FPC=$(FPC)
|
||||||
|
ifdef COMSPEC
|
||||||
|
@echo And using COMSPEC=$(COMSPEC)
|
||||||
|
endif
|
||||||
|
|
||||||
override DATESUFFIX:=$(shell $(DATE) +%Y.%m.%d)
|
override DATESUFFIX:=$(shell $(DATE) +%Y.%m.%d)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user