From 75aae261bd239c62f840b04de7daa78352d503d4 Mon Sep 17 00:00:00 2001 From: Christian Sailer Date: Fri, 26 Oct 2018 18:29:40 +0100 Subject: [PATCH] Ent-1839 Performance Test Suite (#1501) * Add step to build performance test suite zip including LICENSE and README file. * Build release package as part of the build * blank lines/comment --- tools/jmeter/build.gradle | 19 +++++++++++++++++++ tools/jmeter/src/main/data/LICENSE | 6 ++++++ tools/jmeter/src/main/data/README | 9 +++++++++ 3 files changed, 34 insertions(+) create mode 100644 tools/jmeter/src/main/data/LICENSE create mode 100644 tools/jmeter/src/main/data/README diff --git a/tools/jmeter/build.gradle b/tools/jmeter/build.gradle index f92ea2e2df..c1afc9b7a9 100644 --- a/tools/jmeter/build.gradle +++ b/tools/jmeter/build.gradle @@ -155,7 +155,26 @@ task buildJMeterJAR(type: FatCapsule) { jvmArgs = ['-Xms512m', '-Xmx512m', '-XX:+UseG1GC'] } } + +// Build a zip file that can be downloaded by clients containing everything they need to get started with +// performance testing +task buildReleasePackage(type: Zip) { + baseName = "corda-performance-testsuite" + from (buildJMeterJAR){ + include "jmeter-corda*.jar" + } + from (configurations.compile.files){ + include "corda-ptflow*.jar" + } + from(sourceSets.main.resources.getSrcDirs().first().getPath() + "/../data"){ + include "Sample Testplans/*" + include "LICENSE" + include "README" + } +} + assemble.dependsOn buildJMeterJAR +assemble.dependsOn buildReleasePackage artifacts { runtimeArtifacts buildJMeterJAR diff --git a/tools/jmeter/src/main/data/LICENSE b/tools/jmeter/src/main/data/LICENSE new file mode 100644 index 0000000000..0e21f9eb05 --- /dev/null +++ b/tools/jmeter/src/main/data/LICENSE @@ -0,0 +1,6 @@ +This software is proprietary to and embodies the confidential technology of R3 LLC ("R3"). +Possession, use, duplication or dissemination of the software is authorized only pursuant to a valid license from R3. +You must obtain such a license from R3 directly. An evaluation license can be obtained from https://r3.com + +This software contains Apache JMeter software licensed under the Apache License, Version 2.0 +(https://www.apache.org/licenses/LICENSE-2.0) \ No newline at end of file diff --git a/tools/jmeter/src/main/data/README b/tools/jmeter/src/main/data/README new file mode 100644 index 0000000000..ab8180ddb7 --- /dev/null +++ b/tools/jmeter/src/main/data/README @@ -0,0 +1,9 @@ +Corda Enterprise Performance Test Suite + +File Contents: +jmeter-corda-[version].jar - This is the jar containing the JMeter software to drive any performance tests. +corda-ptflows-[version].jar - This is the default performance test CordApp. +Sample Testplans - example for JMeter jmx test plan files. Open in the JMeter GUI to look at and try out. + +Documentation: +Please go to https://docs.corda.r3.com/performance-testing/introduction.html for a full documentation of this package