-
Notifications
You must be signed in to change notification settings - Fork 67
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
C++ Test #440
C++ Test #440
Conversation
5bd6ffc
to
eebb208
Compare
ci/run_ctests.sh
Outdated
# TODO: how to use ctest instead of executing the test directly? | ||
# The following line fails with a "ctest doesn't exist" in CI. | ||
# Do we need to install ctest in the CI images? | ||
# ctest --no-tests=error --output-on-failure "$@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to install ctest
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to install cmake. Add to the test_cpp group.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR probably needs to update build.sh
. Also check the libkvikio-tests
conda packaging and install script to make sure we aren't missing anything there.
Co-authored-by: Bradley Dice <[email protected]>
For now, I think I think |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good to me, with one possible exception of using gha-tools
in run_ctests.sh
.
ci/run_ctests.sh
Outdated
rapids-logger "Run BASIC_IO_EXAMPLE" | ||
./BASIC_IO_EXAMPLE | ||
rapids-logger "Run BASIC_NO_CUDA_EXAMPLE" | ||
./BASIC_NO_CUDA_EXAMPLE | ||
|
||
# Run gtests | ||
rapids-logger "Run gtests" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a weak preference to avoid rapids-logger
commands in the run_*.sh
scripts because I think those are intended for reuse outside of the CI workflows (in DLFW, perhaps?). In other use cases, the gha-tools
utilities may not be present. Either use echo
or replace the rapids-logger
statements with code comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@trxcllnt may have comments about appropriate use cases here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have removed the rapids-logger use
/merge |
Implement very basic C++ tests.