nlohmann / json

JSON for Modern C++
https://json.nlohmann.me
MIT License
43.21k stars 6.74k forks source link

3.11.2: test suite is failing in two units #3828

Closed kloczek closed 2 years ago

kloczek commented 2 years ago

Description

Looks like test suite is failing in two units.

Reproduction steps

cmake settings:

-- Cache values
BUILD_TESTING:BOOL=ON
CMAKE_BUILD_TYPE:STRING=RelWithDebInfo
CMAKE_INSTALL_PREFIX:PATH=/usr
CMAKE_MEMORYCHECK_COMMAND:FILEPATH=/usr/bin/valgrind
JSON_32bitTest:STRING=AUTO
JSON_BuildTests:BOOL=ON
JSON_CI:BOOL=OFF
JSON_Diagnostics:BOOL=OFF
JSON_DisableEnumSerialization:BOOL=OFF
JSON_FastTests:BOOL=OFF
JSON_GlobalUDLs:BOOL=ON
JSON_ImplicitConversions:BOOL=ON
JSON_Install:BOOL=ON
JSON_LegacyDiscardedValueComparison:BOOL=OFF
JSON_MultipleHeaders:BOOL=ON
JSON_SystemInclude:BOOL=OFF
JSON_TestStandards:STRING=
JSON_Valgrind:BOOL=ON
LSB_RELEASE_COMMAND:FILEPATH=LSB_RELEASE_COMMAND-NOTFOUND
SW_VERS_COMMAND:FILEPATH=SW_VERS_COMMAND-NOTFOUND
UNAME_COMMAND:FILEPATH=/usr/bin/uname
VER_COMMAND:FILEPATH=VER_COMMAND-NOTFOUND

Expected vs. actual results

test suite should not fail

Minimal code example

N/A

Error messages

+ cd json-3.11.2
+ DESTDIR=/home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64
+ /usr/bin/cmake --install x86_64-redhat-linux-gnu
-- Install configuration: "RelWithDebInfo"
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/adl_serializer.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/byte_container_with_subtype.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/abi_macros.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/conversions
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/conversions/from_json.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/conversions/to_chars.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/conversions/to_json.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/exceptions.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/hash.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/input
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/input/binary_reader.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/input/input_adapters.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/input/json_sax.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/input/lexer.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/input/parser.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/input/position_t.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/iterators
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/iterators/internal_iterator.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/iterators/iter_impl.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/iterators/iteration_proxy.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/iterators/iterator_traits.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/iterators/json_reverse_iterator.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/iterators/primitive_iterator.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/json_pointer.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/json_ref.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/macro_scope.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/macro_unscope.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/meta
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/meta/call_std
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/meta/call_std/begin.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/meta/call_std/end.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/meta/cpp_future.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/meta/detected.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/meta/identity_tag.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/meta/is_sax.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/meta/std_fs.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/meta/type_traits.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/meta/void_t.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/output
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/output/binary_writer.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/output/output_adapters.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/output/serializer.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/string_concat.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/string_escape.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/detail/value_t.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/json.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/json_fwd.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/ordered_map.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/thirdparty
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/thirdparty/hedley
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/thirdparty/hedley/hedley.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/include/nlohmann/thirdparty/hedley/hedley_undef.hpp
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/share/cmake/nlohmann_json/nlohmann_jsonConfig.cmake
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/share/cmake/nlohmann_json/nlohmann_jsonConfigVersion.cmake
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/share/cmake/nlohmann_json/nlohmann_jsonTargets.cmake
-- Installing: /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/share/pkgconfig/nlohmann_json.pc
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip /usr/bin/strip
+ /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ '[' -f /usr/bin/python3 ']'
+ PYTHONPATH=/usr/lib/rpm/redhat
+ PYTHONHASHSEED=0
+ /usr/bin/python3 -sBm compileall2 -f -j48 -o 0 -o 1 -o 2 -s /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64 -p / /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/lib64/python3.8/site-packages /home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/lib/python3.8/site-packages
Listing '/home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/lib64/python3.8/site-packages'...
Can't list '/home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/lib64/python3.8/site-packages'
Listing '/home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/lib/python3.8/site-packages'...
Can't list '/home/tkloczko/rpmbuild/BUILDROOT/json-3.11.2-2.fc35.x86_64/usr/lib/python3.8/site-packages'
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.ZLsfbK
+ umask 022
+ cd /home/tkloczko/rpmbuild/BUILD
+ CFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
+ CXXFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none'
+ FFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'
+ FCFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules'
+ LDFLAGS='-Wl,--as-needed -Wl,--gc-sections -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,--build-id=sha1'
+ CC=/usr/bin/gcc
+ CXX=/usr/bin/g++
+ FC=/usr/bin/gfortran
+ AR=/usr/bin/gcc-ar
+ NM=/usr/bin/gcc-nm
+ RANLIB=/usr/bin/gcc-ranlib
+ export CFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS CC CXX FC AR NM RANLIB
+ cd json-3.11.2
+ /usr/bin/make -O -j48 V=1 VERBOSE=1 -C x86_64-redhat-linux-gnu test ARGS=--output-on-failure 'ARGS=--output-on-failure \
                -E "^(cmake_fetch_content_configure|cmake_fetch_content_build)"'
