# Boost.Context Library Tests Jamfile # Copyright Oliver Kowalke 2009. # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) import common ; import feature ; import indirect ; import modules ; import os ; import testing ; import toolset ; import ../../config/checks/config : requires ; project boost/context/test : requirements ../../test/build//boost_unit_test_framework /boost/context//boost_context gcc,on:-fsplit-stack gcc,on:-DBOOST_USE_SEGMENTED_STACKS clang,on:-fsplit-stack clang,on:-DBOOST_USE_SEGMENTED_STACKS static multi release ; rule native-impl ( properties * ) { local result ; if ( android in $(properties) || darwin in $(properties) || openbsd in $(properties) ) { result = no ; } else if ( ! ( windows in $(properties) ) ) { result = ucontext ; } else { result = winfib ; } return $(result) ; } rule segmented-stack ( properties * ) { local result ; if ( gcc in $(properties) ) { result = on ; } else { result = no ; } return $(result) ; } test-suite minimal : [ run test_invoke.cpp : : : [ requires cxx11_auto_declarations cxx11_constexpr cxx11_defaulted_functions cxx11_final cxx11_hdr_thread cxx11_hdr_tuple cxx11_lambdas cxx11_noexcept cxx11_nullptr cxx11_rvalue_references cxx11_template_aliases cxx11_thread_local cxx11_variadic_templates ] ] [ run test_apply.cpp : : : [ requires cxx11_auto_declarations cxx11_constexpr cxx11_defaulted_functions cxx11_final cxx11_hdr_thread cxx11_hdr_tuple cxx11_lambdas cxx11_noexcept cxx11_nullptr cxx11_rvalue_references cxx11_template_aliases cxx11_thread_local cxx11_variadic_templates ] ] [ run test_fiber.cpp : : : fcontext [ requires cxx11_auto_declarations cxx11_constexpr cxx11_defaulted_functions cxx11_final cxx11_hdr_thread cxx11_hdr_tuple cxx11_lambdas cxx11_noexcept cxx11_nullptr cxx11_rvalue_references cxx11_template_aliases cxx11_thread_local cxx11_variadic_templates ] : test_fiber_asm ] [ run test_fiber.cpp : : : @native-impl [ requires cxx11_auto_declarations cxx11_constexpr cxx11_defaulted_functions cxx11_final cxx11_hdr_thread cxx11_hdr_tuple cxx11_lambdas cxx11_noexcept cxx11_nullptr cxx11_rvalue_references cxx11_template_aliases cxx11_thread_local cxx11_variadic_templates ] : test_fiber_native ] [ run test_fiber.cpp : : : ucontext @segmented-stack [ requires cxx11_auto_declarations cxx11_constexpr cxx11_defaulted_functions cxx11_final cxx11_hdr_thread cxx11_hdr_tuple cxx11_lambdas cxx11_noexcept cxx11_nullptr cxx11_rvalue_references cxx11_template_aliases cxx11_thread_local cxx11_variadic_templates ] : test_fiber_segmented ] [ run test_callcc.cpp : : : fcontext [ requires cxx11_auto_declarations cxx11_constexpr cxx11_defaulted_functions cxx11_final cxx11_hdr_thread cxx11_hdr_tuple cxx11_lambdas cxx11_noexcept cxx11_nullptr cxx11_rvalue_references cxx11_template_aliases cxx11_thread_local cxx11_variadic_templates ] : test_callcc_asm ] [ run test_callcc.cpp : : : @native-impl [ requires cxx11_auto_declarations cxx11_constexpr cxx11_defaulted_functions cxx11_final cxx11_hdr_thread cxx11_hdr_tuple cxx11_lambdas cxx11_noexcept cxx11_nullptr cxx11_rvalue_references cxx11_template_aliases cxx11_thread_local cxx11_variadic_templates ] : test_callcc_native ] [ run test_callcc.cpp : : : ucontext @segmented-stack [ requires cxx11_auto_declarations cxx11_constexpr cxx11_defaulted_functions cxx11_final cxx11_hdr_thread cxx11_hdr_tuple cxx11_lambdas cxx11_noexcept cxx11_nullptr cxx11_rvalue_references cxx11_template_aliases cxx11_thread_local cxx11_variadic_templates ] : test_callcc_segmented ] ; test-suite full : minimal ; test-suite fc : [ run test_fcontext.cpp : : : ] ; explicit minimal ; explicit fc ;