File: mauve.xml

package info (click to toggle)
swingwt 0.85.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 18,164 kB
  • ctags: 9,021
  • sloc: java: 32,116; xml: 248; makefile: 209; sh: 47; ansic: 12
file content (92 lines) | stat: -rw-r--r-- 3,446 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="test" name="Run Swing/AWT Mauve Tests">
	<!--
		SwingWT
		Copyright(c) 2004 Daniel Naab

		Ant build script for Mauve test suite.

		$Log: mauve.xml,v $
		Revision 1.1  2004/05/07 00:00:47  dannaab
		Integrate Mauve test suite into build system
		
        -->

    <property environment="env"/>

    <!-- Default target -->
    <target name="test" depends="init,mauve_sync,mauve_build,run_tests"/>

    <!-- Set properties corresponding to directories we need -->
    <property name="dest" value="."/>
    <property name="src" value="mauve"/>
    <property name="build" value="mauve/build"/>
    <property name="swingwt_jar" value="lib/swingwt.jar"/>
    <property name="rt_jar" value="${java.home}/lib/rt.jar"/>

    <!-- Define some required paths -->
    <path id="_java_path">
        <pathelement path="${java.home}/bin/java.exe"/>
    </path>
    <path id="_javac_path">
        <pathelement path="${java.home}/bin/javac.exe"/>
    </path>
    <path id="_boot_class_path">
        <pathelement path="${swingwt_jar}"/>
        <pathelement path="${rt_jar}"/>
    </path>

    <target name="init">
        <!-- Convert paths to unix form so make doesn't puke on Windows -->
        <pathconvert dirsep="${file.separator}" pathsep="${path.separator}" property="java_path" refid="_java_path"/>
        <pathconvert dirsep="${file.separator}" pathsep="${path.separator}" property="javac_path" refid="_javac_path"/>
        <pathconvert dirsep="${file.separator}" pathsep="${path.separator}" property="boot.class.path" refid="_boot_class_path"/>

        <!-- Parameters to Mauve's configure script 
-->

        <property name="java_param" value="${java_path} -bootclasspath ${boot.class.path}"/>
        <property name="javac_param" value="${javac_path} -bootclasspath ${boot.class.path}"/>


        <!-- Create the mauve dir if it doesn't exist.
             This allows us to use "cvs -d update" event if we haven't checked out yet.
 -->

        <mkdir dir="${src}"/>
    </target>

    <target name="mauve_sync" depends="init" description="Update the local Mauve dir from CVS">
        <cvs command="update -d"
             cvsRoot=":pserver:anoncvs@sources.redhat.com:/cvs/mauve"
             compressionlevel="9" package="mauve"
             dest="${dest}"/>
    </target>

    <target name="mauve_build" depends="init" description="Build the Mauve sources">
        <!-- Run gnu configure -->
        <exec dir="${src}" executable="sh">
            <env key="JAVA" value="${java_param}"/>
            <env key="JAVAC" value="${javac_param}"/>
            <arg line="configure"/>
        </exec>

        <!-- Run the mauve compile target -->
        <ant dir="${src}" inheritAll="false" target="compile"/>
    </target>

    <target name="run_tests" depends="init" description="Run the tests">
        <taskdef name="mauve" classname="gnu.anttask.RunTests" classpath="${build}"/>
        <mauve debug="on"
               verbose="false"
               haltonfailure="false"
               srcdir="${src}"
               testJDK="JDK1.4"
               testJDBC="JDBC2.0"
               failonerror="true">
            <fileset dir="${build}" includes="gnu/testlet/java/awt/**"/>
            <fileset dir="${build}" includes="gnu/testlet/java/applet/**"/>
            <fileset dir="${build}" includes="gnu/testlet/javax/**"/>
        </mauve>
    </target>
</project>