make: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu'
Running tests...
/usr/bin/ctest --force-new-ctest-process --output-on-failure \
        -E "^(cmake_fetch_content_configure|cmake_fetch_content_build)"
Test project /home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu
        Start   1: download_test_data
  1/162 Test   #1: download_test_data ................................   Passed    0.20 sec
        Start   2: test-algorithms_cpp11
  2/162 Test   #2: test-algorithms_cpp11 .............................   Passed    0.01 sec
        Start   3: test-algorithms_cpp11_valgrind
  3/162 Test   #3: test-algorithms_cpp11_valgrind ....................   Passed    0.97 sec
        Start   4: test-allocator_cpp11
  4/162 Test   #4: test-allocator_cpp11 ..............................   Passed    0.00 sec
        Start   5: test-allocator_cpp11_valgrind
  5/162 Test   #5: test-allocator_cpp11_valgrind .....................   Passed    0.74 sec
        Start   6: test-alt-string_cpp11
  6/162 Test   #6: test-alt-string_cpp11 .............................   Passed    0.01 sec
        Start   7: test-alt-string_cpp11_valgrind
  7/162 Test   #7: test-alt-string_cpp11_valgrind ....................   Passed    0.77 sec
        Start   8: test-assert_macro_cpp11
  8/162 Test   #8: test-assert_macro_cpp11 ...........................   Passed    0.01 sec
        Start   9: test-assert_macro_cpp11_valgrind
  9/162 Test   #9: test-assert_macro_cpp11_valgrind ..................   Passed    0.67 sec
        Start  10: test-binary_formats_cpp11
 10/162 Test  #10: test-binary_formats_cpp11 .........................   Passed    4.41 sec
        Start  11: test-binary_formats_cpp11_valgrind
 11/162 Test  #11: test-binary_formats_cpp11_valgrind ................   Passed    0.64 sec
        Start  12: test-bjdata_cpp11
 12/162 Test  #12: test-bjdata_cpp11 .................................   Passed    1.96 sec
        Start  13: test-bjdata_cpp11_valgrind
 13/162 Test  #13: test-bjdata_cpp11_valgrind ........................   Passed   25.81 sec
        Start  14: test-bson_cpp11
 14/162 Test  #14: test-bson_cpp11 ...................................   Passed    0.01 sec
        Start  15: test-bson_cpp11_valgrind
 15/162 Test  #15: test-bson_cpp11_valgrind ..........................   Passed    1.40 sec
        Start  16: test-byte_container_with_subtype_cpp11
 16/162 Test  #16: test-byte_container_with_subtype_cpp11 ............   Passed    0.00 sec
        Start  17: test-byte_container_with_subtype_cpp11_valgrind
 17/162 Test  #17: test-byte_container_with_subtype_cpp11_valgrind ...   Passed    0.75 sec
        Start  18: test-capacity_cpp11
 18/162 Test  #18: test-capacity_cpp11 ...............................   Passed    0.01 sec
        Start  19: test-capacity_cpp11_valgrind
 19/162 Test  #19: test-capacity_cpp11_valgrind ......................   Passed    0.99 sec
        Start  20: test-cbor_cpp11
 20/162 Test  #20: test-cbor_cpp11 ...................................   Passed    9.28 sec
        Start  21: test-cbor_cpp11_valgrind
 21/162 Test  #21: test-cbor_cpp11_valgrind ..........................   Passed   25.21 sec
        Start  22: test-class_const_iterator_cpp11
 22/162 Test  #22: test-class_const_iterator_cpp11 ...................   Passed    0.01 sec
        Start  23: test-class_const_iterator_cpp11_valgrind
 23/162 Test  #23: test-class_const_iterator_cpp11_valgrind ..........   Passed    0.84 sec
        Start  24: test-class_iterator_cpp11
 24/162 Test  #24: test-class_iterator_cpp11 .........................   Passed    0.01 sec
        Start  25: test-class_iterator_cpp11_valgrind
 25/162 Test  #25: test-class_iterator_cpp11_valgrind ................   Passed    0.85 sec
        Start  26: test-class_lexer_cpp11
 26/162 Test  #26: test-class_lexer_cpp11 ............................   Passed    0.01 sec
        Start  27: test-class_lexer_cpp11_valgrind
 27/162 Test  #27: test-class_lexer_cpp11_valgrind ...................   Passed    0.77 sec
        Start  28: test-class_parser_cpp11
 28/162 Test  #28: test-class_parser_cpp11 ...........................   Passed    0.08 sec
        Start  29: test-class_parser_cpp11_valgrind
 29/162 Test  #29: test-class_parser_cpp11_valgrind ..................   Passed    4.11 sec
        Start  30: test-comparison_cpp11
 30/162 Test  #30: test-comparison_cpp11 .............................   Passed    0.00 sec
        Start  31: test-comparison_cpp11_valgrind
 31/162 Test  #31: test-comparison_cpp11_valgrind ....................   Passed    0.88 sec
        Start  32: test-comparison_cpp20
 32/162 Test  #32: test-comparison_cpp20 .............................   Passed    0.00 sec
        Start  33: test-comparison_cpp20_valgrind
 33/162 Test  #33: test-comparison_cpp20_valgrind ....................   Passed    0.83 sec
        Start  34: test-concepts_cpp11
 34/162 Test  #34: test-concepts_cpp11 ...............................   Passed    0.00 sec
        Start  35: test-concepts_cpp11_valgrind
 35/162 Test  #35: test-concepts_cpp11_valgrind ......................   Passed    0.67 sec
        Start  36: test-constructor1_cpp11
 36/162 Test  #36: test-constructor1_cpp11 ...........................   Passed    0.02 sec
        Start  37: test-constructor1_cpp11_valgrind
 37/162 Test  #37: test-constructor1_cpp11_valgrind ..................   Passed    1.54 sec
        Start  38: test-constructor2_cpp11
 38/162 Test  #38: test-constructor2_cpp11 ...........................   Passed    0.00 sec
        Start  39: test-constructor2_cpp11_valgrind
 39/162 Test  #39: test-constructor2_cpp11_valgrind ..................   Passed    0.71 sec
        Start  40: test-convenience_cpp11
 40/162 Test  #40: test-convenience_cpp11 ............................   Passed    0.01 sec
        Start  41: test-convenience_cpp11_valgrind
 41/162 Test  #41: test-convenience_cpp11_valgrind ...................   Passed    0.77 sec
        Start  42: test-conversions_cpp11
 42/162 Test  #42: test-conversions_cpp11 ............................   Passed    0.01 sec
        Start  43: test-conversions_cpp11_valgrind
 43/162 Test  #43: test-conversions_cpp11_valgrind ...................   Passed    1.55 sec
        Start  44: test-conversions_cpp17
 44/162 Test  #44: test-conversions_cpp17 ............................   Passed    0.01 sec
        Start  45: test-conversions_cpp17_valgrind
 45/162 Test  #45: test-conversions_cpp17_valgrind ...................   Passed    1.51 sec
        Start  46: test-deserialization_cpp11
 46/162 Test  #46: test-deserialization_cpp11 ........................   Passed    0.02 sec
        Start  47: test-deserialization_cpp11_valgrind
 47/162 Test  #47: test-deserialization_cpp11_valgrind ...............   Passed    1.67 sec
        Start  48: test-diagnostics_cpp11
 48/162 Test  #48: test-diagnostics_cpp11 ............................   Passed    0.00 sec
        Start  49: test-diagnostics_cpp11_valgrind
 49/162 Test  #49: test-diagnostics_cpp11_valgrind ...................   Passed    0.86 sec
        Start  50: test-disabled_exceptions_cpp11
 50/162 Test  #50: test-disabled_exceptions_cpp11 ....................   Passed    0.01 sec
        Start  51: test-disabled_exceptions_cpp11_valgrind
 51/162 Test  #51: test-disabled_exceptions_cpp11_valgrind ...........   Passed    0.60 sec
        Start  52: test-element_access1_cpp11
 52/162 Test  #52: test-element_access1_cpp11 ........................   Passed    0.01 sec
        Start  53: test-element_access1_cpp11_valgrind
 53/162 Test  #53: test-element_access1_cpp11_valgrind ...............   Passed    1.13 sec
        Start  54: test-element_access2_cpp11
 54/162 Test  #54: test-element_access2_cpp11 ........................   Passed    0.03 sec
        Start  55: test-element_access2_cpp11_valgrind
 55/162 Test  #55: test-element_access2_cpp11_valgrind ...............   Passed    2.55 sec
        Start  56: test-element_access2_cpp14
 56/162 Test  #56: test-element_access2_cpp14 ........................   Passed    0.01 sec
        Start  57: test-element_access2_cpp14_valgrind
 57/162 Test  #57: test-element_access2_cpp14_valgrind ...............   Passed    2.40 sec
        Start  58: test-element_access2_cpp17
 58/162 Test  #58: test-element_access2_cpp17 ........................   Passed    0.01 sec
        Start  59: test-element_access2_cpp17_valgrind
 59/162 Test  #59: test-element_access2_cpp17_valgrind ...............   Passed    3.11 sec
        Start  60: test-hash_cpp11
 60/162 Test  #60: test-hash_cpp11 ...................................   Passed    0.01 sec
        Start  61: test-hash_cpp11_valgrind
 61/162 Test  #61: test-hash_cpp11_valgrind ..........................   Passed    0.65 sec
        Start  62: test-inspection_cpp11
 62/162 Test  #62: test-inspection_cpp11 .............................   Passed    1.12 sec
        Start  63: test-inspection_cpp11_valgrind
 63/162 Test  #63: test-inspection_cpp11_valgrind ....................   Passed   41.04 sec
        Start  64: test-items_cpp11
 64/162 Test  #64: test-items_cpp11 ..................................   Passed    0.00 sec
        Start  65: test-items_cpp11_valgrind
 65/162 Test  #65: test-items_cpp11_valgrind .........................   Passed    0.94 sec
        Start  66: test-items_cpp17
 66/162 Test  #66: test-items_cpp17 ..................................   Passed    0.00 sec
        Start  67: test-items_cpp17_valgrind
 67/162 Test  #67: test-items_cpp17_valgrind .........................   Passed    0.95 sec
        Start  68: test-iterators1_cpp11
 68/162 Test  #68: test-iterators1_cpp11 .............................   Passed    0.00 sec
        Start  69: test-iterators1_cpp11_valgrind
 69/162 Test  #69: test-iterators1_cpp11_valgrind ....................   Passed    1.26 sec
        Start  70: test-iterators2_cpp11
 70/162 Test  #70: test-iterators2_cpp11 .............................   Passed    0.03 sec
        Start  71: test-iterators2_cpp11_valgrind
 71/162 Test  #71: test-iterators2_cpp11_valgrind ....................   Passed    1.28 sec
        Start  72: test-iterators2_cpp20
 72/162 Test  #72: test-iterators2_cpp20 .............................   Passed    0.04 sec
        Start  73: test-iterators2_cpp20_valgrind
 73/162 Test  #73: test-iterators2_cpp20_valgrind ....................   Passed    1.42 sec
        Start  74: test-json_patch_cpp11
 74/162 Test  #74: test-json_patch_cpp11 .............................   Passed    0.02 sec
        Start  75: test-json_patch_cpp11_valgrind
 75/162 Test  #75: test-json_patch_cpp11_valgrind ....................   Passed    1.44 sec
        Start  76: test-json_pointer_cpp11
 76/162 Test  #76: test-json_pointer_cpp11 ...........................   Passed    0.00 sec
        Start  77: test-json_pointer_cpp11_valgrind
 77/162 Test  #77: test-json_pointer_cpp11_valgrind ..................   Passed    1.26 sec
        Start  78: test-json_pointer_cpp20
 78/162 Test  #78: test-json_pointer_cpp20 ...........................   Passed    0.00 sec
        Start  79: test-json_pointer_cpp20_valgrind
 79/162 Test  #79: test-json_pointer_cpp20_valgrind ..................   Passed    1.27 sec
        Start  80: test-large_json_cpp11
 80/162 Test  #80: test-large_json_cpp11 .............................   Passed    0.90 sec
        Start  81: test-large_json_cpp11_valgrind
 81/162 Test  #81: test-large_json_cpp11_valgrind ....................   Passed   30.50 sec
        Start  82: test-merge_patch_cpp11
 82/162 Test  #82: test-merge_patch_cpp11 ............................   Passed    0.00 sec
        Start  83: test-merge_patch_cpp11_valgrind
 83/162 Test  #83: test-merge_patch_cpp11_valgrind ...................   Passed    0.69 sec
        Start  84: test-meta_cpp11
 84/162 Test  #84: test-meta_cpp11 ...................................   Passed    0.01 sec
        Start  85: test-meta_cpp11_valgrind
 85/162 Test  #85: test-meta_cpp11_valgrind ..........................   Passed    0.63 sec
        Start  86: test-modifiers_cpp11
 86/162 Test  #86: test-modifiers_cpp11 ..............................   Passed    0.00 sec
        Start  87: test-modifiers_cpp11_valgrind
 87/162 Test  #87: test-modifiers_cpp11_valgrind .....................   Passed    1.22 sec
        Start  88: test-msgpack_cpp11
 88/162 Test  #88: test-msgpack_cpp11 ................................   Passed    8.64 sec
        Start  89: test-msgpack_cpp11_valgrind
 89/162 Test  #89: test-msgpack_cpp11_valgrind .......................   Passed   22.55 sec
        Start  90: test-noexcept_cpp11
 90/162 Test  #90: test-noexcept_cpp11 ...............................   Passed    0.01 sec
        Start  91: test-noexcept_cpp11_valgrind
 91/162 Test  #91: test-noexcept_cpp11_valgrind ......................   Passed    0.59 sec
        Start  92: test-ordered_json_cpp11
 92/162 Test  #92: test-ordered_json_cpp11 ...........................   Passed    0.00 sec
        Start  93: test-ordered_json_cpp11_valgrind
 93/162 Test  #93: test-ordered_json_cpp11_valgrind ..................   Passed    0.68 sec
        Start  94: test-ordered_map_cpp11
 94/162 Test  #94: test-ordered_map_cpp11 ............................   Passed    0.00 sec
        Start  95: test-ordered_map_cpp11_valgrind
 95/162 Test  #95: test-ordered_map_cpp11_valgrind ...................   Passed    0.76 sec
        Start  96: test-pointer_access_cpp11
 96/162 Test  #96: test-pointer_access_cpp11 .........................   Passed    0.00 sec
        Start  97: test-pointer_access_cpp11_valgrind
 97/162 Test  #97: test-pointer_access_cpp11_valgrind ................   Passed    0.78 sec
        Start  98: test-readme_cpp11
 98/162 Test  #98: test-readme_cpp11 .................................   Passed    0.00 sec
        Start  99: test-readme_cpp11_valgrind
 99/162 Test  #99: test-readme_cpp11_valgrind ........................   Passed    0.59 sec
        Start 100: test-reference_access_cpp11
