]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | |
2 | # Copyright Oliver Kowalke 2014. | |
3 | # Distributed under the Boost Software License, Version 1.0. | |
4 | # (See accompanying file LICENSE_1_0.txt or copy at | |
5 | # http://www.boost.org/LICENSE_1_0.txt) | |
6 | ||
7 | import common ; | |
8 | import feature ; | |
9 | import indirect ; | |
10 | import modules ; | |
11 | import os ; | |
12 | import path ; | |
13 | import testing ; | |
14 | import toolset ; | |
15 | import ../../config/checks/config : requires ; | |
16 | ||
17 | project boost/coroutine2/test | |
18 | : requirements | |
19 | <library>../../test/build//boost_unit_test_framework | |
20 | <library>/boost/context//boost_context | |
20effc67 TL |
21 | <target-os>linux,<toolset>gcc,<segmented-stacks>on:<cxxflags>-fsplit-stack |
22 | <target-os>linux,<toolset>gcc,<segmented-stacks>on:<cxxflags>-DBOOST_USE_SEGMENTED_STACKS | |
7c673cae FG |
23 | <toolset>clang,<segmented-stacks>on:<cxxflags>-fsplit-stack |
24 | <toolset>clang,<segmented-stacks>on:<cxxflags>-DBOOST_USE_SEGMENTED_STACKS | |
25 | <link>static | |
26 | <threading>multi | |
b32b8144 FG |
27 | <optimization>speed |
28 | <variant>release | |
7c673cae FG |
29 | ; |
30 | ||
11fdf7f2 | 31 | rule native-impl ( properties * ) |
b32b8144 FG |
32 | { |
33 | local result ; | |
11fdf7f2 TL |
34 | if ( <target-os>darwin in $(properties) || <target-os>android in $(properties) ) |
35 | { | |
36 | result = <build>no ; | |
37 | } | |
38 | else if ( ! ( <target-os>windows in $(properties) ) ) | |
b32b8144 FG |
39 | { |
40 | result = <context-impl>ucontext ; | |
41 | } | |
42 | else | |
43 | { | |
44 | result = <context-impl>winfib ; | |
45 | } | |
46 | return $(result) ; | |
47 | } | |
48 | ||
7c673cae FG |
49 | test-suite minimal : |
50 | [ run test_coroutine.cpp : | |
51 | : : | |
b32b8144 FG |
52 | <context-impl>fcontext |
53 | [ requires cxx11_auto_declarations | |
54 | cxx11_constexpr | |
55 | cxx11_defaulted_functions | |
56 | cxx11_final | |
57 | cxx11_hdr_tuple | |
58 | cxx11_lambdas | |
59 | cxx11_noexcept | |
60 | cxx11_nullptr | |
61 | cxx11_rvalue_references | |
62 | cxx11_template_aliases | |
63 | cxx11_variadic_templates ] | |
64 | : test_coroutine_asm ] | |
65 | ||
66 | [ run test_coroutine.cpp : | |
67 | : : | |
11fdf7f2 | 68 | <conditional>@native-impl |
7c673cae FG |
69 | [ requires cxx11_auto_declarations |
70 | cxx11_constexpr | |
71 | cxx11_defaulted_functions | |
72 | cxx11_final | |
73 | cxx11_hdr_tuple | |
74 | cxx11_lambdas | |
75 | cxx11_noexcept | |
76 | cxx11_nullptr | |
77 | cxx11_rvalue_references | |
78 | cxx11_template_aliases | |
b32b8144 FG |
79 | cxx11_variadic_templates ] |
80 | : test_coroutine_native ] ; | |
7c673cae FG |
81 | |
82 | test-suite full : | |
83 | minimal ; | |
84 | ||
85 | test-suite extra ; | |
86 | ||
87 | explicit minimal ; | |
88 | explicit extra ; |