aboutsummaryrefslogtreecommitdiffstats
path: root/testing-util/build.xml
blob: f5c57973eee206fb347012cfb94f2e5c916ddc9c (plain)
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
<?xml version="1.0"?>
<project name="testing-util" default="all" basedir=".">

    <import file="../build/build-common.xml"/>
    <import file="../bridge/build.xml"/>
    <import file="../util/build.xml"/>
    <import file="../runtime/build.xml"/>


    <path id="testing-util.test.src.path">
        <fileset dir="${basedir}/../lib">
            <include name="junit/*.jar"/>
            <include name="bcel/*.jar"/>
        </fileset>
        <!-- depends on weaver to use Dissasemble feature on LazyClassGen to test comparison of .class file -->
        <pathelement path="../weaver/bin"/>
        <pathelement path="../runtime/bin"/>
        <path refid="testing-util.src.path"/>
    </path>

    <path id="testing-util.src.path">
        <fileset dir="${basedir}/../lib">
            <include name="jdiff/*.jar"/>
        </fileset>
        <pathelement path="../bridge/bin"/>
        <pathelement path="../util/bin"/>
    </path>

    <target name="compile" depends="init,
                                    bridge.compile,
                                    util.compile">
        <srccompile project="testing-util" path="testing-util.src.path"/>
    </target>

    <target name="test:compile" depends="compile">
        <testcompile project="testing-util" path="testing-util.test.src.path"/>
    </target>

    <target name="test" depends="test:compile,
                                 runtime.compile">
        <!-- depends on weaver to access .class dissassemble utility hence circular -->
        <subant antfile="build.xml" target="test:compile" buildpath="../weaver" />
        <testrun project="testing-util" path="testing-util.test.src.path" suite="TestingUtilModuleTests"/>
    </target>

</project>