1 # Boost.Context Library Tests Jamfile
3 # Copyright Oliver Kowalke 2009.
4 # Distributed under the Boost Software License, Version 1.0.
5 # (See accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
15 import ../../config/checks/config : requires ;
17 project boost/context/test
19 <library>../../test/build//boost_unit_test_framework
20 <library>/boost/context//boost_context
21 <toolset>gcc,<segmented-stacks>on:<cxxflags>-fsplit-stack
22 <toolset>gcc,<segmented-stacks>on:<cxxflags>-DBOOST_USE_SEGMENTED_STACKS
23 <toolset>clang,<segmented-stacks>on:<cxxflags>-fsplit-stack
24 <toolset>clang,<segmented-stacks>on:<cxxflags>-DBOOST_USE_SEGMENTED_STACKS
30 rule native-impl ( properties * )
33 if ( <target-os>darwin in $(properties) || <target-os>android in $(properties) )
37 else if ( ! ( <target-os>windows in $(properties) ) )
39 result = <context-impl>ucontext ;
43 result = <context-impl>winfib ;
49 [ run test_invoke.cpp :
51 [ requires cxx11_auto_declarations
53 cxx11_defaulted_functions
60 cxx11_rvalue_references
61 cxx11_template_aliases
63 cxx11_variadic_templates ] ]
65 [ run test_apply.cpp :
67 [ requires cxx11_auto_declarations
69 cxx11_defaulted_functions
76 cxx11_rvalue_references
77 cxx11_template_aliases
79 cxx11_variadic_templates ] ]
81 [ run test_fiber.cpp :
83 <context-impl>fcontext
84 [ requires cxx11_auto_declarations
86 cxx11_defaulted_functions
93 cxx11_rvalue_references
94 cxx11_template_aliases
96 cxx11_variadic_templates ]
99 [ run test_fiber.cpp :
101 <conditional>@native-impl
102 [ requires cxx11_auto_declarations
104 cxx11_defaulted_functions
111 cxx11_rvalue_references
112 cxx11_template_aliases
114 cxx11_variadic_templates ]
115 : test_fiber_native ]
117 [ run test_callcc.cpp :
119 <context-impl>fcontext
120 [ requires cxx11_auto_declarations
122 cxx11_defaulted_functions
129 cxx11_rvalue_references
130 cxx11_template_aliases
132 cxx11_variadic_templates ]
135 [ run test_callcc.cpp :
137 <conditional>@native-impl
138 [ requires cxx11_auto_declarations
140 cxx11_defaulted_functions
147 cxx11_rvalue_references
148 cxx11_template_aliases
150 cxx11_variadic_templates ]
151 : test_callcc_native ]
153 [ run test_execution_context_v2.cpp :
155 [ requires cxx11_auto_declarations
157 cxx11_defaulted_functions
164 cxx11_rvalue_references
165 cxx11_template_aliases
167 cxx11_variadic_templates ] ] ;
175 [ run test_fcontext.cpp :