forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-test-unit.xml
71 lines (53 loc) · 1.93 KB
/
build-test-unit.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
<?xml version="1.0"?>
<project name="portal-test-unit" basedir="." default="test" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-test.xml" />
<target name="prepare-database-jars">
<delete failonerror="false">
<fileset
dir="lib/development"
includes="db2jcc.jar,db2jcc_license_cu.jar,ojdbc14.jar,ojdbc5.jar,ojdbc6.jar"
/>
</delete>
<if>
<or>
<equals arg1="${db.type}" arg2="db2" />
<equals arg1="${db.type}" arg2="oracle-10" />
<equals arg1="${db.type}" arg2="oracle-11" />
</or>
<then>
<antcall target="copy-optional-jars" inheritAll="false">
<param name="todir" value="lib/development" />
</antcall>
</then>
</if>
</target>
<target name="run-unit-plugins-test">
<antcall target="clean-up-bundles" />
<antcall target="clean-up-plugins" />
<antcall target="prepare-common">
<param name="db.type" value="mysql" />
</antcall>
<antcall target="rebuild-database">
<param name="test.database.minimal" value="true" />
</antcall>
<ant antfile="build-test-plugins.xml" target="test-build-plugins-release" inheritAll="false" />
<ant antfile="build-test-plugins.xml" target="test-create" inheritAll="false" />
<ant antfile="build-test-plugins.xml" target="test-service-builder" inheritAll="false" />
</target>
<target name="run-unit-portal-test">
<antcall target="clean-up-bundles" />
<antcall target="clean-up-plugins" />
<antcall target="prepare-common">
<param name="db.type" value="${db.type}" />
</antcall>
<antcall target="prepare-database-jars" />
<antcall target="rebuild-database">
<param name="test.database.minimal" value="true" />
</antcall>
<antcall target="revert-test-properties" />
<antcall target="prepare-test-properties" />
<antcall target="test-integration" inheritAll="false" />
<antcall target="test-unit" inheritAll="false" />
<ant dir="sql" target="test-sample-sql" inheritAll="false" />
</target>
</project>