MAPREDUCE-6743. nativetask unit tests need to provide usable output; fix link errors during mvn test

This commit is contained in:
Allen Wittenauer 2016-11-28 15:24:44 -08:00
parent 62b42ef5dd
commit be88d574a9
4 changed files with 2852 additions and 904 deletions

View File

@ -207,12 +207,16 @@
<phase>test</phase>
<goals><goal>cmake-test</goal></goals>
<configuration>
<testName>test-native-task</testName>
<!-- this should match the xml name without the TEST-part down below -->
<testName>nativetask-nttest</testName>
<workingDirectory>${project.build.directory}/native/test</workingDirectory>
<source>${basedir}/src</source>
<binary>${project.build.directory}/native/test/nttest</binary>
<args><arg>--gtest_filter=-Perf.</arg></args>
<results>${project.build.directory}/native/test/native-results</results>
<args>
<arg>--gtest_filter=-Perf.</arg>
<arg>--gtest_output=xml:${project.build.directory}/surefire-reports/TEST-nativetask-nttest.xml</arg>
</args>
<results>${project.build.directory}/surefire-reports</results>
</configuration>
</execution>
</executions>

View File

@ -98,7 +98,9 @@ include_directories(
# add gtest as system library to suppress gcc warnings
include_directories(SYSTEM ${SRC}/gtest/include)
set(CMAKE_MACOSX_RPATH TRUE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
# macosx does not have -lrt