$!----------------------------------------------------------------------------- $! BUILD_TESTS.COM $! $! 10-MAY-2018 MGD Expat v2.2.5 $! 15-APR-2005 MGD initial $!----------------------------------------------------------------------------- $! $ VMS_VERSION = F$GETSYI("VERSION") $ VMS_VERSION = F$INTEGER(F$EXTRACT(1,1,VMS_VERSION)) * 10 +- F$INTEGER(F$EXTRACT(3,1,VMS_VERSION)) $! $ WRITE SYS$OUTPUT "" $ WRITE SYS$OUTPUT "Building ""TESTS"" for ""''F$GETSYI("ARCH_NAME")'""" $! $ ARCH_NAME = F$EDIT(F$GETSYI("ARCH_NAME"),"UPCASE") $ IF ARCH_NAME .EQS. "ALPHA" THEN ARCH_NAME = "AXP" $! $ IF F$SEARCH("OBJ_''ARCH_NAME'.DIR") .EQS. "" - THEN CREATE/DIR [.OBJ_'ARCH_NAME'] $ OBJECT_DIR = "[.OBJ_''ARCH_NAME']" $! $ IF P1 .NES. "LINK" .OR. P1 .EQS. "REMOVE" $ THEN $ DELETE = "DELETE/LOG" $ DELETE 'OBJECT_DIR'CHARDATA.OBJ;* $ DELETE 'OBJECT_DIR'MEMCHECK.OBJ;* $ DELETE 'OBJECT_DIR'MINICHECK.OBJ;* $ DELETE 'OBJECT_DIR'RUNTESTS.OBJ;* $ DELETE 'OBJECT_DIR'STRUCTDATA.OBJ;* $ DELETE 'OBJECT_DIR'RUNTESTS.EXE;* $ DELETE 'OBJECT_DIR'BENCHMARK.EXE;* $ IF P1 .EQS. "REMOVE" $ THEN $ DELETE CHARDATA.C;* $ DELETE CHARDATA.H;* $ DELETE MINICHECK.C;* $ DELETE MINICHECK.H;* $ DELETE RUNTESTS.C;* $ DELETE BENCHMARK.C;* $ DELETE REC-XML-20060816.XML;* $ SPAWN /WAIT DELETE BUILD_TESTS.COM;* $ EXIT $ ENDIF $ ENDIF $! $ CC_OPTIONS = " /INCLUDE=([])" $ CC_DEFINES = " /DEFINE=(HAVE_EXPAT_CONFIG_H,EXPAT_VMS_V6)" $! $ IF P1 .NES. "LINK" $ THEN $ SET VERIFY $ CC 'CC_OPTIONS' 'CC_DEFINES' /OBJ='OBJECT_DIR' BENCHMARK.C $ CC 'CC_OPTIONS' 'CC_DEFINES' /OBJ='OBJECT_DIR' CHARDATA.C $ CC 'CC_OPTIONS' 'CC_DEFINES' /OBJ='OBJECT_DIR' MEMCHECK.C $ CC 'CC_OPTIONS' 'CC_DEFINES' /OBJ='OBJECT_DIR' MINICHECK.C $ CC 'CC_OPTIONS' 'CC_DEFINES' /OBJ='OBJECT_DIR' RUNTESTS.C $ CC 'CC_OPTIONS' 'CC_DEFINES' /OBJ='OBJECT_DIR' STRUCTDATA.C $! F$VERIFY(0) $ ENDIF $! $ IF P1 .EQS. "" .OR. P1 .EQS. "LINK" $ THEN $ SET VERIFY $ LINK 'OBJECT_DIR'RUNTESTS,CHARDATA,MEMCHECK,MINICHECK,STRUCTDATA,XMLPARSE,XMLROLE,XMLTOK - /EXE='OBJECT_DIR'RUNTESTS.EXE $ LINK 'OBJECT_DIR'BENCHMARK,XMLPARSE,XMLROLE,XMLTOK - /EXE='OBJECT_DIR'BENCHMARK.EXE $! F$VERIFY(0) $ ENDIF $! $!-----------------------------------------------------------------------------