From 4de65ffd6c94b6a1bfa88793c8315b2b2707d49e Mon Sep 17 00:00:00 2001 From: Rupert Smith Date: Thu, 21 Feb 2008 16:42:27 +0000 Subject: QPID-802 : Added one minute run of benchmark tests against external broker to the build system. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@629863 13f79535-47bb-0310-9956-ffa450edef68 --- java/skimtests/README.txt | 10 ++ java/skimtests/etc/jar-with-dependencies.xml | 91 ++++++++++++ java/skimtests/pom.xml | 212 +++++++++++++++++++++++++++ 3 files changed, 313 insertions(+) create mode 100644 java/skimtests/README.txt create mode 100644 java/skimtests/etc/jar-with-dependencies.xml create mode 100644 java/skimtests/pom.xml (limited to 'java') diff --git a/java/skimtests/README.txt b/java/skimtests/README.txt new file mode 100644 index 0000000000..d49ae08e14 --- /dev/null +++ b/java/skimtests/README.txt @@ -0,0 +1,10 @@ +This module does not contain any code, but uses the other modules and the extended junit test runner, to run some +benchmark tests. The idea is that it will do short run of the benchmark tests on every build, in order monitor +performance changes as changes are applied to the code, and to check that tests will run against an external broker +(as opposed to an in-vm one, which many of the unit tests use). These are called skim tests because they are a shorter +run of what would typically be run against the broker when doing a full performance evaluation; each benchmark is +only run for 1 minute. + +One reason this is in a seperate module, is so that in the top-level pom, a profile can exist that must be switched +on in order to run these skim tests. It is easiest to include/exclude this module in its entirety rather than to +mess around with maven lifecycle stages. \ No newline at end of file diff --git a/java/skimtests/etc/jar-with-dependencies.xml b/java/skimtests/etc/jar-with-dependencies.xml new file mode 100644 index 0000000000..bbbbd3788e --- /dev/null +++ b/java/skimtests/etc/jar-with-dependencies.xml @@ -0,0 +1,91 @@ + + + + all-test-deps + + tar.gz + zip + + false + + + / + false + test + + + + + target/classes + + + + target/test-classes + + + + + + target + + + *.sh + + + + etc/scripts + + + *.sh + + + + + + etc/jndi + + + *.properties + + + + + + target + + + qpid-perftests-1.0-incubating-M2-SNAPSHOT.jar + + + + + + target + + + qpid-perftests-${qpid.version}.jar + + + + + diff --git a/java/skimtests/pom.xml b/java/skimtests/pom.xml new file mode 100644 index 0000000000..f0ebc3bc6f --- /dev/null +++ b/java/skimtests/pom.xml @@ -0,0 +1,212 @@ + + + + 4.0.0 + org.apache.qpid + qpid-skimtests + jar + 1.0-incubating-M2.1-SNAPSHOT + Qpid Skim Tests + http://cwiki.apache.org/confluence/display/qpid + + + org.apache.qpid + qpid + 1.0-incubating-M2.1-SNAPSHOT + ../pom.xml + + + + .. + perftests.log4j + + + + + + org.apache.qpid + qpid-perftests + test + + + + org.apache.qpid + qpid-client + test + + + + org.apache.qpid + qpid-broker + test + + + + org.apache.qpid + qpid-broker + 1.0-incubating-M2.1-SNAPSHOT + tests + test + + + + org.apache.qpid + qpid-systests + test + + + + log4j + log4j + test + + + + org.apache.qpid + junit-toolkit + test + + + + junit + junit + test + + + + org.slf4j + slf4j-log4j12 + 1.4.0 + test + + + + + + + + org.apache.qpid + junit-toolkit-maven-plugin + + + target + ${project.build.finalName}.jar + + + -Xms + 256m + + + -Xmx + 1024m + + + log4j.configuration + ${log4j.perftests} + + + amqj.logging.level + warn + + + badger.level + warn + + + amqj.test.logging.level + info + + + + + + -n TQBT-TX-Qpid-01 -d1M -s[1000] -c[16] -o $QPID_WORK/results -t testAsyncPingOk org.apache.qpid.ping.PingAsyncTestPerf persistent=false pubsub=false uniqueDests=true numConsumers=1 transacted=true consTransacted=true consAckMode=0 commitBatchSize=1 batchSize=1000 messageSize=256 destinationCount=1 rate=0 maxPending=2000000 + -n TQBT-AA-Qpid-01 -d1M -s[1000] -c[16] -o $QPID_WORK/results -t testAsyncPingOk org.apache.qpid.ping.PingAsyncTestPerf persistent=false pubsub=false uniqueDests=true numConsumers=1 transacted=false consTransacted=false consAckMode=1 commitBatchSize=1 batchSize=1000 messageSize=256 destinationCount=1 rate=0 maxPending=2000000 + -n TQBT-NA-Qpid-01 -d1M -s[1000] -c[16] -o $QPID_WORK/results -t testAsyncPingOk org.apache.qpid.ping.PingAsyncTestPerf persistent=false pubsub=false uniqueDests=true numConsumers=1 transacted=false consTransacted=false consAckMode=257 commitBatchSize=1 batchSize=1000 messageSize=256 destinationCount=1 rate=0 maxPending=2000000 + -n TTBT-TX-Qpid-01 -d1M -s[1000] -c[2] -o $QPID_WORK/results -t testAsyncPingOk org.apache.qpid.ping.PingAsyncTestPerf persistent=false pubsub=true uniqueDests=false numConsumers=8 transacted=true consTransacted=false consAckMode=1 commitBatchSize=1 batchSize=1000 messageSize=256 destinationCount=1 rate=0 maxPending=2000000 + -n TTBT-AA-Qpid-01 -d1M -s[1000] -c[2] -o $QPID_WORK/results -t testAsyncPingOk org.apache.qpid.ping.PingAsyncTestPerf persistent=false pubsub=true uniqueDests=false numConsumers=8 transacted=false consTransacted=false consAckMode=1 commitBatchSize=1 batchSize=1000 messageSize=256 destinationCount=1 rate=0 maxPending=2000000 + -n TTBT-NA-Qpid-01 -d1M -s[1000] -c[2] -o $QPID_WORK/results -t testAsyncPingOk org.apache.qpid.ping.PingAsyncTestPerf persistent=false pubsub=true uniqueDests=false numConsumers=8 transacted=false consTransacted=false consAckMode=257 commitBatchSize=1 batchSize=1000 messageSize=256 destinationCount=1 rate=0 maxPending=2000000 + + + + + + + + test + + + + + + org.apache.maven.plugins + maven-antrun-plugin + ${antrun.version} + + + ant + ant-nodeps + 1.6.5 + + + + + + skim_test + test + + + + + + + + + + + + + + + + + + + + + + run + + + + + + + + + -- cgit v1.2.1