100/162 Test #100: test-reference_access_cpp11 .......................   Passed    0.01 sec
        Start 101: test-reference_access_cpp11_valgrind
101/162 Test #101: test-reference_access_cpp11_valgrind ..............   Passed    0.78 sec
        Start 102: test-regression1_cpp11
102/162 Test #102: test-regression1_cpp11 ............................   Passed    1.66 sec
        Start 103: test-regression1_cpp11_valgrind
103/162 Test #103: test-regression1_cpp11_valgrind ...................   Passed   59.35 sec
        Start 104: test-regression1_cpp17
104/162 Test #104: test-regression1_cpp17 ............................   Passed    1.70 sec
        Start 105: test-regression1_cpp17_valgrind
105/162 Test #105: test-regression1_cpp17_valgrind ...................   Passed   65.82 sec
        Start 106: test-regression2_cpp11
106/162 Test #106: test-regression2_cpp11 ............................   Passed    0.00 sec
        Start 107: test-regression2_cpp11_valgrind
107/162 Test #107: test-regression2_cpp11_valgrind ...................   Passed    1.28 sec
        Start 108: test-regression2_cpp17
108/162 Test #108: test-regression2_cpp17 ............................   Passed    0.01 sec
        Start 109: test-regression2_cpp17_valgrind
