Jamfile.v2 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # Copyright 2005-2012 Daniel James.
  2. # Distributed under the Boost Software License, Version 1.0. (See accompanying
  3. # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. import testing ;
  5. project hash-tests
  6. : requirements
  7. <warnings>all
  8. <toolset>intel:<warnings>on
  9. #<toolset>intel:<cxxflags>-strict-ansi
  10. <toolset>gcc:<cxxflags>"-pedantic -Wstrict-aliasing -fstrict-aliasing -Wextra -Wsign-promo -Wunused-parameter -Wconversion -Wfloat-equal -Wshadow"
  11. <toolset>darwin:<cxxflags>"-pedantic -Wstrict-aliasing -fstrict-aliasing -Wextra -Wsign-promo -Wunused-parameter -Wconversion -Wfloat-equal -Wshadow"
  12. <toolset>clang:<cxxflags>"-pedantic -Wstrict-aliasing -fstrict-aliasing -Wextra -Wsign-promo -Wunused-parameter -Wsign-conversion -Wconversion -Wfloat-equal -Wshadow"
  13. #<toolset>msvc:<warnings-as-errors>on
  14. #<toolset>gcc:<warnings-as-errors>on
  15. #<toolset>darwin:<warnings-as-errors>on
  16. ;
  17. test-suite container_hash/hash
  18. :
  19. [ run hash_info.cpp : : : <test-info>always_show_run_output ]
  20. [ compile check_float_funcs.cpp ]
  21. [ run hash_fwd_test_1.cpp ]
  22. [ run hash_fwd_test_2.cpp ]
  23. [ run hash_number_test.cpp ]
  24. [ run hash_enum_test.cpp ]
  25. [ run hash_pointer_test.cpp ]
  26. [ run hash_function_pointer_test.cpp ]
  27. [ run hash_float_test.cpp ]
  28. [ run hash_long_double_test.cpp ]
  29. [ run hash_string_test.cpp ]
  30. [ run hash_range_test.cpp ]
  31. [ run hash_custom_test.cpp ]
  32. [ run hash_global_namespace_test.cpp ]
  33. [ run hash_friend_test.cpp ]
  34. [ run hash_built_in_array_test.cpp ]
  35. [ run hash_value_array_test.cpp ]
  36. [ run hash_vector_test.cpp ]
  37. [ run hash_list_test.cpp ]
  38. [ run hash_deque_test.cpp ]
  39. [ run hash_set_test.cpp ]
  40. [ run hash_map_test.cpp ]
  41. [ run hash_complex_test.cpp ]
  42. [ run hash_optional_test.cpp ]
  43. [ run hash_variant_test.cpp ]
  44. [ run hash_type_index_test.cpp ]
  45. [ run hash_system_error_test.cpp ]
  46. [ run hash_std_array_test.cpp ]
  47. [ run hash_std_tuple_test.cpp ]
  48. [ run hash_std_smart_ptr_test.cpp ]
  49. [ run link_test.cpp link_test_2.cpp ]
  50. [ run link_ext_test.cpp link_no_ext_test.cpp ]
  51. [ run extensions_hpp_test.cpp ]
  52. [ compile-fail hash_no_ext_fail_test.cpp ]
  53. [ compile-fail namespace_fail_test.cpp ]
  54. [ run implicit_test.cpp ]
  55. [ run hash_no_ext_macro_1.cpp ]
  56. [ run hash_no_ext_macro_2.cpp ]
  57. ;
  58. test-suite container_hash/hash_no_ext
  59. :
  60. [ run hash_number_test.cpp : : : <define>BOOST_HASH_NO_EXTENSIONS : no_ext_number_test ]
  61. [ run hash_pointer_test.cpp : : : <define>BOOST_HASH_NO_EXTENSIONS : no_ext_pointer_test ]
  62. [ run hash_function_pointer_test.cpp : : : <define>BOOST_HASH_NO_EXTENSIONS : no_ext_function_pointer_test ]
  63. [ run hash_float_test.cpp : : : <define>BOOST_HASH_NO_EXTENSIONS : no_ext_float_test ]
  64. [ run hash_long_double_test.cpp : : : <define>BOOST_HASH_NO_EXTENSIONS : no_ext_long_double_test ]
  65. [ run hash_string_test.cpp : : : <define>BOOST_HASH_NO_EXTENSIONS : no_ext_string_test ]
  66. [ run link_test.cpp link_test_2.cpp : : : <define>BOOST_HASH_NO_EXTENSIONS : no_ext_link_test ]
  67. ;
  68. # Tests to see if the floating point hash is using the binary hash.
  69. # Not run normally because on some platforms these should fail.
  70. test-suite container_hash/hash_no_generic_float
  71. :
  72. [ run hash_float_test.cpp
  73. : : : <define>BOOST_HASH_DETAIL_TEST_WITHOUT_GENERIC
  74. : hash_float_test_no_generic ]
  75. [ run hash_long_double_test.cpp
  76. : : : <define>BOOST_HASH_DETAIL_TEST_WITHOUT_GENERIC
  77. : hash_long_double_test_no_generic ]
  78. ;
  79. explicit container_hash/hash_no_generic_float ;
  80. build-project ../examples ;