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
32 rule configure-impl ( properties * )
35 if ( ! ( <target-os>windows in $(properties) ) )
37 result = <context-impl>ucontext ;
41 result = <context-impl>winfib ;
47 [ run test_invoke.cpp :
49 [ requires cxx11_auto_declarations
51 cxx11_defaulted_functions
58 cxx11_rvalue_references
59 cxx11_template_aliases
61 cxx11_variadic_templates ] ]
63 [ run test_apply.cpp :
65 [ requires cxx11_auto_declarations
67 cxx11_defaulted_functions
74 cxx11_rvalue_references
75 cxx11_template_aliases
77 cxx11_variadic_templates ] ]
79 [ run test_callcc.cpp :
81 <context-impl>fcontext
82 [ requires cxx11_auto_declarations
84 cxx11_defaulted_functions
91 cxx11_rvalue_references
92 cxx11_template_aliases
94 cxx11_variadic_templates ]
97 [ run test_callcc.cpp :
99 <conditional>@configure-impl
100 [ requires cxx11_auto_declarations
102 cxx11_defaulted_functions
109 cxx11_rvalue_references
110 cxx11_template_aliases
112 cxx11_variadic_templates ]
113 : test_call_native ] ;
121 [ run test_fcontext.cpp :
126 [ run test_execution_context.cpp :
128 [ requires cxx11_auto_declarations
130 cxx11_defaulted_functions
137 cxx11_rvalue_references
138 cxx11_template_aliases
140 cxx11_variadic_templates ] ] ;