mirror of https://github.com/apache/openjpa.git
Replace hard-coded tck runtime timeout (7200000) to system property jpatck.run.tmo (default to 7200000).
git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@1231277 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
21f7cf7de7
commit
9b5ab6c67b
|
@ -41,6 +41,9 @@
|
||||||
but you can also test against prior levels by setting:
|
but you can also test against prior levels by setting:
|
||||||
-Dtck2.level=20091209
|
-Dtck2.level=20091209
|
||||||
|
|
||||||
|
To set the TCK run time limit, use the "jpatck.run.tmo" system property to
|
||||||
|
specify the timeout value in milliseconds. Default to 7200000 (2 hours).
|
||||||
|
|
||||||
To run a specific package of tests, use the "jpatck.pkg.dir" system
|
To run a specific package of tests, use the "jpatck.pkg.dir" system
|
||||||
property to specify the parent directory of the tests you want to run.
|
property to specify the parent directory of the tests you want to run.
|
||||||
E.g.:
|
E.g.:
|
||||||
|
|
|
@ -209,8 +209,9 @@ databaseName=${db.name}
|
||||||
<attribute name="dir" default="${tck.dir}/src" />
|
<attribute name="dir" default="${tck.dir}/src" />
|
||||||
<attribute name="buildfile" />
|
<attribute name="buildfile" />
|
||||||
<attribute name="target" />
|
<attribute name="target" />
|
||||||
|
<attribute name="tmo" default="7200000" />
|
||||||
<sequential>
|
<sequential>
|
||||||
<java classname="org.apache.tools.ant.launch.Launcher" fork="true" failonerror="false" dir="@{dir}" append="true" output="${tck.log}" timeout="7200000" resultproperty="tsant.result">
|
<java classname="org.apache.tools.ant.launch.Launcher" fork="true" failonerror="false" dir="@{dir}" append="true" output="${tck.log}" timeout="@{tmo}" resultproperty="tsant.result">
|
||||||
<arg value="-emacs" />
|
<arg value="-emacs" />
|
||||||
<arg value="-buildfile" />
|
<arg value="-buildfile" />
|
||||||
<arg value="@{buildfile}" />
|
<arg value="@{buildfile}" />
|
||||||
|
@ -311,17 +312,18 @@ databaseName=${db.name}
|
||||||
<tsant buildfile="${tck.dir}/bin/initdb.xml" target="init.database" />
|
<tsant buildfile="${tck.dir}/bin/initdb.xml" target="init.database" />
|
||||||
<echo>TCK initdb.xml returned result=${tsant.result}</echo>
|
<echo>TCK initdb.xml returned result=${tsant.result}</echo>
|
||||||
|
|
||||||
|
<property name="jpatck.run.tmo" value="7200000" />
|
||||||
<!-- now run the TCK -->
|
<!-- now run the TCK -->
|
||||||
<if>
|
<if>
|
||||||
<isset property="jpatck.pkg.dir" />
|
<isset property="jpatck.pkg.dir" />
|
||||||
<then>
|
<then>
|
||||||
<echo>Calling TCK build.xml for pkg.dir=${jpatck.pkg.dir}</echo>
|
<echo>Calling TCK build.xml for pkg.dir=${jpatck.pkg.dir}</echo>
|
||||||
<property name="dir" value="${tck.dir}/src/${jpatck.pkg.dir}" />
|
<property name="dir" value="${tck.dir}/src/${jpatck.pkg.dir}" />
|
||||||
<tsant dir="${dir}" buildfile="${dir}/build.xml" target="runclient" />
|
<tsant dir="${dir}" buildfile="${dir}/build.xml" target="runclient" tmo="${jpatck.run.tmo}" />
|
||||||
</then>
|
</then>
|
||||||
<else>
|
<else>
|
||||||
<echo>Calling TCK build.xml for ALL tests</echo>
|
<echo>Calling TCK build.xml for ALL tests</echo>
|
||||||
<tsant buildfile="${tck.dir}/bin/build.xml" target="run.all.tests" />
|
<tsant buildfile="${tck.dir}/bin/build.xml" target="run.all.tests" tmo="${jpatck.run.tmo}" />
|
||||||
</else>
|
</else>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue