• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright Louis Dionne 2013-2017
2# Distributed under the Boost Software License, Version 1.0.
3# (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
4
5import config : requires ;
6import testing ;
7import regex ;
8
9project boost/hana :
10    requirements
11        <include>./_include
12        <include>../include
13;
14
15rule hana-all-tests {
16    local toolset =
17        <toolset>clang:<cxxflags>"-std=c++1y -pedantic -Wall -Wextra"
18        <toolset>darwin:<cxxflags>"-std=c++1y -pedantic -Wall -Wextra"
19        [ requires
20            cxx14_constexpr
21            cxx14_decltype_auto
22            cxx14_generic_lambdas
23            cxx14_return_type_deduction
24        ]
25    ;
26
27    local result ;
28
29    result += [ run issues/github_75/tu1.cpp issues/github_75/tu2.cpp : : : $(toolset) : test.issues.github_75 ] ;
30
31    local sources = [ glob-tree *.cpp : *github_75* ] ;
32    for local source in $(sources)
33    {
34        local target = [ regex.replace $(source) "\.cpp" "" ] ;
35        target = [ regex.replace $(target) "/" "." ] ;
36        result += [ run $(source) : : : $(toolset) : test.$(target) ] ;
37    }
38
39    return $(result) ;
40}
41
42test-suite hana : [ hana-all-tests ] ;
43
44# Satisfy the Boost library requirements
45test-suite minimal  : hana ;
46test-suite full     : hana ;
47test-suite extra    : hana ;
48
49explicit hana ;
50explicit minimal ;
51explicit extra ;
52