]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # Copyright Louis Dionne 2013-2016 |
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 | ||
5 | import testing ; | |
6 | import regex ; | |
7 | ||
8 | project boost/hana : | |
9 | requirements | |
10 | <include>./_include | |
11 | <include>../include | |
12 | ; | |
13 | ||
14 | rule hana-all-tests { | |
15 | local toolset = | |
16 | <toolset>clang:<cxxflags>"-std=c++1y -pedantic -Wall -Wextra" | |
17 | <toolset>darwin:<cxxflags>"-std=c++1y -pedantic -Wall -Wextra" | |
18 | ; | |
19 | ||
20 | local result ; | |
21 | ||
22 | result += [ run issues/github_75/tu1.cpp issues/github_75/tu2.cpp : : : $(toolset) : test.issues.github_75 ] ; | |
23 | ||
24 | local sources = [ glob-tree *.cpp : *github_75* ] ; | |
25 | for local source in $(sources) | |
26 | { | |
27 | local target = [ regex.replace $(source) "\.cpp" "" ] ; | |
28 | target = [ regex.replace $(target) "/" "." ] ; | |
29 | result += [ run $(source) : : : $(toolset) : test.$(target) ] ; | |
30 | } | |
31 | ||
32 | return $(result) ; | |
33 | } | |
34 | ||
35 | test-suite hana : [ hana-all-tests ] ; | |
36 | ||
37 | # Satisfy the Boost library requirements | |
38 | test-suite minimal : hana ; | |
39 | test-suite full : hana ; | |
40 | test-suite extra : hana ; | |
41 | ||
42 | explicit hana ; | |
43 | explicit minimal ; | |
44 | explicit extra ; |