-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_cts.xml
107 lines (86 loc) · 3.71 KB
/
build_cts.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
<project default="report">
<property name="jdbc.username" value="sysdba"/>
<property name="jdbc.password" value="masterkey"/>
<property name="jdbc.url" value="jdbc:firebirdsql:localhost/3050:${basedir}/jdbccts.gdb"/>
<property name="jdbc.driver" value="org.firebirdsql.jdbc.FBDriver"/>
<property name="jdbc.init_sql" value="${basedir}/src/jdbccts/ddl.properties"/>
<property name="cts.path" value="f:/java/jdbccts"/>
<property name="cts.config" value="dml.properties"/>
<property name="cts.excludes" value="excludes.properties"/>
<property name="output.dir" value="${basedir}/output"/>
<property name="compile.out" value="${output.dir}/cts/classes"/>
<property name="test.out" value="${output.dir}/cts/test"/>
<property name="report.out" value="${output.dir}/cts/reports"/>
<property name="report.styles" value="${basedir}/src/stylesheets"/>
<property name="source.cts.junit" value="${basedir}/src/jdbccts"/>
<path id="cts.runtime">
<pathelement location="${cts.path}/lib/j2eects.jar"/>
<pathelement location="${cts.path}/lib/parser.jar"/>
<pathelement location="${cts.path}/lib/riinterceptors.jar"/>
<pathelement path="${output.dir}/lib/firebirdsql-full.jar"/>
</path>
<target name="initdb">
<java classname="com.sun.cts.util.InitCTSDatabase">
<classpath refid="cts.runtime"/>
<arg value="-U${jdbc.username}"/>
<arg value="-P${jdbc.password}"/>
<arg value="-S${jdbc.url}"/>
<arg value="-p${jdbc.init_sql}"/>
<arg value="-d${jdbc.driver}"/>
</java>
</target>
<target name="init">
<mkdir dir="${compile.out}"/>
<mkdir dir="${test.out}"/>
<mkdir dir="${report.out}"/>
</target>
<target name="compile" depends="init">
<javac debug="true" destdir="${compile.out}">
<classpath refid="cts.runtime"/>
<src path="${cts.path}/tests"/>
<src path="${source.cts.junit}"/>
</javac>
<copy todir="${compile.out}">
<fileset dir="${source.cts.junit}">
<include name="**/*.properties"/>
</fileset>
</copy>
</target>
<target name="test" depends="compile">
<junit printsummary="true"
haltonerror="false"
haltonfailure="false"
>
<sysproperty key="cts.config.resource" value="${cts.config}"/>
<sysproperty key="cts.excludes.resource" value="${cts.excludes}"/>
<sysproperty key="cts.db.url" value="${jdbc.url}"/>
<sysproperty key="cts.db.username" value="${jdbc.username}"/>
<sysproperty key="cts.db.password" value="${jdbc.password}"/>
<classpath refid="cts.runtime"/>
<classpath path="${compile.out}"/>
<test name="org.firebirdsql.jdbc.cts.BatchUpdatesSuite" todir="${test.out}"/>
<test name="org.firebirdsql.jdbc.cts.CallableStatementSuite" todir="${test.out}"/>
<test name="org.firebirdsql.jdbc.cts.ConnectionSuite" todir="${test.out}"/>
<test name="org.firebirdsql.jdbc.cts.DbMetaSuite" todir="${test.out}"/>
<test name="org.firebirdsql.jdbc.cts.DateTimeSuite" todir="${test.out}"/>
<test name="org.firebirdsql.jdbc.cts.EscapeSyntaxSuite" todir="${test.out}"/>
<test name="org.firebirdsql.jdbc.cts.ExceptionSuite" todir="${test.out}"/>
<test name="org.firebirdsql.jdbc.cts.PreparedStatementSuite" todir="${test.out}"/>
<test name="org.firebirdsql.jdbc.cts.ResultSetSuite" todir="${test.out}"/>
<test name="org.firebirdsql.jdbc.cts.RsMetaSuite" todir="${test.out}"/>
<test name="org.firebirdsql.jdbc.cts.StatementSuite" todir="${test.out}"/>
<formatter type="xml"/>
</junit>
</target>
<target name="report" depends="test">
<junitreport todir="${report.out}">
<fileset dir="${test.out}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames"
todir="${report.out}"
styledir="${report.styles}"
/>
</junitreport>
</target>
</project>