diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2009-11-03 15:21:54 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2009-11-03 15:21:54 +0000 |
| commit | f9c5304c21332e836ac4f615f2479cec6689f96d (patch) | |
| tree | 43d2aaeb53ecf636253415e6038a13170db24f82 /java/module.xml | |
| parent | 5c08385e89afa9a51bfa60d2bf54e8bce87a8a5e (diff) | |
| download | qpid-python-f9c5304c21332e836ac4f615f2479cec6689f96d.tar.gz | |
This adds some minor enhancements to our test framework.
It introduces two jvm args "broker.log.interleave" and "broker.log.prefix".
broker.log.interleave if set to false, will print the broker output into a separate file.
The file name will be in the following format and placed alongside the test output.
"%s/TEST-%s.broker.out"
Ex.
TEST-org.apache.qpid.test.client.failover.FailoverTest.testP2PFailover.out
TEST-org.apache.qpid.test.client.failover.FailoverTest.testP2PFailover.broker.out
"broker.log.interleave" is set to true in module.xml to default to the current behaviour.
"broker.log.prefix" which is set to "BROKER: " in the module.xml will prefix each broker output line.
This would help to follow the log files more easily as it would help to distinguish between broker and client output.
It would also be handy for grep.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@832452 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/module.xml')
| -rw-r--r-- | java/module.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/java/module.xml b/java/module.xml index 9fcc8ded4d..1cd1afc0c3 100644 --- a/java/module.xml +++ b/java/module.xml @@ -60,6 +60,8 @@ <property name="module.release.bz2" location="${module.release}/${module.namever}.tar.bz2"/> <property name="module.genpom.args" value=""/> + <property name="broker.log.prefix" value="BROKER: "/> + <property name="broker.log.interleave" value="true"/> <property name="module.qpid.jar" location="${module.release.lib}/qpid-all.jar"/> <basename property="qpid.jar.name" file="${module.qpid.jar}"/> @@ -276,6 +278,7 @@ <sysproperty key="broker.stopped" value="${broker.stopped}" /> <sysproperty key="broker.config" value="${broker.config}" /> <sysproperty key="test.output" value="${module.results}"/> + <syspropertyset> <propertyref prefix="test"/> </syspropertyset> @@ -284,7 +287,11 @@ </syspropertyset> <syspropertyset> <propertyref prefix="javax.net.ssl"/> + </syspropertyset> + <syspropertyset> + <propertyref prefix="broker"/> </syspropertyset> + <sysproperty key="max_prefetch" value ="${max_prefetch}"/> <sysproperty key="example.plugin.target" value="${project.root}/build/lib/plugins"/> <sysproperty key="QPID_EXAMPLE_HOME" value="${qpid.home}"/> @@ -526,6 +533,7 @@ </target> <target name="cover-test" depends="instrument"> + <mkdir dir="${build.coveragereport}" /> <junit fork="yes" forkmode="once" maxmemory="${test.mem}" reloading="no" haltonfailure="${haltonfailure}" haltonerror="${haltonerror}" @@ -543,9 +551,14 @@ <sysproperty key="broker.version" value="${broker.version}"/> <sysproperty key="broker.ready" value="${broker.ready}" /> <sysproperty key="test.output" value="${module.results}"/> + <syspropertyset> <propertyref prefix="test"/> </syspropertyset> + <syspropertyset> + <propertyref prefix="broker"/> + </syspropertyset> + <sysproperty key="max_prefetch" value ="${max_prefetch}"/> <sysproperty key="example.plugin.target" value="${project.root}/build/lib/plugins"/> <sysproperty key="QPID_EXAMPLE_HOME" value="${project.root}/build"/> |
