|
@@ -162,23 +162,15 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<target>
|
|
<target>
|
|
<property name="compile_classpath" refid="maven.compile.classpath"/>
|
|
<property name="compile_classpath" refid="maven.compile.classpath"/>
|
|
<property name="test_classpath" refid="maven.test.classpath"/>
|
|
<property name="test_classpath" refid="maven.test.classpath"/>
|
|
- <macrodef name="run-test">
|
|
|
|
- <attribute name="test"/>
|
|
|
|
- <sequential>
|
|
|
|
- <echo message="Running @{test}"/>
|
|
|
|
- <exec executable="${project.build.directory}/native/RelWithDebInfo/@{test}" failonerror="true" dir="${project.build.directory}/native/">
|
|
|
|
- <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
|
|
|
|
- <!-- HADOOP_HOME required to find winutils. -->
|
|
|
|
- <env key="HADOOP_HOME" value="${hadoop.common.build.dir}"/>
|
|
|
|
- <!-- Make sure hadoop.dll and jvm.dll are on PATH. -->
|
|
|
|
- <env key="PATH" value="${env.PATH};${hadoop.common.build.dir}/bin;${java.home}/jre/bin/server;${java.home}/bin/server"/>
|
|
|
|
- </exec>
|
|
|
|
- <echo message="Finished @{test}"/>
|
|
|
|
- </sequential>
|
|
|
|
- </macrodef>
|
|
|
|
- <run-test test="test_libhdfs_threaded_hdfs_static"/>
|
|
|
|
- <echo message="Skipping test_libhdfs_zerocopy"/>
|
|
|
|
- <run-test test="test_native_mini_dfs"/>
|
|
|
|
|
|
+ <target>
|
|
|
|
+ <property name="compile_classpath" refid="maven.compile.classpath"/>
|
|
|
|
+ <property name="test_classpath" refid="maven.test.classpath"/>
|
|
|
|
+ <exec executable="ctest" failonerror="true" dir="${project.build.directory}/">
|
|
|
|
+ <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
|
|
|
|
+ <!-- Make sure libhadoop.so is on LD_LIBRARY_PATH. -->
|
|
|
|
+ <env key="LD_LIBRARY_PATH" value="${env.LD_LIBRARY_PATH}:${project.build.directory}/target/usr/local/lib:${hadoop.common.build.dir}/native/target/usr/local/lib"/>
|
|
|
|
+ </exec>
|
|
|
|
+ </target>
|
|
</target>
|
|
</target>
|
|
</configuration>
|
|
</configuration>
|
|
</execution>
|
|
</execution>
|
|
@@ -225,21 +217,11 @@ http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<target>
|
|
<target>
|
|
<property name="compile_classpath" refid="maven.compile.classpath"/>
|
|
<property name="compile_classpath" refid="maven.compile.classpath"/>
|
|
<property name="test_classpath" refid="maven.test.classpath"/>
|
|
<property name="test_classpath" refid="maven.test.classpath"/>
|
|
- <macrodef name="run-test">
|
|
|
|
- <attribute name="test"/>
|
|
|
|
- <sequential>
|
|
|
|
- <echo message="Running @{test} ${compile_classpath} ${test_classpath}"/>
|
|
|
|
- <exec executable="${project.build.directory}/main/native/libhdfs/@{test}" failonerror="true" dir="${project.build.directory}/">
|
|
|
|
- <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
|
|
|
|
- <!-- Make sure libhadoop.so is on LD_LIBRARY_PATH. -->
|
|
|
|
- <env key="LD_LIBRARY_PATH" value="${env.LD_LIBRARY_PATH}:${project.build.directory}/target/usr/local/lib:${hadoop.common.build.dir}/native/target/usr/local/lib"/>
|
|
|
|
- </exec>
|
|
|
|
- <echo message="Finished @{test}"/>
|
|
|
|
- </sequential>
|
|
|
|
- </macrodef>
|
|
|
|
- <run-test test="test_libhdfs_threaded_hdfs_static"/>
|
|
|
|
- <run-test test="test_libhdfs_zerocopy_hdfs_static"/>
|
|
|
|
- <run-test test="../libhdfs-tests/test_native_mini_dfs"/>
|
|
|
|
|
|
+ <exec executable="ctest" failonerror="true" dir="${project.build.directory}/">
|
|
|
|
+ <env key="CLASSPATH" value="${test_classpath}:${compile_classpath}"/>
|
|
|
|
+ <!-- Make sure libhadoop.so is on LD_LIBRARY_PATH. -->
|
|
|
|
+ <env key="LD_LIBRARY_PATH" value="${env.LD_LIBRARY_PATH}:${project.build.directory}/target/usr/local/lib:${hadoop.common.build.dir}/native/target/usr/local/lib"/>
|
|
|
|
+ </exec>
|
|
</target>
|
|
</target>
|
|
</configuration>
|
|
</configuration>
|
|
</execution>
|
|
</execution>
|