提交 6c78b126 authored 作者: Farid Zakaria's avatar Farid Zakaria

Most test passs

- Fixed exec of the TestAll program so that the majority of test passes
- Failures at the moment have to do with missing resources such as web/server/res JSP files
上级 1aa07323
...@@ -120,8 +120,43 @@ ...@@ -120,8 +120,43 @@
</dependency> </dependency>
<!-- END BENCHMARK DEPENDENCIES !--> <!-- END BENCHMARK DEPENDENCIES !-->
<!-- JDK dependencies -->
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.6</version>
<scope>system</scope>
<systemPath>${tools.jar}</systemPath>
</dependency>
</dependencies> </dependencies>
<!-- The test code creates proxy files using javac or tools.jar. Through maven we need to tell it
where to possibly find tools.jar and annoyingly its called classes.jar on OSX -->
<profiles>
<profile>
<id>default-tools.jar</id>
<activation>
<file>
<exists>${java.home}/../lib/tools.jar</exists>
</file>
</activation>
<properties>
<tools.jar>${java.home}/../lib/tools.jar</tools.jar>
</properties>
</profile>
<profile>
<id>default-tools.jar-mac</id>
<activation>
<file>
<exists>${java.home}/../Classes/classes.jar</exists>
</file>
</activation>
<properties>
<tools.jar>${java.home}/../Classes/classes.jar</tools.jar>
</properties>
</profile>
</profiles>
<build> <build>
<sourceDirectory>src/main</sourceDirectory> <sourceDirectory>src/main</sourceDirectory>
<testSourceDirectory>src/test</testSourceDirectory> <testSourceDirectory>src/test</testSourceDirectory>
...@@ -131,9 +166,20 @@ ...@@ -131,9 +166,20 @@
<directory>src/main</directory> <directory>src/main</directory>
<includes> <includes>
<include>**/*.prop</include> <include>**/*.prop</include>
<include>org/h2/res/help.csv</include>
</includes> </includes>
</resource> </resource>
</resources> </resources>
<testResources>
<testResource>
<directory>src/test</directory>
<includes>
<include>org/h2/test/testSimple.in.txt</include>
<include>org/h2/test/testScript.sql</include>
<include>org/h2/samples/newsfeed.sql</include>
</includes>
</testResource>
</testResources>
<plugins> <plugins>
<!-- Add tools folder to test sources but consider moving them to src/test --> <!-- Add tools folder to test sources but consider moving them to src/test -->
<plugin> <plugin>
...@@ -194,7 +240,9 @@ ...@@ -194,7 +240,9 @@
</signature> </signature>
</configuration> </configuration>
</plugin> </plugin>
<!-- Run our custom test suite --> <!-- Run our custom test suite.
This needed to be done with exec:exec as that forks a JVM otherwise there were difficulties
getting the ProxyCodeGenerator to work (maven uses a different ClassLoader) -->
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId> <artifactId>exec-maven-plugin</artifactId>
...@@ -204,14 +252,19 @@ ...@@ -204,14 +252,19 @@
<id>default-test</id> <id>default-test</id>
<phase>test</phase> <phase>test</phase>
<goals> <goals>
<goal>java</goal> <goal>exec</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
<configuration> <configuration>
<classpathScope>test</classpathScope> <classpathScope>test</classpathScope>
<mainClass>org.h2.test.TestAll</mainClass> <executable>java</executable>
<arguments> <arguments>
<argument>-classpath</argument>
<!-- automatically creates the classpath using all project dependencies,
also adding the project build directory -->
<classpath/>
<argument>org.h2.test.TestAll</argument>
<argument>fast</argument> <argument>fast</argument>
</arguments> </arguments>
</configuration> </configuration>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论