-
Notifications
You must be signed in to change notification settings - Fork 36
/
build-tck.xml
147 lines (121 loc) · 5.95 KB
/
build-tck.xml
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<project name="javax-usb-libusb1">
<property file="build.properties"/>
<loadproperties srcFile="build-default.properties"/>
<property name="maven.repo.local" value="${user.home}/.m2/repository"/>
<target name="compile" depends="compile-tck,compile-javalibusb1"/>
<path id="compile">
<pathelement location="javax.usb/target/classes"/>
<pathelement location="javalibusb1/target/classes"/>
</path>
<path id="test">
<pathelement location="tck/src/test/resources"/>
<pathelement location="${tck.path}/target/classes"/>
<pathelement location="${tck.path}/target/test-classes"/>
<pathelement location="javax.usb/target/classes"/>
<pathelement location="javax.usb/target/test-classes"/>
<pathelement location="javalibusb1/target/classes"/>
<pathelement location="javalibusb1/target/test-classes"/>
<pathelement location="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar"/>
<pathelement location="${maven.repo.local}/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar"/>
<pathelement location="${maven.repo.local}/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar"/>
</path>
<target name="clean">
<delete dir="javax.usb/target/classes"/>
<delete dir="javalibusb1/target/classes"/>
<delete dir="javalibusb1/target/test-classes"/>
<exec executable="make">
<arg line="-C javalibusb1 clean"/>
</exec>
<delete dir="${tck.path}/target/classes"/>
<delete dir="${tck.path}/target/test-classes"/>
<delete dir="${javax.usb.path}/target/classes"/>
<delete dir="${javax.usb.path}/target/test-classes"/>
</target>
<target name="compile-javax-usb">
<mkdir dir="javax.usb/target/classes"/>
<javac srcdir="javax.usb/src/main/java" destdir="javax.usb/target/classes"/>
</target>
<target name="compile-javalibusb1" depends="compile-javax-usb">
<mkdir dir="javalibusb1/target/classes"/>
<javac srcdir="javalibusb1/src/main/java" destdir="javalibusb1/target/classes" classpathref="compile"/>
<copy todir="javalibusb1/target/classes">
<fileset dir="javalibusb1/src/main/resources"/>
</copy>
<exec executable="make">
<arg line="-C javalibusb1 all"/>
</exec>
<mkdir dir="javalibusb1/target/test-classes"/>
<javac srcdir="javalibusb1/src/test/java" destdir="javalibusb1/target/test-classes" classpathref="test"/>
</target>
<target name="compile-tck" depends="compile-javax-usb">
<mkdir dir="${tck.path}/target/classes"/>
<mkdir dir="${tck.path}/target/test-classes"/>
<mkdir dir="${javax.usb.path}/target/classes"/>
<mkdir dir="${javax.usb.path}/target/test-classes"/>
<!--
The local javax.usb implementation is not complete enough so
compile against the original javax.usb implementation.
<javac srcdir="${tck.path}/src/javax" destdir="${tck.path}/target/classes" classpathref="test"/>
-->
<javac srcdir="${javax.usb.path}/src" destdir="${javax.usb.path}/target/classes"/>
<javac srcdir="${tck.path}/src" destdir="${tck.path}/target/test-classes">
<classpath>
<file file="${maven.repo.local}/junit/junit/3.8.1/junit-3.8.1.jar"/>
<pathelement location="${maven.repo.local}/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar"/>
<dirset dir="${javax.usb.path}/target/classes"/>
</classpath>
</javac>
</target>
<target name="prepare-tck" depends="compile">
</target>
<!--
javax.usb.tck.CONFIG3_ISODCP_B6_IMAGE
javax.usb.tck.CONFIG3_TOPOLOGY_B6_IMAGE
javax.usb.tck.OPT_CONFIG3_ISODCP_ISOCHRONOUS
javax.usb.tck.OPT_CONFIG3_TOPOLOGY_SET_CONFIG
javax.usb.tck.OPT_CONFIG3_TOPOLOGY_SET_INTERFACE
javax.usb.tck.SIGNATURE
-->
<target name="CONFIG1_TOPOLOGY_B6_IMAGE" depends="prepare-tck">
<echo>Running TCK Test javax.usb.tck.CONFIG1_TOPOLOGY_B6_IMAGE</echo>
<echo>See target/javax.usb.tck.CONFIG1_TOPOLOGY_B6_IMAGE.log for output.</echo>
<mkdir dir="target"/>
<!-- This uses the local javax.usb + TCK classes -->
<java fork="true" failonerror="true" output="target/javax.usb.tck.CONFIG1_TOPOLOGY_B6_IMAGE.log" classpathref="test"
classname="javax.usb.tck.CONFIG1_TOPOLOGY_B6_IMAGE">
<sysproperty key="javaxusbtck_home" value="${tck.path}"/>
<sysproperty key="java.library.path" value="javalibusb1/.libs"/>
<env key="LD_LIBRARY_PATH" value="${libusb.lib.path}"/>
<!-- For Darwin/OS X -->
<env key="DYLD_LIBRARY_PATH" value="${libusb.lib.path}"/>
</java>
</target>
<target name="CONFIG2_TOPOLOGY_B6_IMAGE" depends="prepare-tck">
<echo>Running TCK Test javax.usb.tck.CONFIG2_TOPOLOGY_B6_IMAGE</echo>
<echo>See target/tck-CONFIG2_TOPOLOGY_B6_IMAGE.log for output.</echo>
<mkdir dir="target"/>
<!-- This uses the local javax.usb + TCK classes -->
<java fork="true" failonerror="true" output="target/tck-CONFIG2_TOPOLOGY_B6_IMAGE.log" classpathref="test"
classname="javax.usb.tck.CONFIG2_TOPOLOGY_B6_IMAGE">
<sysproperty key="javaxusbtck_home" value="${tck.path}"/>
<sysproperty key="java.library.path" value="javalibusb1/.libs"/>
<env key="LD_LIBRARY_PATH" value="${libusb.lib.path}"/>
<!-- For Darwin/OS X -->
<env key="DYLD_LIBRARY_PATH" value="${libusb.lib.path}"/>
</java>
</target>
<target name="CONFIG3_BULKINT_B6_IMAGE" depends="prepare-tck">
<echo>Running TCK Test javax.usb.tck.CONFIG3_BULKINT_B6_IMAGE</echo>
<echo>See target/javax.usb.tck.CONFIG3_BULKINT_B6_IMAGE for output.</echo>
<mkdir dir="target"/>
<!-- This uses the local javax.usb + TCK classes -->
<java fork="true" failonerror="true" output="target/javax.usb.tck.CONFIG3_BULKINT_B6_IMAGE" classpathref="test"
classname="javax.usb.tck.CONFIG3_BULKINT_B6_IMAGE">
<sysproperty key="javaxusbtck_home" value="${tck.path}"/>
<sysproperty key="java.library.path" value="javalibusb1/.libs"/>
<env key="LD_LIBRARY_PATH" value="${libusb.lib.path}"/>
<!-- For Darwin/OS X -->
<env key="DYLD_LIBRARY_PATH" value="${libusb.lib.path}"/>
</java>
</target>
</project>