| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <project name="mcf-test-build"> |
| |
| <import file="../common-build.xml"/> |
| |
| <target name="clean"> |
| <delete dir="build"/> |
| <delete dir="test-derby-output"/> |
| <delete dir="test-postgresql-output"/> |
| <delete dir="test-mysql-output"/> |
| <delete dir="test-HSQLDB-output"/> |
| <delete dir="test-HSQLDBext-output"/> |
| </target> |
| |
| <path id="framework-classpath"> |
| <fileset dir="../../lib"> |
| <include name="json*.jar"/> |
| <include name="commons-codec*.jar"/> |
| <include name="commons-collections*.jar"/> |
| <include name="commons-el*.jar"/> |
| <include name="commons-fileupload*.jar"/> |
| <include name="commons-httpclient*.jar"/> |
| <include name="commons-io*.jar"/> |
| <include name="commons-lang*.jar"/> |
| <include name="commons-logging*.jar"/> |
| <include name="ecj*.jar"/> |
| <include name="jasper*.jar"/> |
| <include name="jetty*.jar"/> |
| <include name="slf4j*.jar"/> |
| <include name="jsp-2.1*.jar"/> |
| <include name="jsp-api*.jar"/> |
| <include name="junit*.jar"/> |
| <include name="log4j*.jar"/> |
| <include name="serializer*.jar"/> |
| <include name="servlet-api*.jar"/> |
| <include name="juli*.jar"/> |
| <include name="xalan*.jar"/> |
| <include name="xercesImpl*.jar"/> |
| <include name="xml-apis*.jar"/> |
| <include name="velocity*.jar"/> |
| </fileset> |
| <fileset dir="../../lib"> |
| <include name="postgresql*.jar"/> |
| <include name="derby*.jar"/> |
| <include name="hsqldb*.jar"/> |
| </fileset> |
| <fileset dir="../../lib-proprietary"> |
| <include name="mysql*.jar"/> |
| </fileset> |
| |
| </path> |
| |
| <path id="mcf-test-build.test-classpath"> |
| <path refid="framework-classpath"/> |
| <fileset dir="../../framework/build/jar"> |
| <include name="*.jar"/> |
| </fileset> |
| <fileset dir="../../framework/build/test-jar"> |
| <include name="*.jar"/> |
| </fileset> |
| <fileset dir="../../connectors/${ant.project.name}/dist/lib"> |
| <include name="*.jar"/> |
| </fileset> |
| <fileset dir="../../connectors/${ant.project.name}/build/test-jar"> |
| <include name="*.jar"/> |
| </fileset> |
| </path> |
| |
| <path id="test-classpath"> |
| <path refid="mcf-test-build.test-classpath"/> |
| </path> |
| |
| <target name="has-resources-check"> |
| <available file="src/test/resources" property="hasResources"/> |
| </target> |
| |
| <target name="compile-test-resources" depends="has-resources-check" if="hasResources"> |
| <mkdir dir="build/test/classes"/> |
| <copy todir="build/test/classes"> |
| <fileset dir="src/test/resources"/> |
| </copy> |
| </target> |
| |
| <target name="compile-tests" depends="compile-test-resources"> |
| <mkdir dir="build/test/classes"/> |
| <javac srcdir="src/test/java" destdir="build/test/classes" target="1.6" source="1.6" debug="true" debuglevel="lines,vars,source"> |
| <classpath> |
| <path refid="test-classpath"/> |
| </classpath> |
| </javac> |
| </target> |
| |
| <target name="run-derby" depends="compile-tests"> |
| <mkdir dir="test-derby-output"/> |
| <junit fork="true" maxmemory="128m" dir="test-derby-output" outputtoformatters="true" showoutput="true" haltonfailure="true"> |
| <jvmarg value="-DcrawlerWarPath=../../../framework/build/war-proprietary/mcf-crawler-ui.war"/> |
| <jvmarg value="-DauthorityserviceWarPath=../../../framework/build/war-proprietary/mcf-authority-service.war"/> |
| <jvmarg value="-DapiWarPath=../../../framework/build/war-proprietary/mcf-api-service.war"/> |
| <classpath> |
| <path refid="test-classpath"/> |
| <pathelement location="build/test/classes"/> |
| </classpath> |
| <formatter type="brief" usefile="false"/> |
| <batchtest todir="test-derby-output"> |
| <fileset dir="build/test/classes"> |
| <include name="**/*DerbyIT.class"/> |
| </fileset> |
| </batchtest> |
| </junit> |
| </target> |
| |
| <target name="run-postgresql" depends="compile-tests"> |
| <mkdir dir="test-postgresql-output"/> |
| <junit fork="true" maxmemory="128m" dir="test-postgresql-output" outputtoformatters="true" showoutput="true" haltonfailure="true"> |
| <jvmarg value="-DcrawlerWarPath=../../../framework/build/war-proprietary/mcf-crawler-ui.war"/> |
| <jvmarg value="-DauthorityserviceWarPath=../../../framework/build/war-proprietary/mcf-authority-service.war"/> |
| <jvmarg value="-DapiWarPath=../../../framework/build/war-proprietary/mcf-api-service.war"/> |
| <classpath> |
| <path refid="test-classpath"/> |
| <pathelement location="build/test/classes"/> |
| </classpath> |
| <formatter type="brief" usefile="false"/> |
| <batchtest todir="test-postgresql-output"> |
| <fileset dir="build/test/classes"> |
| <include name="**/*PostgresqlIT.class"/> |
| </fileset> |
| </batchtest> |
| </junit> |
| </target> |
| |
| <target name="run-HSQLDB" depends="compile-tests"> |
| <mkdir dir="test-HSQLDB-output"/> |
| <junit fork="true" maxmemory="128m" dir="test-HSQLDB-output" outputtoformatters="true" showoutput="true" haltonfailure="true"> |
| <jvmarg value="-DcrawlerWarPath=../../../framework/build/war-proprietary/mcf-crawler-ui.war"/> |
| <jvmarg value="-DauthorityserviceWarPath=../../../framework/build/war-proprietary/mcf-authority-service.war"/> |
| <jvmarg value="-DapiWarPath=../../../framework/build/war-proprietary/mcf-api-service.war"/> |
| <classpath> |
| <path refid="test-classpath"/> |
| <pathelement location="build/test/classes"/> |
| </classpath> |
| <formatter type="brief" usefile="false"/> |
| <batchtest todir="test-HSQLDB-output"> |
| <fileset dir="build/test/classes"> |
| <include name="**/*HSQLDBIT.class"/> |
| </fileset> |
| </batchtest> |
| </junit> |
| </target> |
| |
| <target name="run-HSQLDBext" depends="compile-tests"> |
| <mkdir dir="test-HSQLDBext-output"/> |
| <junit fork="true" maxmemory="128m" dir="test-HSQLDBext-output" outputtoformatters="true" showoutput="true" haltonfailure="true"> |
| <jvmarg value="-DcrawlerWarPath=../../../framework/build/war-proprietary/mcf-crawler-ui.war"/> |
| <jvmarg value="-DauthorityserviceWarPath=../../../framework/build/war-proprietary/mcf-authority-service.war"/> |
| <jvmarg value="-DapiWarPath=../../../framework/build/war-proprietary/mcf-api-service.war"/> |
| <classpath> |
| <path refid="test-classpath"/> |
| <pathelement location="build/test/classes"/> |
| </classpath> |
| <formatter type="brief" usefile="false"/> |
| <batchtest todir="test-HSQLDBext-output"> |
| <fileset dir="build/test/classes"> |
| <include name="**/*HSQLDBextIT.class"/> |
| </fileset> |
| </batchtest> |
| </junit> |
| </target> |
| |
| <target name="run-mysql" depends="compile-tests"> |
| <mkdir dir="test-mysql-output"/> |
| <junit fork="true" maxmemory="128m" dir="test-mysql-output" outputtoformatters="true" showoutput="true" haltonfailure="true"> |
| <jvmarg value="-DcrawlerWarPath=../../../framework/build/war-proprietary/mcf-crawler-ui.war"/> |
| <jvmarg value="-DauthorityserviceWarPath=../../../framework/build/war-proprietary/mcf-authority-service.war"/> |
| <jvmarg value="-DapiWarPath=../../../framework/build/war-proprietary/mcf-api-service.war"/> |
| <classpath> |
| <path refid="test-classpath"/> |
| <pathelement location="build/test/classes"/> |
| </classpath> |
| <formatter type="brief" usefile="false"/> |
| <batchtest todir="test-mysql-output"> |
| <fileset dir="build/test/classes"> |
| <include name="**/*MySQLIT.class"/> |
| </fileset> |
| </batchtest> |
| </junit> |
| </target> |
| |
| <target name="run-load-derby" depends="compile-tests"> |
| <mkdir dir="test-derby-output"/> |
| <junit fork="true" maxmemory="384m" dir="test-derby-output" outputtoformatters="true" showoutput="true" haltonfailure="true"> |
| <jvmarg value="-DcrawlerWarPath=../../../framework/build/war-proprietary/mcf-crawler-ui.war"/> |
| <jvmarg value="-DauthorityserviceWarPath=../../../framework/build/war-proprietary/mcf-authority-service.war"/> |
| <jvmarg value="-DapiWarPath=../../../framework/build/war-proprietary/mcf-api-service.war"/> |
| <classpath> |
| <path refid="test-classpath"/> |
| <pathelement location="build/test/classes"/> |
| </classpath> |
| <formatter type="brief" usefile="false"/> |
| <batchtest todir="test-derby-output"> |
| <fileset dir="build/test/classes"> |
| <include name="**/*DerbyLT.class"/> |
| </fileset> |
| </batchtest> |
| </junit> |
| </target> |
| |
| <target name="run-load-postgresql" depends="compile-tests"> |
| <mkdir dir="test-postgresql-output"/> |
| <junit fork="true" maxmemory="384m" dir="test-postgresql-output" outputtoformatters="true" showoutput="true" haltonfailure="true"> |
| <jvmarg value="-DcrawlerWarPath=../../../framework/build/war-proprietary/mcf-crawler-ui.war"/> |
| <jvmarg value="-DauthorityserviceWarPath=../../../framework/build/war-proprietary/mcf-authority-service.war"/> |
| <jvmarg value="-DapiWarPath=../../../framework/build/war-proprietary/mcf-api-service.war"/> |
| <classpath> |
| <path refid="test-classpath"/> |
| <pathelement location="build/test/classes"/> |
| </classpath> |
| <formatter type="brief" usefile="false"/> |
| <batchtest todir="test-postgresql-output"> |
| <fileset dir="build/test/classes"> |
| <include name="**/*PostgresqlLT.class"/> |
| </fileset> |
| </batchtest> |
| </junit> |
| </target> |
| |
| <target name="run-load-HSQLDB" depends="compile-tests"> |
| <mkdir dir="test-HSQLDB-output"/> |
| <junit fork="true" maxmemory="384m" dir="test-HSQLDB-output" outputtoformatters="true" showoutput="true" haltonfailure="true"> |
| <jvmarg value="-DcrawlerWarPath=../../../framework/build/war-proprietary/mcf-crawler-ui.war"/> |
| <jvmarg value="-DauthorityserviceWarPath=../../../framework/build/war-proprietary/mcf-authority-service.war"/> |
| <jvmarg value="-DapiWarPath=../../../framework/build/war-proprietary/mcf-api-service.war"/> |
| <classpath> |
| <path refid="test-classpath"/> |
| <pathelement location="build/test/classes"/> |
| </classpath> |
| <formatter type="brief" usefile="false"/> |
| <batchtest todir="test-HSQLDB-output"> |
| <fileset dir="build/test/classes"> |
| <include name="**/*HSQLDBLT.class"/> |
| </fileset> |
| </batchtest> |
| </junit> |
| </target> |
| |
| <target name="run-load-HSQLDBext" depends="compile-tests"> |
| <mkdir dir="test-HSQLDBext-output"/> |
| <junit fork="true" maxmemory="384m" dir="test-HSQLDBext-output" outputtoformatters="true" showoutput="true" haltonfailure="true"> |
| <jvmarg value="-DcrawlerWarPath=../../../framework/build/war-proprietary/mcf-crawler-ui.war"/> |
| <jvmarg value="-DauthorityserviceWarPath=../../../framework/build/war-proprietary/mcf-authority-service.war"/> |
| <jvmarg value="-DapiWarPath=../../../framework/build/war-proprietary/mcf-api-service.war"/> |
| <classpath> |
| <path refid="test-classpath"/> |
| <pathelement location="build/test/classes"/> |
| </classpath> |
| <formatter type="brief" usefile="false"/> |
| <batchtest todir="test-HSQLDBext-output"> |
| <fileset dir="build/test/classes"> |
| <include name="**/*HSQLDBextLT.class"/> |
| </fileset> |
| </batchtest> |
| </junit> |
| </target> |
| |
| <target name="run-load-mysql" depends="compile-tests"> |
| <mkdir dir="test-mysql-output"/> |
| <junit fork="true" maxmemory="384m" dir="test-mysql-output" outputtoformatters="true" showoutput="true" haltonfailure="true"> |
| <jvmarg value="-DcrawlerWarPath=../../../framework/build/war-proprietary/mcf-crawler-ui.war"/> |
| <jvmarg value="-DauthorityserviceWarPath=../../../framework/build/war-proprietary/mcf-authority-service.war"/> |
| <jvmarg value="-DapiWarPath=../../../framework/build/war-proprietary/mcf-api-service.war"/> |
| <classpath> |
| <path refid="test-classpath"/> |
| <pathelement location="build/test/classes"/> |
| </classpath> |
| <formatter type="brief" usefile="false"/> |
| <batchtest todir="test-mysql-output"> |
| <fileset dir="build/test/classes"> |
| <include name="**/*MySQLLT.class"/> |
| </fileset> |
| </batchtest> |
| </junit> |
| </target> |
| |
| <target name="run-UI-derby" depends="compile-tests"> |
| <mkdir dir="test-derby-output"/> |
| <junit fork="true" maxmemory="128m" dir="test-derby-output" outputtoformatters="true" showoutput="true" haltonfailure="true"> |
| <jvmarg value="-DcrawlerWarPath=../../../framework/build/war-proprietary/mcf-crawler-ui.war"/> |
| <jvmarg value="-DauthorityserviceWarPath=../../../framework/build/war-proprietary/mcf-authority-service.war"/> |
| <jvmarg value="-DapiWarPath=../../../framework/build/war-proprietary/mcf-api-service.war"/> |
| <classpath> |
| <path refid="test-classpath"/> |
| <pathelement location="build/test/classes"/> |
| </classpath> |
| <formatter type="brief" usefile="false"/> |
| <batchtest todir="test-derby-output"> |
| <fileset dir="build/test/classes"> |
| <include name="**/*DerbyUI.class"/> |
| </fileset> |
| </batchtest> |
| </junit> |
| </target> |
| |
| <target name="run-UI-postgresql" depends="compile-tests"> |
| <mkdir dir="test-postgresql-output"/> |
| <junit fork="true" maxmemory="128m" dir="test-postgresql-output" outputtoformatters="true" showoutput="true" haltonfailure="true"> |
| <jvmarg value="-DcrawlerWarPath=../../../framework/build/war-proprietary/mcf-crawler-ui.war"/> |
| <jvmarg value="-DauthorityserviceWarPath=../../../framework/build/war-proprietary/mcf-authority-service.war"/> |
| <jvmarg value="-DapiWarPath=../../../framework/build/war-proprietary/mcf-api-service.war"/> |
| <classpath> |
| <path refid="test-classpath"/> |
| <pathelement location="build/test/classes"/> |
| </classpath> |
| <formatter type="brief" usefile="false"/> |
| <batchtest todir="test-postgresql-output"> |
| <fileset dir="build/test/classes"> |
| <include name="**/*PostgresqlUI.class"/> |
| </fileset> |
| </batchtest> |
| </junit> |
| </target> |
| |
| <target name="run-UI-HSQLDB" depends="compile-tests"> |
| <mkdir dir="test-HSQLDB-output"/> |
| <junit fork="true" maxmemory="128m" dir="test-HSQLDB-output" outputtoformatters="true" showoutput="true" haltonfailure="true"> |
| <jvmarg value="-DcrawlerWarPath=../../../framework/build/war-proprietary/mcf-crawler-ui.war"/> |
| <jvmarg value="-DauthorityserviceWarPath=../../../framework/build/war-proprietary/mcf-authority-service.war"/> |
| <jvmarg value="-DapiWarPath=../../../framework/build/war-proprietary/mcf-api-service.war"/> |
| <classpath> |
| <path refid="test-classpath"/> |
| <pathelement location="build/test/classes"/> |
| </classpath> |
| <formatter type="brief" usefile="false"/> |
| <batchtest todir="test-HSQLDB-output"> |
| <fileset dir="build/test/classes"> |
| <include name="**/*HSQLDBUI.class"/> |
| </fileset> |
| </batchtest> |
| </junit> |
| </target> |
| |
| <target name="run-UI-HSQLDBext" depends="compile-tests"> |
| <mkdir dir="test-HSQLDBext-output"/> |
| <junit fork="true" maxmemory="128m" dir="test-HSQLDBext-output" outputtoformatters="true" showoutput="true" haltonfailure="true"> |
| <jvmarg value="-DcrawlerWarPath=../../../framework/build/war-proprietary/mcf-crawler-ui.war"/> |
| <jvmarg value="-DauthorityserviceWarPath=../../../framework/build/war-proprietary/mcf-authority-service.war"/> |
| <jvmarg value="-DapiWarPath=../../../framework/build/war-proprietary/mcf-api-service.war"/> |
| <classpath> |
| <path refid="test-classpath"/> |
| <pathelement location="build/test/classes"/> |
| </classpath> |
| <formatter type="brief" usefile="false"/> |
| <batchtest todir="test-HSQLDBext-output"> |
| <fileset dir="build/test/classes"> |
| <include name="**/*HSQLDBextUI.class"/> |
| </fileset> |
| </batchtest> |
| </junit> |
| </target> |
| |
| <target name="run-UI-mysql" depends="compile-tests"> |
| <mkdir dir="test-mysql-output"/> |
| <junit fork="true" maxmemory="128m" dir="test-mysql-output" outputtoformatters="true" showoutput="true" haltonfailure="true"> |
| <jvmarg value="-DcrawlerWarPath=../../../framework/build/war-proprietary/mcf-crawler-ui.war"/> |
| <jvmarg value="-DauthorityserviceWarPath=../../../framework/build/war-proprietary/mcf-authority-service.war"/> |
| <jvmarg value="-DapiWarPath=../../../framework/build/war-proprietary/mcf-api-service.war"/> |
| <classpath> |
| <path refid="test-classpath"/> |
| <pathelement location="build/test/classes"/> |
| </classpath> |
| <formatter type="brief" usefile="false"/> |
| <batchtest todir="test-mysql-output"> |
| <fileset dir="build/test/classes"> |
| <include name="**/*MySQLUI.class"/> |
| </fileset> |
| </batchtest> |
| </junit> |
| </target> |
| |
| <target name="all"/> |
| |
| </project> |