109/162 Test #109: test-regression2_cpp17_valgrind ...................   Passed    1.30 sec
        Start 110: test-regression2_cpp20
110/162 Test #110: test-regression2_cpp20 ............................   Passed    0.00 sec
        Start 111: test-regression2_cpp20_valgrind
111/162 Test #111: test-regression2_cpp20_valgrind ...................   Passed    1.31 sec
        Start 112: test-serialization_cpp11
112/162 Test #112: test-serialization_cpp11 ..........................   Passed    0.00 sec
        Start 113: test-serialization_cpp11_valgrind
113/162 Test #113: test-serialization_cpp11_valgrind .................   Passed    1.00 sec
        Start 114: test-testsuites_cpp11
114/162 Test #114: test-testsuites_cpp11 .............................   Passed    0.05 sec
        Start 115: test-testsuites_cpp11_valgrind
115/162 Test #115: test-testsuites_cpp11_valgrind ....................   Passed    2.07 sec
        Start 116: test-to_chars_cpp11
116/162 Test #116: test-to_chars_cpp11 ...............................   Passed    0.01 sec
        Start 117: test-to_chars_cpp11_valgrind
117/162 Test #117: test-to_chars_cpp11_valgrind ......................   Passed    0.76 sec
        Start 118: test-type_traits_cpp11
