Skip to content
Permalink
Browse files
Add datasketches-memory-tests maven module
This module runs the test suite against the packaged JAR, using the
java version defined by the environment that runs maven.
  • Loading branch information
davecromberge committed Jun 17, 2021
1 parent 2ac0b35 commit 14156da44d2bf519324c530c10ca766492e48b70
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 2 deletions.
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.datasketches</groupId>
<artifactId>datasketches-memory-root</artifactId>
<version>2.0.0-SNAPSHOT</version>
</parent>

<dependencies>
<dependency>
<groupId>org.apache.datasketches</groupId>
<artifactId>datasketches-memory</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.datasketches</groupId>
<artifactId>datasketches-memory-java8-tests</artifactId>
<version>${project.version}</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
</dependencies>

<artifactId>datasketches-memory-tests</artifactId>
<name>${project.artifactId}</name>

<!-- The tests in the following profiles run against the assembled MR-JAR. Hence, they
only run during the Maven package phase.
Tests are scanned from dependency JARs using `dependenciesToScan`. -->
<build>
<plugins>

<plugin>
<!-- Apache Parent pom, pluginManagement-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<executions>
<execution>
<id>package-test</id>
<phase>package</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<skip>false</skip>
<dependenciesToScan>
<dependency>org.apache.datasketches:datasketches-memory-java8-tests</dependency>
</dependenciesToScan>
</configuration>
</execution>
</executions>
</plugin>

</plugins>
</build>

</project>
@@ -0,0 +1,7 @@
Abraham Lincoln's Gettysburg Address:

Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.

Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this.

But, in a larger sense, we can not dedicate —- we can not consecrate —- we can not hallow —- this ground. The brave men, living and dead, who struggled here, have consecrated it, far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is rather for us to be here dedicated to the great task remaining before us -— that from these honored dead we take increased devotion to that cause for which they gave the last full measure of devotion -— that we here highly resolve that these dead shall not have died in vain -— that this nation, under God, shall have a new birth of freedom -— and that government of the people, by the people, for the people, shall not perish from the earth.
@@ -1,8 +1,8 @@
# Maven multi-module project

This project is a multi-module Maven project. A multi-module Maven project consists of an aggregator project
(the root project), together with a set of submodules. The aggregator's configuration is inherited by each
submodule, thus reducing duplication.
(the `datasketches-memory-root` project), together with a set of submodules. The aggregator's configuration is inherited
by each submodule, thus reducing duplication.

`datasketches-memory` makes use of some features of the Java platform, namely `Unsafe`, which have evolved in
Java versions 9 and above. Therefore, a multi-module project allows us to add support for later versions of
@@ -13,7 +13,10 @@ This project has been divided into the following submodules:

* datasketches-memory-java8 (base version of the JVM that is currently supported)
* datasketches-memory-java8-tests
* datasketches-memory-java9 (Java9 equivalent of some platform specific classes in datasketches-memory-java8)
* datasketches-memory-java9-tests
* datasketches-memory (JAR assembly, does not contain source files)
* datasketches-memory-tests (Runs test suite against assembled JAR)

### Artifact assembly

@@ -252,6 +252,9 @@ under the License.
<configuration>
<docfilessubdirs>true</docfilessubdirs>
<doclint>none</doclint>
<jdkToolchain>
<version>${jdk-toolchain.version}</version>
</jdkToolchain>
</configuration>
<executions>
<execution>
@@ -610,6 +613,7 @@ under the License.
<module>datasketches-memory-java9</module>
<module>datasketches-memory-java9-tests</module>
<module>datasketches-memory</module>
<module>datasketches-memory-tests</module>
</modules>

</project>

0 comments on commit 14156da

Please sign in to comment.