From 3f6916464f76b64f0c4dc40a1c4dce715322203c Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Tue, 30 May 2017 17:43:04 +0200 Subject: [PATCH] add unit-test for native APIs --- test/Jamfile.v2 | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index a71d123..df20502 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -28,9 +28,24 @@ project boost/coroutine2/test release ; +rule configure-impl ( properties * ) +{ + local result ; + if ( ! ( windows in $(properties) ) ) + { + result = ucontext ; + } + else + { + result = winfib ; + } + return $(result) ; +} + test-suite minimal : [ run test_coroutine.cpp : : : + fcontext [ requires cxx11_auto_declarations cxx11_constexpr cxx11_defaulted_functions @@ -41,7 +56,24 @@ test-suite minimal : cxx11_nullptr cxx11_rvalue_references cxx11_template_aliases - cxx11_variadic_templates ] ] ; + cxx11_variadic_templates ] + : test_coroutine_asm ] + +[ run test_coroutine.cpp : + : : + @configure-impl + [ requires cxx11_auto_declarations + cxx11_constexpr + cxx11_defaulted_functions + cxx11_final + cxx11_hdr_tuple + cxx11_lambdas + cxx11_noexcept + cxx11_nullptr + cxx11_rvalue_references + cxx11_template_aliases + cxx11_variadic_templates ] + : test_coroutine_native ] ; test-suite full : minimal ;