118/162 Test #118: test-type_traits_cpp11 ............................   Passed    0.01 sec
        Start 119: test-type_traits_cpp11_valgrind
119/162 Test #119: test-type_traits_cpp11_valgrind ...................   Passed    0.61 sec
        Start 120: test-ubjson_cpp11
120/162 Test #120: test-ubjson_cpp11 .................................   Passed    2.43 sec
        Start 121: test-ubjson_cpp11_valgrind
121/162 Test #121: test-ubjson_cpp11_valgrind ........................   Passed   19.88 sec
        Start 122: test-udl_cpp11
122/162 Test #122: test-udl_cpp11 ....................................   Passed    0.00 sec
        Start 123: test-udl_cpp11_valgrind
123/162 Test #123: test-udl_cpp11_valgrind ...........................   Passed    0.64 sec
        Start 124: test-udt_cpp11
124/162 Test #124: test-udt_cpp11 ....................................   Passed    0.00 sec
        Start 125: test-udt_cpp11_valgrind
125/162 Test #125: test-udt_cpp11_valgrind ...........................   Passed    0.88 sec
        Start 126: test-udt_macro_cpp11
126/162 Test #126: test-udt_macro_cpp11 ..............................   Passed    0.00 sec
        Start 127: test-udt_macro_cpp11_valgrind
