MAPREDUCE-6743. nativetask unit tests need to provide usable output; fix link errors during mvn test
This commit is contained in:
parent
62b42ef5dd
commit
be88d574a9
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue