forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-test-tck.xml
85 lines (62 loc) · 2.28 KB
/
build-test-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
<?xml version="1.0"?>
<project name="portal-test-tck" basedir="." default="test" xmlns:antelope="antlib:ise.antelope.tasks">
<import file="build-test.xml" />
<target name="prepare-tck">
<antcall target="prepare-portal-ext-properties" />
<echo file="portal-impl/src/portal-ext.properties" append="true">
tck.url=true</echo>
<exec executable="cmd.exe">
<arg line="/c svn revert portal-web/docroot/WEB-INF/web.xml" />
</exec>
<antcall target="clean" />
<antcall target="start" />
<ant antfile="build-dist.xml" target="build-dist-tomcat" />
<delete dir="tools/tck" />
<unzip src="${portlet.tck.zip}" dest="tools/tck" />
<replace file="tools/tck/bin/ts.jte">
<replacefilter token="http://localhost:8080/pluto/tck" value="http://localhost:8080/c/portal/tck" />
</replace>
<echo file="tools/tck/bin/build.properties" append="true">
work.dir=${basedir.unix}/tools/tck/work</echo>
<delete dir="${user.home}/liferay" />
<copy todir="${user.home}/liferay/deploy" flatten="true">
<fileset
dir="tools/tck"
includes="**/*.war"
/>
</copy>
<antcall target="rebuild-database" inheritAll="false">
<param name="skip.delete-liferay-home" value="true" />
</antcall>
</target>
<target name="run-tck-286-tomcat">
<antcall target="prepare-tck" />
<parallel>
<exec dir="${app.server.tomcat.bin.dir}" executable="catalina${file.suffix.bat}" resolveexecutable="true">
<arg line="run" />
</exec>
<sequential>
<waitfor>
<http url="http://localhost:8080" />
</waitfor>
<sleep seconds="60" />
<exec dir="tools/tck/src/com" executable="${basedir}/tools/tck/bin/tsant.bat">
<arg line="runclient" />
<env key="TS_HOME" value="${basedir}\tools\tck" />
</exec>
<exec dir="${app.server.tomcat.bin.dir}" executable="shutdown${file.suffix.bat}" resolveexecutable="true" />
</sequential>
</parallel>
<mkdir dir="portal-impl/test-results" />
<java
classname="com.liferay.portal.tools.TCKtoJUnitConverter"
classpathref="project.classpath"
fork="true"
newenvironment="true"
>
<jvmarg value="-Dexternal-properties=com/liferay/portal/tools/dependencies/portal-tools.properties" />
<arg value="tools/tck/work/jtData/harness.trace" />
<arg value="portal-impl/test-results" />
</java>
</target>
</project>