127/162 Test #127: test-udt_macro_cpp11_valgrind .....................   Passed    0.95 sec
        Start 128: test-unicode1_cpp11
128/162 Test #128: test-unicode1_cpp11 ...............................   Passed    2.09 sec
        Start 129: test-unicode1_cpp11_valgrind
129/162 Test #129: test-unicode1_cpp11_valgrind ......................   Passed    0.84 sec
        Start 130: test-unicode2_cpp11
130/162 Test #130: test-unicode2_cpp11 ...............................   Passed    7.09 sec
        Start 131: test-unicode2_cpp11_valgrind
131/162 Test #131: test-unicode2_cpp11_valgrind ......................   Passed    0.74 sec
        Start 132: test-unicode3_cpp11
132/162 Test #132: test-unicode3_cpp11 ...............................   Passed   27.16 sec
        Start 133: test-unicode3_cpp11_valgrind
133/162 Test #133: test-unicode3_cpp11_valgrind ......................   Passed    0.65 sec
        Start 134: test-unicode4_cpp11
134/162 Test #134: test-unicode4_cpp11 ...............................   Passed   83.87 sec
        Start 135: test-unicode4_cpp11_valgrind
135/162 Test #135: test-unicode4_cpp11_valgrind ......................   Passed    0.61 sec
        Start 136: test-unicode5_cpp11
136/162 Test #136: test-unicode5_cpp11 ...............................   Passed   20.25 sec
        Start 137: test-unicode5_cpp11_valgrind
137/162 Test #137: test-unicode5_cpp11_valgrind ......................   Passed    0.59 sec
        Start 138: test-user_defined_input_cpp11
138/162 Test #138: test-user_defined_input_cpp11 .....................   Passed    0.00 sec
        Start 139: test-user_defined_input_cpp11_valgrind
139/162 Test #139: test-user_defined_input_cpp11_valgrind ............   Passed    0.65 sec
        Start 140: test-windows_h_cpp11
140/162 Test #140: test-windows_h_cpp11 ..............................   Passed    0.01 sec
        Start 141: test-windows_h_cpp11_valgrind
141/162 Test #141: test-windows_h_cpp11_valgrind .....................   Passed    0.56 sec
        Start 142: test-wstring_cpp11
142/162 Test #142: test-wstring_cpp11 ................................   Passed    0.01 sec
        Start 143: test-wstring_cpp11_valgrind
143/162 Test #143: test-wstring_cpp11_valgrind .......................   Passed    0.76 sec
        Start 144: test-comparison_legacy_cpp11
144/162 Test #144: test-comparison_legacy_cpp11 ......................   Passed    0.01 sec
        Start 145: test-comparison_legacy_cpp11_valgrind
