mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +08:00
Updated CMakeLists with new option for C++23 fixed width tests, added new basic fixedwidthtest file.
This commit is contained in:
parent
4d8a2f4000
commit
ae99db48e6
2
.github/workflows/ubuntu22-gcc13.yml
vendored
2
.github/workflows/ubuntu22-gcc13.yml
vendored
@ -18,6 +18,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
mkdir build20 &&
|
mkdir build20 &&
|
||||||
cd build20 &&
|
cd build20 &&
|
||||||
CXX=g++-13 CXXFLAGS=-Werror cmake -DFASTFLOAT_CONSTEXPR_TESTS=ON -DFASTFLOAT_CXX_STANDARD=23 -DFASTFLOAT_TEST=ON .. &&
|
CXX=g++-13 CXXFLAGS=-Werror cmake -DFASTFLOAT_CONSTEXPR_TESTS=ON -DFASTFLOAT_FIXEDWIDTH_TESTS=ON -DFASTFLOAT_CXX_STANDARD=23 -DFASTFLOAT_TEST=ON .. &&
|
||||||
cmake --build . &&
|
cmake --build . &&
|
||||||
ctest --output-on-failure
|
ctest --output-on-failure
|
||||||
@ -68,6 +68,7 @@ else()
|
|||||||
target_compile_features(basictest PRIVATE cxx_std_17)
|
target_compile_features(basictest PRIVATE cxx_std_17)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
fast_float_add_cpp_test(long_test)
|
fast_float_add_cpp_test(long_test)
|
||||||
fast_float_add_cpp_test(powersoffive_hardround)
|
fast_float_add_cpp_test(powersoffive_hardround)
|
||||||
fast_float_add_cpp_test(string_test)
|
fast_float_add_cpp_test(string_test)
|
||||||
@ -75,6 +76,13 @@ fast_float_add_cpp_test(string_test)
|
|||||||
fast_float_add_cpp_test(json_fmt)
|
fast_float_add_cpp_test(json_fmt)
|
||||||
fast_float_add_cpp_test(fortran)
|
fast_float_add_cpp_test(fortran)
|
||||||
|
|
||||||
|
|
||||||
|
option(FASTFLOAT_FIXEDWIDTH_TESTS "Require fixed width test for C++23 (build will fail if the compiler won't support it)" OFF)
|
||||||
|
if (FASTFLOAT_FIXEDWIDTH_TESTS)
|
||||||
|
fast_float_add_cpp_test(fixedwidthtest)
|
||||||
|
target_compile_features(fixedwidthtest PRIVATE cxx_std_23)
|
||||||
|
endif()
|
||||||
|
|
||||||
option(FASTFLOAT_EXHAUSTIVE "Exhaustive tests" OFF)
|
option(FASTFLOAT_EXHAUSTIVE "Exhaustive tests" OFF)
|
||||||
|
|
||||||
if (FASTFLOAT_EXHAUSTIVE)
|
if (FASTFLOAT_EXHAUSTIVE)
|
||||||
@ -89,5 +97,7 @@ if (FASTFLOAT_EXHAUSTIVE)
|
|||||||
fast_float_add_cpp_test(random64)
|
fast_float_add_cpp_test(random64)
|
||||||
endif(FASTFLOAT_EXHAUSTIVE)
|
endif(FASTFLOAT_EXHAUSTIVE)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
add_subdirectory(build_tests)
|
add_subdirectory(build_tests)
|
||||||
add_subdirectory(bloat_analysis)
|
add_subdirectory(bloat_analysis)
|
||||||
|
|||||||
1085
tests/fixedwidthtest.cpp
Normal file
1085
tests/fixedwidthtest.cpp
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user