Jamfile.v2 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Boost System Library test Jamfile
  2. # Copyright Beman Dawes 2003, 2006
  3. # Copyright 2017-2019 Peter Dimov
  4. # Distributed under the Boost Software License, Version 1.0.
  5. # See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt
  6. # See library home page at http://www.boost.org/libs/system
  7. import testing ;
  8. rule system-run ( sources + )
  9. {
  10. local result ;
  11. result += [ run $(sources) ] ;
  12. result += [ run $(sources) : : : <library>/boost/system//boost_system <link>static : $(sources[1]:B)_static ] ;
  13. result += [ run $(sources) : : : <library>/boost/system//boost_system <link>shared : $(sources[1]:B)_shared ] ;
  14. result += [ run $(sources) : : : <define>BOOST_NO_ANSI_APIS : $(sources[1]:B)_no_ansi ] ;
  15. result += [ run $(sources) : : : <define>BOOST_SYSTEM_USE_UTF8 : $(sources[1]:B)_utf8 ] ;
  16. return $(result) ;
  17. }
  18. system-run error_code_test.cpp ;
  19. system-run error_code_user_test.cpp ;
  20. system-run system_error_test.cpp ;
  21. lib throw_test : throw_test.cpp : <link>shared:<define>THROW_DYN_LINK=1 ;
  22. run dynamic_link_test.cpp throw_test : : : <link>shared : throw_test_shared ;
  23. system-run initialization_test.cpp ;
  24. system-run header_only_test.cpp ;
  25. run config_test.cpp : : : <test-info>always_show_run_output ;
  26. system-run std_interop_test.cpp ;
  27. system-run std_mismatch_test.cpp ;
  28. lib single_instance_lib1 : single_instance_1.cpp : <link>shared:<define>SINGLE_INSTANCE_DYN_LINK ;
  29. lib single_instance_lib2 : single_instance_2.cpp : <link>shared:<define>SINGLE_INSTANCE_DYN_LINK ;
  30. system-run single_instance_test.cpp single_instance_1.cpp single_instance_2.cpp ;
  31. run single_instance_test.cpp single_instance_lib1 single_instance_lib2 : : : <link>static : single_instance_lib_static ;
  32. run single_instance_test.cpp single_instance_lib1 single_instance_lib2 : : : <link>shared : single_instance_lib_shared ;
  33. system-run before_main_test.cpp ;
  34. run-fail throws_assign_fail.cpp ;
  35. system-run constexpr_test.cpp ;
  36. system-run win32_hresult_test.cpp ;
  37. system-run error_category_test.cpp ;
  38. system-run generic_category_test.cpp ;
  39. system-run system_category_test.cpp ;
  40. system-run after_main_test.cpp ;
  41. system-run failed_test.cpp ;
  42. system-run failed_constexpr_test.cpp ;
  43. # Quick (CI) test
  44. run quick.cpp ;
  45. run warnings_test.cpp : : : <warnings>all <warnings-as-errors>on <toolset>gcc:<cxxflags>-Wnon-virtual-dtor <toolset>clang:<cxxflags>-Wnon-virtual-dtor ;
  46. lib std_single_instance_lib1 : std_single_instance_1.cpp : <link>shared:<define>STD_SINGLE_INSTANCE_DYN_LINK ;
  47. lib std_single_instance_lib2 : std_single_instance_2.cpp : <link>shared:<define>STD_SINGLE_INSTANCE_DYN_LINK ;
  48. system-run std_single_instance_test.cpp std_single_instance_1.cpp std_single_instance_2.cpp ;
  49. run std_single_instance_test.cpp std_single_instance_lib1 std_single_instance_lib2 : : : <link>static : std_single_instance_lib_static ;
  50. run std_single_instance_test.cpp std_single_instance_lib1 std_single_instance_lib2 : : : <link>shared <define>STD_SINGLE_INSTANCE_SHARED : std_single_instance_lib_shared ;