Skip to content

Commit 5b2ad55

Browse files
author
Ondrej Zizka
committed
E2E: Add a test run of the actual dist zip.
1 parent d458d20 commit 5b2ad55

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

pom.xml

+28
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,18 @@
6060
<groupId>org.apache.maven.plugins</groupId><artifactId>maven-antrun-plugin</artifactId><version>3.1.0</version>
6161
<executions>
6262
<execution>
63+
<id>testData-unzip</id>
6364
<phase>generate-test-resources</phase>
6465
<goals><goal>run</goal></goals>
6566
<configuration><target><unzip src="src/test/data/json/github_data.zip" dest="target/testData/json/" /></target></configuration>
6667
</execution>
68+
<execution>
69+
<id>distZip-unzip-before-e2e-test</id><phase>pre-integration-test</phase><goals><goal>run</goal></goals>
70+
<configuration>
71+
<target><unzip src="${project.build.directory}/${project.build.finalName}-dist.zip" dest="${project.build.directory}/dist-zip/" /></target>
72+
</configuration>
73+
</execution>
74+
6775
</executions>
6876
</plugin>
6977

@@ -204,6 +212,26 @@
204212
</commandlineArgs>
205213
</configuration>
206214
</execution>
215+
216+
<!-- Run CsvCruncher from the -dist.zip (extracted above) through the script. -->
217+
<execution>
218+
<id>testCrunch-dist</id><phase>verify</phase><goals><goal>exec</goal></goals>
219+
<configuration>
220+
<skip>${skipE2E}</skip>
221+
<executable>sh</executable>
222+
<commandlineArgs>
223+
${project.build.directory}/dist-zip/${project.build.finalName}-dist/crunch
224+
--json=entries
225+
--rowNumbers
226+
--logLevel=INFO
227+
-in src/test/data/eapBuilds.csv
228+
-out ${project.build.directory}/results/distZipCrunchResult.csv
229+
-sql 'SELECT jobName, buildNumber, config, ar, arFile, deployDur, warmupDur, scale,
230+
CAST(warmupDur AS DOUBLE) / CAST(deployDur AS DOUBLE) AS warmupSlower
231+
FROM eapBuilds ORDER BY deployDur'
232+
</commandlineArgs>
233+
</configuration>
234+
</execution>
207235
</executions>
208236
</plugin>
209237
<plugin>

0 commit comments

Comments
 (0)