• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# (C) Copyright 2005: Eric Niebler
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# bring in rules for testing
6import testing ;
7import feature ;
8
9feature.feature iterator_debugging
10  : on off
11  : composite propagated optional
12  ;
13
14feature.compose <iterator_debugging>off
15  : <define>_HAS_ITERATOR_DEBUGGING=0
16  ;
17
18project
19    : requirements
20      <library>/boost/test//boost_unit_test_framework
21      <link>static
22      <include>../../..
23      <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
24      # MSVC's iterator debugging causes some tests to run forever.
25      <toolset>msvc:<iterator_debugging>off
26      <toolset>intel-win:<iterator_debugging>off
27      <cxxflags>"-Wno-deprecated-declarations"
28      <library>/boost/serialization
29    ;
30
31alias accumulators_regular_tests
32    : [ run count.cpp ]
33      [ run covariance.cpp ]
34      [ run droppable.cpp ]
35      [ run error_of.cpp ]
36      [ run extended_p_square.cpp ]
37      [ run extended_p_square_quantile.cpp ]
38      [ run external_accumulator.cpp ]
39      [ run external_weights.cpp ]
40      [ run kurtosis.cpp ]
41      [ run max.cpp ]
42      [ run mean.cpp ]
43      [ run median.cpp ]
44      [ run min.cpp ]
45      [ run moment.cpp ]
46      [ run p_square_cumul_dist.cpp ]
47      [ run p_square_quantile.cpp ]
48      [ run reference.cpp ]
49      [ run rolling_count.cpp ]
50      [ run rolling_sum.cpp ]
51      [ run rolling_mean.cpp ]
52      [ run rolling_variance.cpp ]
53      [ run rolling_moment.cpp ]
54      [ run skewness.cpp ]
55      [ run sum.cpp ]
56      [ run sum_kahan.cpp ]
57      [ run tail.cpp ]
58      [ run tail_mean.cpp ]
59      [ run tail_quantile.cpp ]
60      [ run variance.cpp ]
61      [ run vector.cpp ]
62      [ run weighted_covariance.cpp ]
63      [ run weighted_extended_p_square.cpp ]
64      [ run weighted_kurtosis.cpp ]
65      [ run weighted_mean.cpp ]
66      [ run weighted_median.cpp ]
67      [ run weighted_moment.cpp ]
68      [ run weighted_p_square_cumul_dist.cpp ]
69      [ run weighted_p_square_quantile.cpp ]
70      [ run weighted_skewness.cpp ]
71      [ run weighted_sum.cpp ]
72      [ run weighted_sum_kahan.cpp ]
73      [ run weighted_variance.cpp ]
74    ;
75
76alias accumulators_test_valarray
77    :
78    : <target-os>linux
79      <toolset>clang
80# TODO: Find the correct attribute that detects libc++.
81    ;
82
83alias accumulators_test_valarray
84    :
85    : <target-os>darwin
86    ;
87
88alias accumulators_test_valarray
89    : [ run valarray.cpp ]
90    ;
91
92alias accumulators_test_tail_variate_means
93    :
94    : <toolset>msvc
95      <toolset-msvc:version>14.0
96    ;
97
98alias accumulators_test_tail_variate_means
99    : [ run tail_variate_means.cpp ]
100    ;
101
102alias accumulators_tests_pot_quantile_and_weighted_tail
103    :
104    : <target-os>linux
105      <toolset>gcc
106      <toolset-gcc:version>4.4.7
107    ;
108
109alias accumulators_tests_pot_quantile_and_weighted_tail
110    : [ run pot_quantile.cpp ]
111      [ run weighted_pot_quantile.cpp ]
112      [ run weighted_tail_mean.cpp ]
113      [ run weighted_tail_quantile.cpp ]
114    ;
115
116alias accumulators_test_weighted_tail_variate_means
117    :
118    : <target-os>linux
119      <toolset>gcc
120      <toolset-gcc:version>4.4.7
121    ;
122
123alias accumulators_test_weighted_tail_variate_means
124    :
125    : <toolset>msvc
126      <toolset-msvc:version>14.0
127    ;
128
129alias accumulators_test_weighted_tail_variate_means
130    : [ run weighted_tail_variate_means.cpp ]
131    ;
132
133test-suite "accumulators"
134    : accumulators_regular_tests
135      accumulators_test_valarray
136      accumulators_test_tail_variate_means
137      accumulators_tests_pot_quantile_and_weighted_tail
138      accumulators_test_weighted_tail_variate_means
139    ;
140