• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2003 Jens Maurer
2# Copyright 2009-2011 Steven Watanabe
3# Distributed under the Boost Software License, Version 1.0. (See accompany-
4# ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6# Boost Random Library test Jamfile
7
8# bring in rules for testing
9import testing ;
10
11project /boost/random/test : requirements <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS ;
12
13run test_const_mod.cpp /boost//unit_test_framework ;
14run test_generate_canonical.cpp /boost//unit_test_framework ;
15run test_random_number_generator.cpp /boost//unit_test_framework ;
16run ../example/random_demo.cpp ;
17run test_random_device.cpp /boost//random : : : <link>static : test_random_device ;
18run test_random_device.cpp /boost//random : : : <link>shared : test_random_device_dll ;
19
20run test_minstd_rand0.cpp /boost//unit_test_framework ;
21run test_minstd_rand.cpp /boost//unit_test_framework ;
22run test_rand48.cpp /boost//unit_test_framework ;
23run test_mt11213b.cpp /boost//unit_test_framework ;
24run test_mt19937.cpp /boost//unit_test_framework ;
25run test_mt19937_64.cpp /boost//unit_test_framework ;
26run test_ecuyer1988.cpp /boost//unit_test_framework ;
27run test_hellekalek1995.cpp /boost//unit_test_framework ;
28run test_linear_feedback_shift.cpp /boost//unit_test_framework ;
29run test_taus88.cpp /boost//unit_test_framework ;
30run test_kreutzer1986.cpp /boost//unit_test_framework ;
31run test_ranlux3.cpp /boost//unit_test_framework ;
32run test_ranlux4.cpp /boost//unit_test_framework ;
33run test_ranlux3_01.cpp /boost//unit_test_framework ;
34run test_ranlux4_01.cpp /boost//unit_test_framework ;
35run test_ranlux64_4.cpp /boost//unit_test_framework ;
36run test_ranlux64_3.cpp /boost//unit_test_framework ;
37run test_ranlux64_3_01.cpp /boost//unit_test_framework ;
38run test_ranlux64_4_01.cpp /boost//unit_test_framework ;
39run test_ranlux24_base.cpp /boost//unit_test_framework ;
40run test_ranlux24.cpp /boost//unit_test_framework ;
41run test_ranlux48_base.cpp /boost//unit_test_framework ;
42run test_ranlux48.cpp /boost//unit_test_framework ;
43run test_knuth_b.cpp /boost//unit_test_framework ;
44run test_independent_bits31.cpp /boost//unit_test_framework ;
45run test_independent_bits32.cpp /boost//unit_test_framework ;
46run test_lagged_fibonacci.cpp /boost//unit_test_framework ;
47run test_lagged_fibonacci607.cpp /boost//unit_test_framework ;
48run test_lagged_fibonacci1279.cpp /boost//unit_test_framework ;
49run test_lagged_fibonacci2281.cpp /boost//unit_test_framework ;
50run test_lagged_fibonacci3217.cpp /boost//unit_test_framework ;
51run test_lagged_fibonacci4423.cpp /boost//unit_test_framework ;
52run test_lagged_fibonacci9689.cpp /boost//unit_test_framework ;
53run test_lagged_fibonacci19937.cpp /boost//unit_test_framework ;
54run test_lagged_fibonacci23209.cpp /boost//unit_test_framework ;
55run test_lagged_fibonacci44497.cpp /boost//unit_test_framework ;
56run test_zero_seed.cpp /boost//unit_test_framework ;
57
58run niederreiter_base2_validate.cpp /boost//unit_test_framework ;
59run sobol_validate.cpp /boost//unit_test_framework ;
60run faure_validate.cpp /boost//unit_test_framework ;
61
62# Disable by default.  These don't add much and the larger
63# ones can overflow the stack.
64explicit test_lagged_fibonacci1279 test_lagged_fibonacci2281
65    test_lagged_fibonacci2281 test_lagged_fibonacci3217
66    test_lagged_fibonacci4423 test_lagged_fibonacci9689
67    test_lagged_fibonacci19937 test_lagged_fibonacci23209
68    test_lagged_fibonacci44497 ;
69
70run test_seed_seq.cpp /boost//unit_test_framework ;
71
72run test_binomial.cpp ;
73run test_binomial_distribution.cpp /boost//unit_test_framework ;
74run test_poisson.cpp ;
75run test_poisson_distribution.cpp /boost//unit_test_framework ;
76run test_discrete.cpp ;
77run test_discrete_distribution.cpp /boost//unit_test_framework ;
78run test_gamma.cpp ;
79run test_gamma_distribution.cpp /boost//unit_test_framework ;
80run test_weibull.cpp ;
81run test_weibull_distribution.cpp /boost//unit_test_framework ;
82run test_extreme_value.cpp ;
83run test_extreme_value_distribution.cpp /boost//unit_test_framework ;
84run test_negative_binomial.cpp ;
85run test_negative_binomial_distribution.cpp /boost//unit_test_framework ;
86run test_chi_squared.cpp ;
87run test_chi_squared_distribution.cpp /boost//unit_test_framework ;
88run test_fisher_f.cpp ;
89run test_fisher_f_distribution.cpp /boost//unit_test_framework ;
90run test_student_t.cpp ;
91run test_student_t_distribution.cpp /boost//unit_test_framework ;
92run test_normal.cpp ;
93run test_normal_distribution.cpp /boost//unit_test_framework ;
94run test_piecewise_constant.cpp ;
95run test_piecewise_constant_distribution.cpp /boost//unit_test_framework ;
96run test_piecewise_linear.cpp ;
97run test_piecewise_linear_distribution.cpp /boost//unit_test_framework ;
98run test_exponential.cpp ;
99run test_exponential_distribution.cpp /boost//unit_test_framework ;
100run test_bernoulli.cpp ;
101run test_bernoulli_distribution.cpp /boost//unit_test_framework ;
102run test_cauchy.cpp ;
103run test_cauchy_distribution.cpp /boost//unit_test_framework ;
104run test_geometric.cpp ;
105run test_geometric_distribution.cpp /boost//unit_test_framework ;
106run test_lognormal.cpp ;
107run test_lognormal_distribution.cpp /boost//unit_test_framework ;
108run test_triangle.cpp ;
109run test_triangle_distribution.cpp /boost//unit_test_framework ;
110run test_uniform_int.cpp ;
111run test_uniform_int_distribution.cpp /boost//unit_test_framework ;
112run test_uniform_real.cpp ;
113run test_uniform_real_distribution.cpp /boost//unit_test_framework ;
114run test_uniform_on_sphere.cpp ;
115run test_uniform_on_sphere_distribution.cpp /boost//unit_test_framework ;
116run test_uniform_smallint.cpp ;
117run test_uniform_smallint_distribution.cpp /boost//unit_test_framework ;
118run test_old_uniform_real.cpp ;
119run test_old_uniform_real_distribution.cpp /boost//unit_test_framework ;
120run test_old_uniform_int.cpp ;
121run test_old_uniform_int_distribution.cpp /boost//unit_test_framework ;
122run test_beta.cpp ;
123run test_beta_distribution.cpp /boost//unit_test_framework ;
124run test_laplace.cpp ;
125run test_laplace_distribution.cpp /boost//unit_test_framework ;
126run test_non_central_chi_squared.cpp ;
127run test_non_central_chi_squared_distribution.cpp /boost//unit_test_framework ;
128run test_hyperexponential.cpp ;
129run test_hyperexponential_distribution.cpp /boost//unit_test_framework ;
130
131# run nondet_random_speed.cpp ;
132# run random_device.cpp ;
133# run random_speed.cpp ;
134# run statistic_tests.cpp ;
135
136exe statistic_tests.exe : statistic_tests.cpp ;
137explicit statistic_tests.exe ;
138
139install statistic_tests : statistic_tests.exe : <install-type>EXE <location>. ;
140explicit statistic_tests ;
141
142#
143# Multiprecision tests:
144#
145run multiprecision_int_test.cpp /boost//unit_test_framework ;
146# This one runs too slow in debug mode, we really need inline expansions turned on amonst other things:
147run multiprecision_float_test.cpp /boost//unit_test_framework : : : release ;
148