145/162 Test #145: test-comparison_legacy_cpp11_valgrind .............   Passed    0.82 sec
        Start 146: test-comparison_legacy_cpp20
146/162 Test #146: test-comparison_legacy_cpp20 ......................   Passed    0.01 sec
        Start 147: test-comparison_legacy_cpp20_valgrind
147/162 Test #147: test-comparison_legacy_cpp20_valgrind .............   Passed    0.86 sec
        Start 148: test-abi_config_default
148/162 Test #148: test-abi_config_default ...........................   Passed    0.00 sec
        Start 149: test-abi_config_noversion
149/162 Test #149: test-abi_config_noversion .........................   Passed    0.01 sec
        Start 150: test-abi_config_custom
150/162 Test #150: test-abi_config_custom ............................   Passed    0.01 sec
        Start 151: test-abi_compat_diag
151/162 Test #151: test-abi_compat_diag ..............................   Passed    0.00 sec
        Start 152: test-abi_compat_inline_ns
152/162 Test #152: test-abi_compat_inline_ns .........................   Passed    0.01 sec
        Start 153: cmake_import_configure
153/162 Test #153: cmake_import_configure ............................   Passed    0.56 sec
        Start 154: cmake_import_build
154/162 Test #154: cmake_import_build ................................   Passed    2.43 sec
        Start 155: cmake_import_minver_configure
155/162 Test #155: cmake_import_minver_configure .....................   Passed    0.59 sec
        Start 156: cmake_import_minver_build
156/162 Test #156: cmake_import_minver_build .........................   Passed    2.33 sec
        Start 157: cmake_add_subdirectory_configure
157/162 Test #157: cmake_add_subdirectory_configure ..................   Passed    0.59 sec
        Start 158: cmake_add_subdirectory_build
158/162 Test #158: cmake_add_subdirectory_build ......................   Passed    2.47 sec
        Start 159: cmake_fetch_content2_configure
