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

Issues with testing #149

Open
hiker opened this issue Nov 14, 2024 · 0 comments
Open

Issues with testing #149

hiker opened this issue Nov 14, 2024 · 0 comments

Comments

@hiker
Copy link

hiker commented Nov 14, 2024

When running cmake without disabling testing, I get some strange timeout problems:

[ 56%] Linking CXX executable test_hashtable
/usr/bin/cmake: /home/joerg/work/spack/var/spack/environments/lfric-v0/.spack-env/view/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
/usr/bin/cmake: /home/joerg/work/spack/var/spack/environments/lfric-v0/.spack-env/view/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
CMake Error at /usr/share/cmake-3.22/Modules/GoogleTestAddTests.cmake:83 (message):
  Error running test executable.

    Path: '/home/joerg/work/vernier/xx/tests/unit_tests/c++/test_profiler'
    Result: Process terminated due to timeout
    Output:
      

Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/GoogleTestAddTests.cmake:179 (gtest_discover_tests_impl)


make[2]: *** [tests/unit_tests/c++/CMakeFiles/test_profiler.dir/build.make:122: tests/unit_tests/c++/test_profiler] Error 1
make[2]: *** Deleting file 'tests/unit_tests/c++/test_profiler'
make[1]: *** [CMakeFiles/Makefile2:283: tests/unit_tests/c++/CMakeFiles/test_profiler.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMake Error at /usr/share/cmake-3.22/Modules/GoogleTestAddTests.cmake:83 (message):
  Error running test executable.

    Path: '/home/joerg/work/vernier/xx/tests/unit_tests/c++/test_hashtiming'
    Result: Process terminated due to timeout
    Output:
      

Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/GoogleTestAddTests.cmake:179 (gtest_discover_tests_impl)


make[2]: *** [tests/unit_tests/c++/CMakeFiles/test_hashtiming.dir/build.make:122: tests/unit_tests/c++/test_hashtiming] Error 1
make[2]: *** Deleting file 'tests/unit_tests/c++/test_hashtiming'
make[1]: *** [CMakeFiles/Makefile2:309: tests/unit_tests/c++/CMakeFiles/test_hashtiming.dir/all] Error 2
CMake Error at /usr/share/cmake-3.22/Modules/GoogleTestAddTests.cmake:83 (message):
  Error running test executable.

    Path: '/home/joerg/work/vernier/xx/tests/unit_tests/c++/test_regionname'
    Result: Process terminated due to timeout
    Output:
      

Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/GoogleTestAddTests.cmake:179 (gtest_discover_tests_impl)


make[2]: *** [tests/unit_tests/c++/CMakeFiles/test_regionname.dir/build.make:122: tests/unit_tests/c++/test_regionname] Error 1
make[2]: *** Deleting file 'tests/unit_tests/c++/test_regionname'
make[1]: *** [CMakeFiles/Makefile2:335: tests/unit_tests/c++/CMakeFiles/test_regionname.dir/all] Error 2
CMake Error at /usr/share/cmake-3.22/Modules/GoogleTestAddTests.cmake:83 (message):
  Error running test executable.

    Path: '/home/joerg/work/vernier/xx/tests/unit_tests/c++/test_hashtable'
    Result: Process terminated due to timeout
    Output:
      

Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/GoogleTestAddTests.cmake:179 (gtest_discover_tests_impl)


make[2]: *** [tests/unit_tests/c++/CMakeFiles/test_hashtable.dir/build.make:122: tests/unit_tests/c++/test_hashtable] Error 1
make[2]: *** Deleting file 'tests/unit_tests/c++/test_hashtable'
make[1]: *** [CMakeFiles/Makefile2:361: tests/unit_tests/c++/CMakeFiles/test_hashtable.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

I added googletest using spack (version 1.12.1). I then disabled testing in cmake, and it compiled.

No urgency from me to find the root cause, I don't need testing - I just thought to make you aware of this :)

It might be nicer if the default would be to disable tests, which also reduces dependencies - since as a user this is probably not required(?)

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

No branches or pull requests

1 participant