2012-08-24 22:52:42 +00:00
|
|
|
# Copyright 2005-2012 Daniel James.
|
2022-06-03 19:31:33 +03:00
|
|
|
# Copyright 2022 Peter Dimov
|
|
|
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
|
|
|
# https://www.boost.org/LICENSE_1_0.txt
|
2005-04-01 16:58:09 +00:00
|
|
|
|
|
|
|
|
import testing ;
|
|
|
|
|
|
2022-06-03 20:59:41 +03:00
|
|
|
local gcc-flags = -Wunused-parameter -Wconversion -Wsign-conversion -Wfloat-equal -Wshadow -Wno-variadic-macros ;
|
2022-06-03 21:38:02 +03:00
|
|
|
local clang-flags = $(gcc-flags) -Wno-c99-extensions ;
|
2022-06-03 20:59:41 +03:00
|
|
|
|
2006-02-07 00:45:32 +00:00
|
|
|
project hash-tests
|
|
|
|
|
: requirements
|
2021-10-16 22:22:29 +03:00
|
|
|
<warnings>pedantic
|
2009-11-10 08:15:55 +00:00
|
|
|
<toolset>intel:<warnings>on
|
2022-06-03 20:59:41 +03:00
|
|
|
<toolset>gcc:<cxxflags>$(gcc-flags)
|
|
|
|
|
<toolset>darwin:<cxxflags>$(gcc-flags)
|
|
|
|
|
<toolset>clang:<cxxflags>$(clang-flags)
|
2021-10-16 22:22:29 +03:00
|
|
|
<toolset>msvc:<warnings-as-errors>on
|
|
|
|
|
<toolset>gcc:<warnings-as-errors>on
|
|
|
|
|
<toolset>clang:<warnings-as-errors>on
|
2006-02-07 00:45:32 +00:00
|
|
|
;
|
|
|
|
|
|
2021-10-17 08:22:24 +03:00
|
|
|
run hash_info.cpp : : : <test-info>always_show_run_output ;
|
|
|
|
|
compile check_float_funcs.cpp ;
|
|
|
|
|
run hash_fwd_test_1.cpp ;
|
|
|
|
|
run hash_fwd_test_2.cpp ;
|
|
|
|
|
run hash_number_test.cpp ;
|
|
|
|
|
run hash_enum_test.cpp ;
|
|
|
|
|
run hash_pointer_test.cpp ;
|
|
|
|
|
run hash_function_pointer_test.cpp ;
|
|
|
|
|
run hash_float_test.cpp ;
|
|
|
|
|
run hash_long_double_test.cpp ;
|
|
|
|
|
run hash_string_test.cpp ;
|
|
|
|
|
run hash_range_test.cpp ;
|
|
|
|
|
run hash_custom_test.cpp ;
|
|
|
|
|
run hash_global_namespace_test.cpp ;
|
|
|
|
|
run hash_friend_test.cpp ;
|
|
|
|
|
run hash_built_in_array_test.cpp ;
|
|
|
|
|
run hash_value_array_test.cpp ;
|
|
|
|
|
run hash_vector_test.cpp ;
|
|
|
|
|
run hash_list_test.cpp ;
|
|
|
|
|
run hash_deque_test.cpp ;
|
|
|
|
|
run hash_set_test.cpp ;
|
|
|
|
|
run hash_map_test.cpp ;
|
|
|
|
|
run hash_complex_test.cpp ;
|
|
|
|
|
run hash_optional_test.cpp ;
|
|
|
|
|
run hash_variant_test.cpp ;
|
|
|
|
|
run hash_type_index_test.cpp ;
|
|
|
|
|
run hash_system_error_test.cpp ;
|
|
|
|
|
run hash_std_array_test.cpp ;
|
|
|
|
|
run hash_std_tuple_test.cpp ;
|
|
|
|
|
run hash_std_smart_ptr_test.cpp ;
|
|
|
|
|
run link_test.cpp link_test_2.cpp ;
|
|
|
|
|
run link_ext_test.cpp link_no_ext_test.cpp ;
|
|
|
|
|
run extensions_hpp_test.cpp ;
|
|
|
|
|
compile-fail namespace_fail_test.cpp ;
|
|
|
|
|
run implicit_test.cpp ;
|
|
|
|
|
run hash_no_ext_macro_1.cpp ;
|
|
|
|
|
run hash_no_ext_macro_2.cpp ;
|
2012-08-24 22:52:42 +00:00
|
|
|
|
2009-06-21 09:51:59 +00:00
|
|
|
build-project ../examples ;
|
2021-10-16 20:44:32 +03:00
|
|
|
|
2021-10-17 23:54:39 +03:00
|
|
|
run hash_reference_values.cpp ;
|
2021-10-19 17:37:20 +03:00
|
|
|
|
2021-10-16 20:44:32 +03:00
|
|
|
run detail_is_range_test.cpp ;
|
2021-10-16 20:54:51 +03:00
|
|
|
run detail_is_contiguous_range_test.cpp ;
|
2021-10-16 21:01:07 +03:00
|
|
|
run detail_is_unordered_range_test.cpp ;
|
2021-10-17 01:14:46 +03:00
|
|
|
|
|
|
|
|
run hash_forward_list_test.cpp ;
|
2021-10-17 08:46:35 +03:00
|
|
|
|
|
|
|
|
run quick.cpp ;
|
2021-10-17 19:28:51 +03:00
|
|
|
|
|
|
|
|
run hash_number_test2.cpp ;
|
2021-10-17 19:36:53 +03:00
|
|
|
run hash_integral_test.cpp ;
|
2022-04-28 21:13:23 +03:00
|
|
|
run hash_string_test2.cpp ;
|
2022-06-03 19:31:33 +03:00
|
|
|
|
2022-06-04 14:25:47 +03:00
|
|
|
# for gcc-4.8
|
|
|
|
|
local fs-path-req = "-<toolset>gcc:<cxxflags>-Wshadow" "-<toolset>gcc:<cxxflags>-Wconversion" ;
|
|
|
|
|
|
2022-06-04 15:53:54 +03:00
|
|
|
run hash_fs_path_test.cpp /boost//filesystem/<warnings>off : : : $(fs-path-req) <toolset>msvc-14.0,<cxxstd>latest:<build>no ;
|
2022-06-04 14:25:47 +03:00
|
|
|
run detail_is_range_test2.cpp : : : $(fs-path-req) ;
|
2022-06-15 22:52:56 +03:00
|
|
|
|
|
|
|
|
run hash_container_test.cpp ;
|