159/162 Test #159: cmake_fetch_content2_configure ....................***Failed    0.92 sec
Re-run cmake no build system arguments
-- The CXX compiler identification is GNU 12.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.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps/json-subbuild'
/usr/bin/cmake -S/home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps/json-subbuild -B/home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps/json-subbuild --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps/json-subbuild/CMakeFiles /home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps/json-subbuild//CMakeFiles/progress.marks
/usr/bin/gmake  -f CMakeFiles/Makefile2 all
gmake[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_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.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps/json-subbuild'
cd /home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps/json-subbuild && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps/json-subbuild /home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps/json-subbuild /home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps/json-subbuild /home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps/json-subbuild /home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps/json-subbuild/CMakeFiles/json-populate.dir/DependInfo.cmake --color=
gmake[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_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.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps/json-subbuild'
[ 11%] Creating directories for 'json-populate'
/usr/bin/cmake -Dcfgdir= -P /home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps/json-subbuild/json-populate-prefix/tmp/json-populate-mkdirs.cmake
/usr/bin/cmake -E touch /home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_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.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps && /usr/bin/cmake -P /home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps/json-subbuild/json-populate-prefix/tmp/json-populate-gitclone.cmake
fatal: repository '/home/tkloczko/rpmbuild/BUILD/json-3.11.2' does not exist
fatal: repository '/home/tkloczko/rpmbuild/BUILD/json-3.11.2' does not exist
fatal: repository '/home/tkloczko/rpmbuild/BUILD/json-3.11.2' 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:39 (message):
  Failed to clone repository: '/home/tkloczko/rpmbuild/BUILD/json-3.11.2'

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.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_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.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps/json-subbuild'
gmake[1]: *** [Makefile:91: all] Error 2
gmake[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/_deps/json-subbuild'

CMake Error at /usr/share/cmake/Modules/FetchContent.cmake:1604 (message):
  Build step for json failed: 2
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FetchContent.cmake:1744:EVAL:2 (__FetchContent_directPopulate)
  /usr/share/cmake/Modules/FetchContent.cmake:1744 (cmake_language)
  /usr/share/cmake/Modules/FetchContent.cmake:1958 (FetchContent_Populate)
  CMakeLists.txt:9 (FetchContent_MakeAvailable)

-- Configuring incomplete, errors occurred!
See also "/home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu/tests/cmake_fetch_content2/CMakeFiles/CMakeOutput.log".

        Start 160: cmake_fetch_content2_build
Failed test dependencies: cmake_fetch_content2_configure
160/162 Test #160: cmake_fetch_content2_build ........................***Not Run   0.00 sec
        Start 161: cmake_target_include_directories_configure
161/162 Test #161: cmake_target_include_directories_configure ........   Passed    0.58 sec
        Start 162: cmake_target_include_directories_build
162/162 Test #162: cmake_target_include_directories_build ............   Passed    3.07 sec

99% tests passed, 2 tests failed out of 162

Label Time Summary:
all                 = 173.12 sec*proc (73 tests)
git_required        =   0.92 sec*proc (2 tests)
not_reproducible    =  13.54 sec*proc (10 tests)
valgrind            = 359.55 sec*proc (73 tests)

Total Test time (real) = 546.62 sec

The following tests FAILED:
        159 - cmake_fetch_content2_configure (Failed)
        160 - cmake_fetch_content2_build (Not Run)
Errors while running CTest
make: *** [Makefile:74: test] Error 8
make: Leaving directory '/home/tkloczko/rpmbuild/BUILD/json-3.11.2/x86_64-redhat-linux-gnu'

Compiler and operating system

gcc 12.2.1, Linux x86/64

Library version

3.11.2, test data version 3.1.0

Validation

nlohmann commented 2 years ago

Did you check out the code from git?

kloczek commented 2 years ago

Tested master and it fails the same way.

nlohmann commented 2 years ago

This is strange. Just that I understand:

Do you check out the code from GitHub for the respective tag?

The tests are expected to fail if the code is just downloaded, see https://github.com/nlohmann/json#execute-unit-tests

kloczek commented 2 years ago

No I'm downloading latest tagged source tar ball and list of commits added after that tag however effectively it is the same.

URL:            https://github.com/nlohmann/json/
VCS:            https://github.com/nlohmann/json/
Source:         %{VCS}/archive/v%{version}/%{name}-%{version}.tar.gz
Source:         https://github.com/nlohmann/json_test_data/archive/v%{test_data_version}/%{name}_test_data-%{test_data_version}.tar.gz
Patch:          %{VCS}/commit/4c8cdd7a.patch#/%{name}-Add-Check-amalgamation-workflow-3693.patch
Patch:          %{VCS}/commit/f7973f46.patch#/%{name}-Use-official-Clang-GCC-containers-3703.patch
Patch:          %{VCS}/commit/bed648ca.patch#/%{name}-Allow-custom-base-class-as-node-customization-point-.patch
Patch:          %{VCS}/commit/307c053b.patch#/%{name}-Add-missing-numeric-include-3719.patch
Patch:          %{VCS}/commit/58bd97e2.patch#/%{name}-Add-clang-tools-to-required-tools-for-ci_static_anal.patch
Patch:          %{VCS}/commit/15ca78a8.patch#/%{name}-Add-dark-mode-toggle-to-documentation-3726.patch
Patch:          %{VCS}/commit/c920f3f4.patch#/%{name}-Update-Codacy-link-3740.patch
Patch:          %{VCS}/commit/9dfa7226.patch#/%{name}-Fix-typos-in-.md-files-3748.patch
Patch:          %{VCS}/commit/2d1f9b6a.patch#/%{name}-Add-Bazel-build-support-3709.patch
Patch:          %{VCS}/commit/3d1252bb.patch#/%{name}-Replace-limit-macros-with-std-numeric_limits-3723.patch
Patch:          %{VCS}/commit/f4658de2.patch#/%{name}-Fix-declaration-hides-global-declaration-warning-375.patch
Patch:          %{VCS}/commit/17d9eacd.patch#/%{name}-Add-missing-files-to-release-artifacts-3728.patch
Patch:          %{VCS}/commit/4b2c8ce6.patch#/%{name}-Fix-some-typos-for-n-dimensional-arrays-3767.patch
Patch:          %{VCS}/commit/a3e6e26d.patch#/%{name}-Bump-joblib-from-1.1.0-to-1.2.0-in-docs-mkdocs-3781.patch

[..]
%prep
%autosetup -p1 -a1
nlohmann commented 2 years ago

The test expects the source directory to be a git clone.

falbrechtskirchinger commented 2 years ago

From the README.md:

In case you have downloaded the library rather than checked out the code via Git, test cmake_fetch_content_configure will fail. Please execute ctest -LE git_required to skip these tests. See issue #2189 for more information.

kloczek commented 2 years ago

OK so there are more units affecter bu the same condition. Thank you I'm going to add those units to exclude list (with some note why those units are failing).

Feel free to close that ticket however as test suite should not be working with dist tar ball IMO it woud be allow automatically skipp those units as there is not in build tree git meta data.