fpc/tests/tstunits/MPWMake
Jonas Maebe 04df0d537e * more finegrained parallelism support for testsuite runs: the tests are no
longer split per directory, but in chunks of 100 tests (configurable via
    the new CHUNKSIZE=xxx Makefile parameter), which then all can be checked
    in parallel
   o dependencies between tests are handled by always putting tests whose
     name is the same except for the last character into the same chunk
   o as previously, -jx can only be used for the "all" target, other targets
     cannot be executed in parallel
   o the "units" directory has been renamed "tstunits" because otherwise
     "make distclean" will remove it entirely now that the main tests
     makefile also compiles a program

git-svn-id: trunk@21479 -
2012-06-03 17:56:28 +00:00

47 lines
1.0 KiB
Plaintext

FPC = ppcppc
rtl-stamp Ä
Set Exit 0
NewFolder powerpc-macos
Set Exit 1
Set TEMP_FPC `Files -f "{FPC}"`
Set TEMP_OUTDIR "`Directory`powerpc-macos:"
Directory :::rtl:macos
Make all -f MPWMake -d FPC={TEMP_FPC} -d REDIR=-FE'"'{TEMP_OUTDIR}'"' -d OPT={OPT} > Makeout ; Makeout
Directory :::tests:units
Echo Compiled > :rtl-stamp
rtl Ä rtl-stamp
:powerpc-macos:erroru.ppu Ä :erroru.pp
Set Exit 0
NewFolder powerpc-macos
Set Exit 1
"{FPC}" -FE:powerpc-macos: :erroru.pp
:powerpc-macos:ptest.ppu Ä ::test:cg:ptest.pp
Set Exit 0
NewFolder powerpc-macos
Set Exit 1
"{FPC}" -FE:powerpc-macos: ::test:cg:ptest.pp
:powerpc-macos:popuperr.ppu Ä :popuperr.pp
Set Exit 0
NewFolder powerpc-macos
Set Exit 1
"{FPC}" -FE:powerpc-macos: :popuperr.pp
extra Ä :powerpc-macos:erroru.ppu :powerpc-macos:ptest.ppu :powerpc-macos:popuperr.ppu
all Ä rtl extra
cleanrtlfcl Ä
Set Exit 0 # To handle the case, when there is no match
Delete -y powerpc-macos
Delete -y -i rtl-stamp fcl-stamp
Set Exit 1 #Revert error handling
clean Ä cleanrtlfcl