-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
3.9.1: test suite is failing #2845
Comments
Can you please try with a separate build directory? |
The build above is using a separate build directory:
I have the same issue, but instead of Fedora, I am building on RHEL 8. CMake output:
So the source code has been unpacked into
|
These tests are expected to fail unless executed on a Git checkout, see https://github.com/nlohmann/json#execute-unit-tests
(It should read: "test cmake_fetch_content_configure will fail.") |
So it should marked as expected to fail (xfail) |
I guess, but I have no idea how CTest can detect whether it is executed on a Git checkout. |
Thanks you for your answer! I read the #2189 and checked how Fedora builds 3.9.1. I am satisfied with the answers, so I consider this issue closed. |
Just tested 3.10.3 + cd json-3.10.3
+ /usr/bin/make -O -j48 V=1 VERBOSE=1 -C x86_64-redhat-linux-gnu test ARGS=--output-on-failure
make: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu'
Running tests...
/usr/bin/ctest --force-new-ctest-process --output-on-failure
Test project /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu
Start 1: download_test_data
1/123 Test #1: download_test_data ........................... Passed 0.24 sec
Start 2: test-algorithms
2/123 Test #2: test-algorithms .............................. Passed 0.01 sec
Start 3: test-algorithms_valgrind
3/123 Test #3: test-algorithms_valgrind ..................... Passed 1.29 sec
Start 4: test-allocator
4/123 Test #4: test-allocator ............................... Passed 0.00 sec
Start 5: test-allocator_valgrind
5/123 Test #5: test-allocator_valgrind ...................... Passed 0.98 sec
Start 6: test-alt-string
6/123 Test #6: test-alt-string .............................. Passed 0.01 sec
Start 7: test-alt-string_valgrind
7/123 Test #7: test-alt-string_valgrind ..................... Passed 0.81 sec
Start 8: test-assert_macro
8/123 Test #8: test-assert_macro ............................ Passed 0.01 sec
Start 9: test-assert_macro_valgrind
9/123 Test #9: test-assert_macro_valgrind ................... Passed 0.90 sec
Start 10: test-bson
10/123 Test #10: test-bson .................................... Passed 0.01 sec
Start 11: test-bson_valgrind
11/123 Test #11: test-bson_valgrind ........................... Passed 1.24 sec
Start 12: test-byte_container_with_subtype
12/123 Test #12: test-byte_container_with_subtype ............. Passed 0.00 sec
Start 13: test-byte_container_with_subtype_valgrind
13/123 Test #13: test-byte_container_with_subtype_valgrind .... Passed 0.58 sec
Start 14: test-capacity
14/123 Test #14: test-capacity ................................ Passed 0.00 sec
Start 15: test-capacity_valgrind
15/123 Test #15: test-capacity_valgrind ....................... Passed 0.78 sec
Start 16: test-cbor
16/123 Test #16: test-cbor .................................... Passed 8.37 sec
Start 17: test-cbor_valgrind
17/123 Test #17: test-cbor_valgrind ........................... Passed 21.44 sec
Start 18: test-class_const_iterator
18/123 Test #18: test-class_const_iterator .................... Passed 0.01 sec
Start 19: test-class_const_iterator_valgrind
19/123 Test #19: test-class_const_iterator_valgrind ........... Passed 1.11 sec
Start 20: test-class_iterator
20/123 Test #20: test-class_iterator .......................... Passed 0.00 sec
Start 21: test-class_iterator_valgrind
21/123 Test #21: test-class_iterator_valgrind ................. Passed 1.10 sec
Start 22: test-class_lexer
22/123 Test #22: test-class_lexer ............................. Passed 0.01 sec
Start 23: test-class_lexer_valgrind
23/123 Test #23: test-class_lexer_valgrind .................... Passed 0.86 sec
Start 24: test-class_parser
24/123 Test #24: test-class_parser ............................ Passed 0.18 sec
Start 25: test-class_parser_valgrind
25/123 Test #25: test-class_parser_valgrind ................... Passed 4.80 sec
Start 26: test-comparison
26/123 Test #26: test-comparison .............................. Passed 0.00 sec
Start 27: test-comparison_valgrind
27/123 Test #27: test-comparison_valgrind ..................... Passed 0.67 sec
Start 28: test-concepts
28/123 Test #28: test-concepts ................................ Passed 0.00 sec
Start 29: test-concepts_valgrind
29/123 Test #29: test-concepts_valgrind ....................... Passed 0.60 sec
Start 30: test-constructor1
30/123 Test #30: test-constructor1 ............................ Passed 0.01 sec
Start 31: test-constructor1_valgrind
31/123 Test #31: test-constructor1_valgrind ................... Passed 1.54 sec
Start 32: test-constructor2
32/123 Test #32: test-constructor2 ............................ Passed 0.00 sec
Start 33: test-constructor2_valgrind
33/123 Test #33: test-constructor2_valgrind ................... Passed 0.64 sec
Start 34: test-convenience
34/123 Test #34: test-convenience ............................. Passed 0.00 sec
Start 35: test-convenience_valgrind
35/123 Test #35: test-convenience_valgrind .................... Passed 0.67 sec
Start 36: test-conversions
36/123 Test #36: test-conversions ............................. Passed 0.01 sec
Start 37: test-conversions_valgrind
37/123 Test #37: test-conversions_valgrind .................... Passed 1.69 sec
Start 38: test-deserialization
38/123 Test #38: test-deserialization ......................... Passed 0.01 sec
Start 39: test-deserialization_valgrind
39/123 Test #39: test-deserialization_valgrind ................ Passed 1.60 sec
Start 40: test-diagnostics
40/123 Test #40: test-diagnostics ............................. Passed 0.00 sec
Start 41: test-diagnostics_valgrind
41/123 Test #41: test-diagnostics_valgrind .................... Passed 0.89 sec
Start 42: test-disabled_exceptions
42/123 Test #42: test-disabled_exceptions ..................... Passed 0.01 sec
Start 43: test-disabled_exceptions_valgrind
43/123 Test #43: test-disabled_exceptions_valgrind ............ Passed 0.86 sec
Start 44: test-element_access1
44/123 Test #44: test-element_access1 ......................... Passed 0.02 sec
Start 45: test-element_access1_valgrind
45/123 Test #45: test-element_access1_valgrind ................ Passed 1.60 sec
Start 46: test-element_access2
46/123 Test #46: test-element_access2 ......................... Passed 0.03 sec
Start 47: test-element_access2_valgrind
47/123 Test #47: test-element_access2_valgrind ................ Passed 1.95 sec
Start 48: test-hash
48/123 Test #48: test-hash .................................... Passed 0.00 sec
Start 49: test-hash_valgrind
49/123 Test #49: test-hash_valgrind ........................... Passed 0.58 sec
Start 50: test-inspection
50/123 Test #50: test-inspection .............................. Passed 1.13 sec
Start 51: test-inspection_valgrind
51/123 Test #51: test-inspection_valgrind ..................... Passed 40.61 sec
Start 52: test-items
52/123 Test #52: test-items ................................... Passed 0.01 sec
Start 53: test-items_valgrind
53/123 Test #53: test-items_valgrind .......................... Passed 1.33 sec
Start 54: test-iterators1
54/123 Test #54: test-iterators1 .............................. Passed 0.01 sec
Start 55: test-iterators1_valgrind
55/123 Test #55: test-iterators1_valgrind ..................... Passed 1.33 sec
Start 56: test-iterators2
56/123 Test #56: test-iterators2 .............................. Passed 0.02 sec
Start 57: test-iterators2_valgrind
57/123 Test #57: test-iterators2_valgrind ..................... Passed 1.65 sec
Start 58: test-json_patch
58/123 Test #58: test-json_patch .............................. Passed 0.02 sec
Start 59: test-json_patch_valgrind
59/123 Test #59: test-json_patch_valgrind ..................... Passed 1.87 sec
Start 60: test-json_pointer
60/123 Test #60: test-json_pointer ............................ Passed 0.01 sec
Start 61: test-json_pointer_valgrind
61/123 Test #61: test-json_pointer_valgrind ................... Passed 1.59 sec
Start 62: test-large_json
62/123 Test #62: test-large_json .............................. Passed 0.94 sec
Start 63: test-large_json_valgrind
63/123 Test #63: test-large_json_valgrind ..................... Passed 32.19 sec
Start 64: test-merge_patch
64/123 Test #64: test-merge_patch ............................. Passed 0.01 sec
Start 65: test-merge_patch_valgrind
65/123 Test #65: test-merge_patch_valgrind .................... Passed 1.00 sec
Start 66: test-meta
66/123 Test #66: test-meta .................................... Passed 0.00 sec
Start 67: test-meta_valgrind
67/123 Test #67: test-meta_valgrind ........................... Passed 0.90 sec
Start 68: test-modifiers
68/123 Test #68: test-modifiers ............................... Passed 0.02 sec
Start 69: test-modifiers_valgrind
69/123 Test #69: test-modifiers_valgrind ...................... Passed 1.66 sec
Start 70: test-msgpack
70/123 Test #70: test-msgpack ................................. Passed 8.70 sec
Start 71: test-msgpack_valgrind
71/123 Test #71: test-msgpack_valgrind ........................ Passed 19.37 sec
Start 72: test-noexcept
72/123 Test #72: test-noexcept ................................ Passed 0.01 sec
Start 73: test-noexcept_valgrind
73/123 Test #73: test-noexcept_valgrind ....................... Passed 0.86 sec
Start 74: test-ordered_json
74/123 Test #74: test-ordered_json ............................ Passed 0.01 sec
Start 75: test-ordered_json_valgrind
75/123 Test #75: test-ordered_json_valgrind ................... Passed 0.98 sec
Start 76: test-ordered_map
76/123 Test #76: test-ordered_map ............................. Passed 0.01 sec
Start 77: test-ordered_map_valgrind
77/123 Test #77: test-ordered_map_valgrind .................... Passed 1.07 sec
Start 78: test-pointer_access
78/123 Test #78: test-pointer_access .......................... Passed 0.00 sec
Start 79: test-pointer_access_valgrind
79/123 Test #79: test-pointer_access_valgrind ................. Passed 1.11 sec
Start 80: test-readme
80/123 Test #80: test-readme .................................. Passed 0.01 sec
Start 81: test-readme_valgrind
81/123 Test #81: test-readme_valgrind ......................... Passed 0.81 sec
Start 82: test-reference_access
82/123 Test #82: test-reference_access ........................ Passed 0.00 sec
Start 83: test-reference_access_valgrind
83/123 Test #83: test-reference_access_valgrind ............... Passed 0.99 sec
Start 84: test-regression1
84/123 Test #84: test-regression1 ............................. Passed 1.52 sec
Start 85: test-regression1_valgrind
85/123 Test #85: test-regression1_valgrind .................... Passed 53.77 sec
Start 86: test-regression2
86/123 Test #86: test-regression2 ............................. Passed 0.01 sec
Start 87: test-regression2_valgrind
87/123 Test #87: test-regression2_valgrind .................... Passed 1.52 sec
Start 88: test-serialization
88/123 Test #88: test-serialization ........................... Passed 0.01 sec
Start 89: test-serialization_valgrind
89/123 Test #89: test-serialization_valgrind .................. Passed 0.83 sec
Start 90: test-testsuites
90/123 Test #90: test-testsuites .............................. Passed 0.07 sec
Start 91: test-testsuites_valgrind
91/123 Test #91: test-testsuites_valgrind ..................... Passed 2.28 sec
Start 92: test-to_chars
92/123 Test #92: test-to_chars ................................ Passed 0.00 sec
Start 93: test-to_chars_valgrind
93/123 Test #93: test-to_chars_valgrind ....................... Passed 0.72 sec
Start 94: test-ubjson
94/123 Test #94: test-ubjson .................................. Passed 2.42 sec
Start 95: test-ubjson_valgrind
95/123 Test #95: test-ubjson_valgrind ......................... Passed 16.43 sec
Start 96: test-udt
96/123 Test #96: test-udt ..................................... Passed 0.01 sec
Start 97: test-udt_valgrind
97/123 Test #97: test-udt_valgrind ............................ Passed 1.25 sec
Start 98: test-udt_macro
98/123 Test #98: test-udt_macro ............................... Passed 0.01 sec
Start 99: test-udt_macro_valgrind
99/123 Test #99: test-udt_macro_valgrind ...................... Passed 0.88 sec
Start 100: test-unicode1
100/123 Test #100: test-unicode1 ................................ Passed 2.45 sec
Start 101: test-unicode1_valgrind
101/123 Test #101: test-unicode1_valgrind ....................... Passed 1.20 sec
Start 102: test-unicode2
102/123 Test #102: test-unicode2 ................................ Passed 8.81 sec
Start 103: test-unicode2_valgrind
103/123 Test #103: test-unicode2_valgrind ....................... Passed 0.80 sec
Start 104: test-unicode3
104/123 Test #104: test-unicode3 ................................ Passed 33.80 sec
Start 105: test-unicode3_valgrind
105/123 Test #105: test-unicode3_valgrind ....................... Passed 0.80 sec
Start 106: test-unicode4
106/123 Test #106: test-unicode4 ................................ Passed 106.65 sec
Start 107: test-unicode4_valgrind
107/123 Test #107: test-unicode4_valgrind ....................... Passed 0.81 sec
Start 108: test-unicode5
108/123 Test #108: test-unicode5 ................................ Passed 26.32 sec
Start 109: test-unicode5_valgrind
109/123 Test #109: test-unicode5_valgrind ....................... Passed 0.80 sec
Start 110: test-user_defined_input
110/123 Test #110: test-user_defined_input ...................... Passed 0.00 sec
Start 111: test-user_defined_input_valgrind
111/123 Test #111: test-user_defined_input_valgrind ............. Passed 0.79 sec
Start 112: test-wstring
112/123 Test #112: test-wstring ................................. Passed 0.00 sec
Start 113: test-wstring_valgrind
113/123 Test #113: test-wstring_valgrind ........................ Passed 0.73 sec
Start 114: cmake_import_configure
114/123 Test #114: cmake_import_configure ....................... Passed 0.58 sec
Start 115: cmake_import_build
115/123 Test #115: cmake_import_build ........................... Passed 4.22 sec
Start 116: cmake_import_minver_configure
116/123 Test #116: cmake_import_minver_configure ................ Passed 0.60 sec
Start 117: cmake_import_minver_build
117/123 Test #117: cmake_import_minver_build .................... Passed 2.15 sec
Start 118: cmake_add_subdirectory_configure
118/123 Test #118: cmake_add_subdirectory_configure ............. Passed 0.62 sec
Start 119: cmake_add_subdirectory_build
119/123 Test #119: cmake_add_subdirectory_build ................. Passed 6.32 sec
Start 120: cmake_fetch_content_configure
120/123 Test #120: cmake_fetch_content_configure ................***Failed 1.15 sec
Re-run cmake no build system arguments
-- The CXX compiler identification is GNU 11.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
gmake[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
/usr/bin/cmake -S/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild -B/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/CMakeFiles /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild//CMakeFiles/progress.marks
/usr/bin/gmake -f CMakeFiles/Makefile2 all
gmake[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
/usr/bin/gmake -f CMakeFiles/json-populate.dir/build.make CMakeFiles/json-populate.dir/depend
gmake[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
cd /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/CMakeFiles/json-populate.dir/DependInfo.cmake --color=
gmake[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
/usr/bin/gmake -f CMakeFiles/json-populate.dir/build.make CMakeFiles/json-populate.dir/build
gmake[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
[ 11%] Creating directories for 'json-populate'
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-src
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-build
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/tmp
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/src/json-populate-stamp
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/src
/usr/bin/cmake -E make_directory /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/src/json-populate-stamp
/usr/bin/cmake -E touch /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/src/json-populate-stamp/json-populate-mkdir
[ 22%] Performing download step (git clone) for 'json-populate'
cd /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps && /usr/bin/cmake -P /home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild/json-populate-prefix/tmp/json-populate-gitclone.cmake
fatal: repository '/home/tkloczko/rpmbuild/BUILD/json-3.10.3' does not exist
fatal: repository '/home/tkloczko/rpmbuild/BUILD/json-3.10.3' does not exist
fatal: repository '/home/tkloczko/rpmbuild/BUILD/json-3.10.3' does not exist
-- Had to git clone more than once:
3 times.
CMake Error at json-subbuild/json-populate-prefix/tmp/json-populate-gitclone.cmake:31 (message):
Failed to clone repository: '/home/tkloczko/rpmbuild/BUILD/json-3.10.3'
gmake[3]: *** [CMakeFiles/json-populate.dir/build.make:102: json-populate-prefix/src/json-populate-stamp/json-populate-download] Error 1
gmake[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
gmake[2]: *** [CMakeFiles/Makefile2:83: CMakeFiles/json-populate.dir/all] Error 2
gmake[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
gmake[1]: *** [Makefile:91: all] Error 2
gmake[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/_deps/json-subbuild'
CMake Error at /usr/share/cmake/Modules/FetchContent.cmake:1017 (message):
Build step for json failed: 2
Call Stack (most recent call first):
/usr/share/cmake/Modules/FetchContent.cmake:1146:EVAL:2 (__FetchContent_directPopulate)
/usr/share/cmake/Modules/FetchContent.cmake:1146 (cmake_language)
CMakeLists.txt:12 (FetchContent_Populate)
-- Configuring incomplete, errors occurred!
See also "/home/tkloczko/rpmbuild/BUILD/json-3.10.3/x86_64-redhat-linux-gnu/test/cmake_fetch_content/CMakeFiles/CMakeOutput.log".
Start 121: cmake_fetch_content_build
Failed test dependencies: cmake_fetch_content_configure
121/123 Test #121: cmake_fetch_content_build ....................***Not Run 0.00 sec
Start 122: cmake_target_include_directories_configure
122/123 Test #122: cmake_target_include_directories_configure ... Passed 0.61 sec
Start 123: cmake_target_include_directories_build
123/123 Test #123: cmake_target_include_directories_build ....... Passed 8.41 sec
98% tests passed, 2 tests failed out of 123
Label Time Summary:
all = 201.67 sec*proc (56 tests)
git_required = 1.15 sec*proc (2 tests)
not_reproducible = 24.66 sec*proc (10 tests)
valgrind = 242.16 sec*proc (56 tests)
Total Test time (real) = 468.86 sec
The following tests FAILED:
120 - cmake_fetch_content_configure (Failed)
121 - cmake_fetch_content_build (Not Run)
Errors while running CTest |
This is still the original issue. See the README:
|
cnake setup:
Which version of the library did you use?
3.9.1
develop
branchThe text was updated successfully, but these errors were encountered: