]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #~ Copyright Rene Rivera 2008 |
2 | #~ Distributed under the Boost Software License, Version 1.0. | |
3 | #~ (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
4 | ||
5 | ||
6 | project | |
7 | : requirements | |
8 | <library>/boost/system//boost_system | |
9 | <define>BOOST_ALL_NO_LIB=1 | |
10 | <warnings>all | |
11 | <toolset>gcc:<cxxflags>-Wextra | |
12 | <toolset>gcc:<cxxflags>-Wshadow | |
13 | # <toolset>gcc:<warnings-as-errors>on | |
14 | <toolset>gcc:<cxxflags>-Wno-long-long | |
15 | <toolset>pathscale:<cxxflags>-Wno-long-long | |
16 | <toolset>gcc:<cxxflags>-Wcast-align | |
17 | # <toolset>msvc:<warnings-as-errors>on | |
18 | <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS | |
19 | ; | |
20 | ||
11fdf7f2 | 21 | import common ; |
7c673cae FG |
22 | import testing ; |
23 | ||
11fdf7f2 | 24 | obj valgrind_config_check : valgrind_config_check.cpp ; |
7c673cae FG |
25 | explicit valgrind_config_check ; |
26 | ||
11fdf7f2 TL |
27 | local VALGRIND = [ common.find-tool valgrind ] ; |
28 | ||
29 | local use-valgrind = <build>no ; | |
30 | if $(VALGRIND) | |
31 | { | |
32 | use-valgrind = [ check-target-builds valgrind_config_check "valgrind" | |
33 | : <testing.launcher>"$(VALGRIND) --error-exitcode=1" | |
34 | : <build>no ] ; | |
35 | } | |
7c673cae FG |
36 | |
37 | local Werr = <toolset>gcc:<warnings-as-errors>on <toolset>msvc:<warnings-as-errors>on ; | |
38 | ||
39 | test-suite pool : | |
40 | [ run test_simple_seg_storage.cpp : : : $(Werr) <toolset>msvc:<cxxflags>-wd4267 ] | |
41 | [ run test_pool_alloc.cpp : : : $(Werr) ] | |
42 | [ run pool_msvc_compiler_bug_test.cpp : : : $(Werr) <toolset>msvc:<cxxflags>-wd4512 ] | |
43 | [ run test_msvc_mem_leak_detect.cpp : : : $(Werr) ] | |
44 | [ run test_bug_3349.cpp : : : $(Werr) ] | |
45 | [ run test_bug_4960.cpp : : : $(Werr) ] | |
46 | [ run test_bug_1252.cpp : : : $(Werr) ] | |
47 | [ run test_bug_2696.cpp : : : $(Werr) ] | |
48 | [ run test_bug_5526.cpp : : : $(Werr) ] | |
49 | [ run test_threading.cpp : : : <threading>multi <library>/boost/thread//boost_thread ] | |
50 | [ run ../example/time_pool_alloc.cpp : : : $(Werr) ] | |
51 | [ compile test_poisoned_macros.cpp : $(Werr) ] | |
52 | ||
53 | # | |
54 | # The following tests test Boost.Pool's code with valgrind only if it's available: | |
55 | # | |
56 | [ run test_simple_seg_storage.cpp : : : $(use-valgrind) : test_simple_seg_storage_valgrind ] | |
57 | [ run test_pool_alloc.cpp : : : $(use-valgrind) : test_pool_alloc_valgrind ] | |
58 | [ run pool_msvc_compiler_bug_test.cpp : : : $(use-valgrind) : pool_msvc_compiler_bug_test_valgrind ] | |
59 | [ run test_msvc_mem_leak_detect.cpp : : : $(use-valgrind) : test_msvc_mem_leak_detect_valgrind ] | |
60 | [ run test_bug_3349.cpp : : : $(use-valgrind) : test_bug_3349_valgrind ] | |
61 | [ run test_bug_4960.cpp : : : $(use-valgrind) : test_bug_4960_valgrind ] | |
62 | [ run test_bug_1252.cpp : : : $(use-valgrind) : test_bug_1252_valgrind ] | |
63 | [ run test_bug_2696.cpp : : : $(use-valgrind) : test_bug_2696_valgrind ] | |
64 | [ run test_bug_5526.cpp : : : $(use-valgrind) : test_bug_5526_valgrind ] | |
65 | [ run test_threading.cpp : : : <threading>multi <library>/boost/thread//boost_thread <toolset>gcc:<cxxflags>-Wno-attributes <toolset>gcc:<cxxflags>-Wno-missing-field-initializers $(use-valgrind) : test_threading_valgrind ] | |
66 | ||
67 | # | |
68 | # The following tests test Boost.Pool's code with valgrind if it's available, and in any case with BOOST_POOL_VALGRIND defined | |
69 | # which has the effect of disabling any actual memory pooling: | |
70 | # | |
71 | [ run test_simple_seg_storage.cpp : : : <define>BOOST_POOL_VALGRIND=1 $(use-valgrind) : test_simple_seg_storage_valgrind_2 ] | |
72 | [ run test_pool_alloc.cpp : : : <define>BOOST_POOL_VALGRIND=1 $(use-valgrind) : test_pool_alloc_valgrind_2 ] | |
73 | [ run pool_msvc_compiler_bug_test.cpp : : : <define>BOOST_POOL_VALGRIND=1 $(use-valgrind) : pool_msvc_compiler_bug_test_valgrind_2 ] | |
74 | [ run test_msvc_mem_leak_detect.cpp : : : <define>BOOST_POOL_VALGRIND=1 $(use-valgrind) : test_msvc_mem_leak_detect_valgrind_2 ] | |
75 | [ run test_bug_3349.cpp : : : <define>BOOST_POOL_VALGRIND=1 $(use-valgrind) : test_bug_3349_valgrind_2 ] | |
76 | [ run test_bug_4960.cpp : : : <define>BOOST_POOL_VALGRIND=1 $(use-valgrind) : test_bug_4960_valgrind_2 ] | |
77 | [ run test_bug_1252.cpp : : : <define>BOOST_POOL_VALGRIND=1 $(use-valgrind) : test_bug_1252_valgrind_2 ] | |
78 | [ run test_bug_2696.cpp : : : <define>BOOST_POOL_VALGRIND=1 $(use-valgrind) : test_bug_2696_valgrind_2 ] | |
79 | [ run test_bug_5526.cpp : : : <define>BOOST_POOL_VALGRIND=1 $(use-valgrind) : test_bug_5526_valgrind_2 ] | |
80 | [ run test_threading.cpp : : : <threading>multi <library>/boost/thread//boost_thread <define>BOOST_POOL_VALGRIND=1 <toolset>gcc:<cxxflags>-Wno-attributes <toolset>gcc:<cxxflags>-Wno-missing-field-initializers $(use-valgrind) : test_threading_valgrind_2 ] | |
81 | [ run-fail test_valgrind_fail_1.cpp : : : <define>BOOST_POOL_VALGRIND=1 $(use-valgrind) ] | |
82 | [ run-fail test_valgrind_fail_2.cpp : : : <define>BOOST_POOL_VALGRIND=1 $(use-valgrind) ] | |
83 | ; | |
84 | ||
85 |