Jamfile.jam 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. # Copyright (c) 2006, 2007 Julio M. Merino Vidal
  2. # Copyright (c) 2008 Ilya Sokolov, Boris Schaeling
  3. # Copyright (c) 2009 Boris Schaeling
  4. # Copyright (c) 2010 Felipe Tanus, Boris Schaeling
  5. # Copyright (c) 2011, 2012 Jeff Flinn, Boris Schaeling
  6. # Copyright (c) 2016 Klemens D. Morgenstern
  7. #
  8. # Distributed under the Boost Software License, Version 1.0. (See accompanying
  9. # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  10. import os ;
  11. if [ os.name ] = NT
  12. {
  13. lib ws2_32 ;
  14. lib shell32 ;
  15. lib Advapi32 ;
  16. lib Ntdll ;
  17. }
  18. project : requirements
  19. <define>BOOST_ASIO_NO_DEPRECATED
  20. <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
  21. <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
  22. <toolset>msvc:<cxxflags>/bigobj
  23. <target-os>windows:<define>WIN32_LEAN_AND_MEAN
  24. <target-os>linux:<linkflags>-lpthread
  25. <os>NT,<toolset>cw:<library>ws2_32
  26. <os>NT,<toolset>gcc:<library>ws2_32
  27. ;
  28. import testing ;
  29. alias program_options : /boost//program_options : <link>static ;
  30. alias filesystem : /boost//filesystem ;
  31. alias iostreams : /boost//iostreams ;
  32. alias system : /boost//system ;
  33. alias thread : /boost//thread ;
  34. alias coroutine : /boost//coroutine : <link>static ;
  35. lib multi_ref : multi_ref1.cpp multi_ref2.cpp system : <target-os>windows:<source>shell32 ;
  36. exe sparring_partner : sparring_partner.cpp program_options system filesystem iostreams :
  37. <warnings>off <target-os>windows:<source>shell32 <target-os>windows:<source>Ntdll
  38. ;
  39. exe exit_argc : exit_argc.cpp :
  40. <warnings>off <target-os>windows:<source>shell32
  41. ;
  42. exe sub_launch : sub_launcher.cpp program_options iostreams system filesystem : <warnings>off <target-os>windows:<source>shell32 ;
  43. rule test-options ( name )
  44. {
  45. if "--boost-process-report-ci" in [ modules.peek : ARGV ]
  46. {
  47. return --log_sink=log_$(name).xml --log_format=XML --log_level=error --report_sink=report_$(name).xml --report_format=XML --report_level=detailed -- ;
  48. }
  49. else
  50. {
  51. return --log_level=error --report_level=detailed -- ;
  52. }
  53. }
  54. test-suite bare :
  55. [ run environment.cpp system filesystem : [ test-options environment ] ]
  56. [ run async_pipe.cpp system filesystem : [ test-options async_pipe ] ]
  57. [ run pipe.cpp system filesystem : [ test-options pipe ] ]
  58. [ compile no_ansi_apps.cpp ]
  59. [ compile-fail spawn_fail.cpp ]
  60. [ compile-fail async_system_fail.cpp ]
  61. [ compile asio_no_deprecated.cpp ]
  62. ;
  63. test-suite with-valgrind :
  64. [ run async.cpp system thread filesystem : [ test-options async ] : sparring_partner ]
  65. [ run async_fut.cpp system thread filesystem : [ test-options async_fut ] : sparring_partner ]
  66. [ run args_handling.cpp system thread filesystem : [ test-options args_handling ] : exit_argc ]
  67. [ run args_cmd.cpp system filesystem : [ test-options args_cmd ] : sparring_partner ]
  68. [ run wargs_cmd.cpp system filesystem : [ test-options wargs_cmd ] : sparring_partner ]
  69. [ run bind_stderr.cpp filesystem : [ test-options bind_stderr ] : sparring_partner ]
  70. [ run bind_stdin.cpp system filesystem : [ test-options bind_stdin ] : sparring_partner ]
  71. [ run bind_stdin_stdout.cpp system filesystem : [ test-options bind_stdin_stdout ] : sparring_partner ]
  72. [ run bind_stdout.cpp system filesystem : [ test-options bind_stdout ] : sparring_partner ]
  73. [ run bind_stdout_stderr.cpp system filesystem : [ test-options bind_stdout_stderr ] : sparring_partner ]
  74. [ run pipe_fwd.cpp system filesystem : [ test-options pipe_fwd ] : sparring_partner ]
  75. [ run cmd_test.cpp system filesystem : [ test-options cmd_test ] : sparring_partner ]
  76. [ run close_stderr.cpp system filesystem : [ test-options close_stderr ] : sparring_partner ]
  77. [ run close_stdin.cpp system filesystem : [ test-options close_stdin ] : sparring_partner ]
  78. [ run close_stdout.cpp system filesystem : [ test-options close_stdout ] : sparring_partner ]
  79. [ run error.cpp system filesystem : [ test-options error ] : sparring_partner ]
  80. [ run exit_code.cpp program_options system filesystem : [ test-options exit_code ] : sparring_partner ]
  81. [ run extensions.cpp system filesystem : [ test-options extensions ] : sparring_partner ]
  82. [ run env.cpp program_options system filesystem : [ test-options env ] : sparring_partner ]
  83. [ run group.cpp system thread filesystem : [ test-options group ] : sub_launch ]
  84. [ run group.cpp system thread filesystem : [ test-options group ] : sub_launch : <build>no <target-os>windows:<build>yes <define>BOOST_USE_WINDOWS_H=1 : group-windows-h ]
  85. [ run group_wait.cpp system thread filesystem : [ test-options group_wait ] : sparring_partner ]
  86. [ run limit_fd.cpp program_options system filesystem : [ test-options limit_fd ] : sparring_partner ]
  87. [ run run_exe.cpp filesystem : : sparring_partner ]
  88. [ run run_exe_path.cpp filesystem : [ test-options run_exe_path ] : sparring_partner ]
  89. [ run search_path.cpp filesystem system : [ test-options search_path ] : : <target-os>windows:<source>shell32 ]
  90. [ run shell.cpp filesystem system : [ test-options shell ] : sparring_partner ]
  91. [ run shell_path.cpp filesystem system : [ test-options shell_path ] ]
  92. [ run system_test1.cpp filesystem system : [ test-options system_test1 ] : sparring_partner ]
  93. [ run system_test2.cpp filesystem system : [ test-options system_test2 ] : sparring_partner ]
  94. [ run spawn.cpp filesystem system : [ test-options spawn ] : sparring_partner ]
  95. [ run start_dir.cpp filesystem system : [ test-options start_dir ] : sparring_partner ]
  96. [ run terminate.cpp system filesystem : [ test-options terminate ] : sparring_partner ]
  97. [ run throw_on_error.cpp system filesystem : [ test-options throw_on_error ] : sparring_partner ]
  98. [ run wait.cpp system filesystem : [ test-options wait ] : sparring_partner ]
  99. [ run wait_for.cpp system filesystem : [ test-options wait_for ] : sparring_partner ]
  100. [ run on_exit.cpp system filesystem : [ test-options on_exit ] : sparring_partner ]
  101. [ run on_exit2.cpp system filesystem : [ test-options on_exit2 ] : sparring_partner ]
  102. [ run on_exit3.cpp system filesystem : [ test-options on_exit3 ] : sparring_partner ]
  103. [ run posix_specific.cpp system filesystem : [ test-options posix_specific ] : sparring_partner : <build>no <target-os>linux:<build>yes ]
  104. [ run windows_specific.cpp filesystem system : [ test-options windows_specific ] : sparring_partner : <build>no <target-os>windows:<build>yes ]
  105. : <dependency>bare ;
  106. test-suite without-valgrind :
  107. [ run async_system_future.cpp filesystem system coroutine : [ test-options async_system_future ] : sparring_partner : <link>static <toolset>msvc:<cxxflags>/bigobj ]
  108. [ run async_system_stackful.cpp filesystem system coroutine : [ test-options async_system_stackful ] : sparring_partner : <link>static <toolset>msvc:<cxxflags>/bigobj ]
  109. [ run async_system_stackful_error.cpp filesystem system coroutine : [ test-options async_system_stackful_error ] : sparring_partner : <link>static <toolset>msvc:<cxxflags>/bigobj ]
  110. [ run async_system_stackful_except.cpp filesystem system coroutine : [ test-options async_system_stackful_except ] : sparring_partner : <link>static <toolset>msvc:<cxxflags>/bigobj ]
  111. [ run async_system_stackless.cpp filesystem system coroutine : [ test-options async_system_stackless ] : sparring_partner : <link>static <toolset>msvc:<cxxflags>/bigobj ]
  112. [ run vfork.cpp system filesystem : [ test-options vfork ] : sparring_partner : <build>no <target-os>linux:<build>yes ]
  113. ;