sbsv2/raptor/lib/flm/test/Makefile
changeset 0 044383f39525
child 3 e1eecf4d390d
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     1 ##
       
     2 # Create and check test environment.
       
     3 # build all tests.
       
     4 
       
     5 ## Purpose: Run test makefiles in parallel to ensure that they all work
       
     6 ## Postconditions: All postconditions for all the makefiles are satisfied
       
     7 
       
     8 # Parameters which may be overridden by the environment:
       
     9 RAPTOR_HOME?=/localhome/tmurphy/pf/EPOC/development/tools/personal/tmurphy/tools/raptor
       
    10 # Need elf2e32 etc.
       
    11 RAPTOOLS?=/localhome/tmurphy/raptools/linux86
       
    12 EPOCROOT?=/tmp/tim-epocroot
       
    13 # End of Environment-overridable parameters.
       
    14 
       
    15 #Where are flms located?
       
    16 FLMHOME:=$(RAPTOR_HOME)/lib/flm
       
    17 FLMTESTHOME:=$(FLMHOME)/test
       
    18 SOURCEPATH:=$(FLMHOME)/test
       
    19 
       
    20 
       
    21 .PHONY:: all
       
    22 
       
    23 #### Call all the test makefiles ##############
       
    24 ALLTARGET:=all
       
    25 
       
    26 OUTPUTPATH=$(EPOCROOT)/epoc32/build
       
    27 RELEASEPATH:=$(EPOCROOT)/epoc32/release
       
    28 FULLVARIANTPATH:=ARMV5/UREL
       
    29 
       
    30 include $(FLMHOME)/test/exebasictests.mk
       
    31 
       
    32 include $(FLMHOME)/test/ciatests.mk
       
    33 
       
    34 include $(FLMHOME)/test/exeperftests.mk
       
    35 
       
    36 include $(FLMHOME)/test/dllbasictests.mk
       
    37 
       
    38 ###############################################
       
    39 
       
    40 #EPOCROOT:=
       
    41 SYSTEMSOURCEPATH:=/c/p4_Perforce011666_LON-TIMOTHYM01/EPOC/development/tools/personal/tmurphy/EPOC/master
       
    42 OSNAME:=cedar
       
    43 #include $(FLMHOME)/system.flm
       
    44 
       
    45 flmcheck:: flmtoolscheck
       
    46 	@ERRCOUNT=0; for i in $(FLMHOME)/*.flm; do \
       
    47 		$(FLMHOME)/tools/flmcheck.py  $$i; ERRCOUNT=$$[ $$ERRCOUNT + $$?];  done;  \
       
    48 		echo "flmcheck issued warnings for $$ERRCOUNT  FLMS.";
       
    49 		@true # For the time being this is not a sufficient condition to stop the tests
       
    50 
       
    51 # Run through the flmtools tests to make sure thye work
       
    52 flmtoolscheck::
       
    53 	make -f ../flmtools.mk STANDALONE_TEST:=1 FLMHOME:=$(FLMHOME) test
       
    54 
       
    55 envcheck::
       
    56 	@echo "<envcheck>"
       
    57 	@echo -n "<elf2e32>"; ELF2E32=`which elf2e32`; if [ "$$ELF2E32" == "" ]; then echo -n "elf2e32 not available in the path."; else echo -n "$$ELF2E32"; fi; echo "<elf2e32>"
       
    58 	@echo -n "<make>"; make -v | egrep '^.*GNU Make 3.81.*$$' ; if [ $$? -ne 0 ]; then echo -n "Version of make in the path appears not to be 3.81."; fi; echo "<make>"
       
    59 	@echo -n "<tranasm>"; $$TRANASM | egrep 'tranasm' ; if [ $$? -ne 0 ]; then echo -n "tranasm not found"; fi; echo "<tranasm>"
       
    60 	@echo -n "<epocroot>"; if [ ! -d "$$EPOCROOT" ]; then echo -n "EPOCROOT='$$EPOCROOT' directory not found."; else echo -n "$$EPOCROOT"; fi; echo "</epocroot>"
       
    61 	@echo -n "<raptorhome>"; if [ ! -d "$$RAPTOR_HOME" ]; then echo -n "RAPTOR_HOME='$$RAPTOR_HOME' directory not found."; else echo -n "$$RAPTOR_HOME"; fi; echo "</raptorhome>"
       
    62 	@echo "</envcheck>"
       
    63 
       
    64 	
       
    65 	
       
    66 # END TEST - Check FLMS