Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CMake install rule for tests #10190

Merged
merged 9 commits into from
Feb 7, 2022

Conversation

ajschmidt8
Copy link
Member

This PR adds a CMake install rule for test targets. This step is a prerequisite to being able to package tests in their own conda package, which will enable us to deprecate Project Flash.

This PR adds a CMake `install` rule for test targets. This step is a prerequisite to being able to package tests in their own `conda` package, which will enable us to deprecate _Project Flash_.
@ajschmidt8 ajschmidt8 added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Feb 2, 2022
@ajschmidt8 ajschmidt8 requested a review from a team as a code owner February 2, 2022 16:33
@ajschmidt8 ajschmidt8 requested a review from ttnghia February 2, 2022 16:33
@github-actions github-actions bot added CMake CMake build issue libcudf Affects libcudf (C++/CUDA) code. labels Feb 2, 2022
Copy link
Contributor

@ttnghia ttnghia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval, pending cmake-style fix.

Copy link
Contributor

@robertmaynard robertmaynard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to also change the tests to have a INSTALL_RPATH target property of "\$ORIGIN/../lib" so that they can be run after installation.

--- a/cpp/tests/CMakeLists.txt
+++ b/cpp/tests/CMakeLists.txt
@@ -22,7 +22,9 @@ function(ConfigureTest CMAKE_TEST_NAME)
   set_target_properties(
     ${CMAKE_TEST_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY
                                   "$<BUILD_INTERFACE:${CUDF_BINARY_DIR}/gtests>"
+                                  INSTALL_RPATH "\$ORIGIN/../lib"
   )
+

@codecov
Copy link

codecov bot commented Feb 2, 2022

Codecov Report

❗ No coverage uploaded for pull request base (branch-22.04@8d2a9cc). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##             branch-22.04   #10190   +/-   ##
===============================================
  Coverage                ?   10.47%           
===============================================
  Files                   ?      122           
  Lines                   ?    20502           
  Branches                ?        0           
===============================================
  Hits                    ?     2147           
  Misses                  ?    18355           
  Partials                ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d2a9cc...dd7b30c. Read the comment docs.

@ajschmidt8
Copy link
Member Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit e3611a2 into rapidsai:branch-22.04 Feb 7, 2022
@ajschmidt8 ajschmidt8 deleted the add-install-rules branch February 7, 2022 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CMake CMake build issue improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants