Skip to content

Commit

Permalink
[CALCITE-590] Update MongoDB test suite to calcite-test-dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
vlsi authored and julianhyde committed Apr 16, 2015
1 parent 28d640a commit 1fd18a3
Show file tree
Hide file tree
Showing 8 changed files with 175 additions and 117 deletions.
8 changes: 0 additions & 8 deletions avatica-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,6 @@ limitations under the License.

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes />
</configuration>
</plugin>

<!-- Parent module has the same plugin and does the work of
generating -sources.jar for each project. But without the
plugin declared here, IDEs don't know the sources are
Expand Down
8 changes: 0 additions & 8 deletions avatica/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@ limitations under the License.

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes />
</configuration>
</plugin>

<!-- Parent module has the same plugin and does the work of
generating -sources.jar for each project. But without the
plugin declared here, IDEs don't know the sources are
Expand Down
37 changes: 33 additions & 4 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ limitations under the License.
<includes>
<include>org/apache/calcite/test/CalciteSuite.java</include>
</includes>
<threadCount>1</threadCount>
<perCoreThreadCount>true</perCoreThreadCount>
<parallel>both</parallel>
<argLine>-Xmx1536m -XX:MaxPermSize=256m</argLine>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -260,6 +256,39 @@ limitations under the License.
</build>

<profiles>
<profile>
<id>it</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<id>failsafe-integration-test</id>
<phase/>
</execution>
<execution>
<id>failsafe-test-mysql</id>
<goals>
<goal>integration-test</goal>
</goals>
<phase>integration-test</phase>
<configuration>
<includes>
<include>org/apache/calcite/test/JdbcAdapterTest.java</include>
<include>org/apache/calcite/test/JdbcTest.java</include>
</includes>
<systemPropertyVariables>
<calcite.test.db>mysql</calcite.test.db>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- CALCITE-539: workaround for MSHARED-394: Avoid rewrite of
destination in DefaultMavenFileFilter#filterFile when producing
Expand Down
5 changes: 5 additions & 0 deletions doc/HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ environment, as follows.
* `-Dcalcite.test.splunk=true` enables tests that run against Splunk.
Splunk must be installed and running.

To execute tests against mongodb, mysql only, use the following command:
```bash
mvn -Dtest=foo -DfailIfNoTests=false -Pit verify
```

## Contributing

We welcome contributions.
Expand Down
12 changes: 0 additions & 12 deletions mongodb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,6 @@ limitations under the License.
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>org/apache/calcite/test/MongoAdapterTest.java</include>
</includes>
<threadCount>6</threadCount>
<parallel>both</parallel>
<argLine>-Xmx1024m</argLine>
</configuration>
</plugin>
</plugins>
</build>

Expand Down
Loading

0 comments on commit 1fd18a3

Please sign in to comment.