Jamfile.v2 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # copyright John Maddock 2004
  2. # Use, modification and distribution are subject to the
  3. # Boost Software License, Version 1.0. (See accompanying file
  4. # LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. # bring in the rules for testing
  6. import testing ;
  7. import os ;
  8. if [ os.environ CI ]
  9. {
  10. CI_DEFINES = <define>CI_SUPPRESS_KNOWN_ISSUES=1 ;
  11. }
  12. # type_traits in V1 seem to have two modes: standalone, triggered
  13. # by a command line option, and a regular. For now, just imitate
  14. # regular
  15. project : requirements
  16. # default to all warnings on:
  17. <warnings>all
  18. # set warnings as errors for those compilers we know we get warning free:
  19. <toolset>gcc:<cxxflags>-Wextra
  20. <toolset>gcc:<cxxflags>-Wno-uninitialized
  21. <toolset>gcc:<cxxflags>-Wno-int-in-bool-context
  22. <toolset>gcc:<cxxflags>-Wno-bool-operation
  23. <toolset>gcc:<warnings-as-errors>on
  24. <toolset>intel:<warnings-as-errors>on
  25. <toolset>sun:<warnings-as-errors>on
  26. <toolset>msvc:<warnings-as-errors>on
  27. <include>libs/tt2/light/include
  28. $(CI_DEFINES)
  29. ;
  30. rule all-tests {
  31. local result ;
  32. for local source in [ glob *_test*.cpp ]
  33. {
  34. result += [ run $(source) ] ;
  35. }
  36. for local source in [ glob compile_fail/*.cpp ]
  37. {
  38. result += [ compile-fail $(source) ] ;
  39. }
  40. #
  41. # These traits have both intrinsic support, and a std conforming version, test a version with intrinsics disabled for better code coverage:
  42. #
  43. for local source in has_nothrow_assign_test has_nothrow_constr_test has_nothrow_copy_test is_nothrow_move_assignable_test is_nothrow_move_constructible_test
  44. {
  45. result += [ run $(source).cpp : : : <define>BOOST_TT_DISABLE_INTRINSICS : $(source)_no_intrinsics ] ;
  46. }
  47. return $(result) ;
  48. }
  49. test-suite type_traits : [ all-tests ] ;