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

Fixing issue with test failures on CentOS #23

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

bwatkinson
Copy link
Collaborator

The following two tests would always fail on my CentOS 8 box:

  1. test_xdd_passdelay
  2. test_xdd_startdelay

The issue was that the time package was not installed. We should make this a requirement as it is needed to run any tests that call the time command. After this update, all tests are passing fine on my CentOS 8 box.

cmake/FindTime.cmake Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@bwatkinson
Copy link
Collaborator Author

@MigeljanImeri after you have reviewed and approved I will squash these commits into one and then merge it into master.

The following two tests would always fail on my CentOS 8 box:
1. test_xdd_passdelay
2. test_xdd_startdelay

The issue was that the time package was not installed. I updated the
build system to check if it is installed. If it is not installed, CMake
will state that both the tests test_xdd_passdelay and
test_xdd_startdelay will be skipped when running ctest. If it is
installed all tests will run like normal with the time command using the
proper path to the binary (/usr/bin/time). I also updated the main
README to state that time is an optional dependency.

I did a little bit of cleanup in the test directory. I got rid of the
test_config.example as that was used for the previous way to run the
tests for XDD. We now set those variables and create the test_config
file using the CMakeLists.txt in the test directory. I also got rid of
the the run_tests.sh script as that is no longer necessary as we moved
to CMake CTest now.

Finally, I updated the README file in the test directory to give a
description of how to properly add new tests using the CMake CTest
infrastructure.

Signed-off-by: Brian Atkinson <batkinson@lanl.gov>
@bwatkinson bwatkinson merged commit ea701b4 into MigeljanImeri:xdd-2.0 Sep 13, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants