summaryrefslogtreecommitdiff
path: root/libs/accumulators/test/Jamfile.v2
blob: baab6c388013e332f1f36f1cc9bb9224404b6091 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# (C) Copyright 2005: Eric Niebler
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

# bring in rules for testing
import testing ;
import feature ;

feature.feature iterator_debugging
  : on off
  : composite propagated optional
  ;

feature.compose <iterator_debugging>off
  : <define>_HAS_ITERATOR_DEBUGGING=0
  ;

project
    : requirements
      <library>/boost/test//boost_unit_test_framework
      <link>static
      <include>../../..
      <toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
      # MSVC's iterator debugging causes some tests to run forever.
      <toolset>msvc:<iterator_debugging>off
      <toolset>intel-win:<iterator_debugging>off
      <toolset>gcc:<cxxflags>"-Wno-deprecated-declarations"
      <toolset>clang:<cxxflags>"-Wno-deprecated-declarations"
      <toolset>intel-linux:<cxxflags>"-Wno-deprecated-declarations"
      <library>/boost/serialization
    ;

alias accumulators_regular_tests
    : [ run count.cpp ]
      [ run covariance.cpp ]
      [ run droppable.cpp ]
      [ run error_of.cpp ]
      [ run extended_p_square.cpp ]
      [ run extended_p_square_quantile.cpp ]
      [ run external_accumulator.cpp ]
      [ run external_weights.cpp ]
      [ run kurtosis.cpp ]
      [ run max.cpp ]
      [ run mean.cpp ]
      [ run median.cpp ]
      [ run min.cpp ]
      [ run moment.cpp ]
      [ run p_square_cumul_dist.cpp ]
      [ run p_square_quantile.cpp ]
      [ run reference.cpp ]
      [ run rolling_count.cpp ]
      [ run rolling_sum.cpp ]
      [ run rolling_mean.cpp ]
      [ run rolling_variance.cpp ]
      [ run rolling_moment.cpp ]
      [ run skewness.cpp ]
      [ run sum.cpp ]
      [ run sum_kahan.cpp ]
      [ run tail.cpp ]
      [ run tail_mean.cpp ]
      [ run tail_quantile.cpp ]
      [ run variance.cpp ]
      [ run vector.cpp ]
      [ run weighted_covariance.cpp ]
      [ run weighted_extended_p_square.cpp ]
      [ run weighted_kurtosis.cpp ]
      [ run weighted_mean.cpp ]
      [ run weighted_median.cpp ]
      [ run weighted_moment.cpp ]
      [ run weighted_p_square_cumul_dist.cpp ]
      [ run weighted_p_square_quantile.cpp ]
      [ run weighted_skewness.cpp ]
      [ run weighted_sum.cpp ]
      [ run weighted_sum_kahan.cpp ]
      [ run weighted_variance.cpp ]
    ;

alias accumulators_test_valarray
    :
    : <target-os>linux
      <toolset>clang
# TODO: Find the correct attribute that detects libc++.
    ;

alias accumulators_test_valarray
    :
    : <target-os>darwin
    ;

alias accumulators_test_valarray
    : [ run valarray.cpp ]
    ;

alias accumulators_test_tail_variate_means
    :
    : <toolset>msvc
      <toolset-msvc:version>14.0
    ;

alias accumulators_test_tail_variate_means
    : [ run tail_variate_means.cpp ]
    ;

alias accumulators_tests_pot_quantile_and_weighted_tail
    :
    : <target-os>linux
      <toolset>gcc
      <toolset-gcc:version>4.4.7
    ;

alias accumulators_tests_pot_quantile_and_weighted_tail
    : [ run pot_quantile.cpp ]
      [ run weighted_pot_quantile.cpp ]
      [ run weighted_tail_mean.cpp ]
      [ run weighted_tail_quantile.cpp ]
    ;

alias accumulators_test_weighted_tail_variate_means
    :
    : <target-os>linux
      <toolset>gcc
      <toolset-gcc:version>4.4.7
    ;

alias accumulators_test_weighted_tail_variate_means
    :
    : <toolset>msvc
      <toolset-msvc:version>14.0
    ;

alias accumulators_test_weighted_tail_variate_means
    : [ run weighted_tail_variate_means.cpp ]
    ;

test-suite "accumulators"
    : accumulators_regular_tests
      accumulators_test_valarray
      accumulators_test_tail_variate_means
      accumulators_tests_pot_quantile_and_weighted_tail
      accumulators_test_weighted_tail_variate_means
    ;