summaryrefslogtreecommitdiff
path: root/libs/math/test/Jamfile.v2
blob: 1319431511c2961301890ea2f901c96d2cd20069 (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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
# Copyright Daryle Walker, Hubert Holin, John Maddock 2006 - 2007
# copyright Paul A. Bristow 2006 - 2010
# 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.
# \math_toolkit\libs\math\test\jamfile.v2
# Runs all math toolkit tests, functions & distributions,
# and build math examples.

# bring in the rules for testing
import testing ;
import modules ;
import path ;
import pch ;

local ntl-path = [ modules.peek : NTL_PATH ] ;
local gmp_path = [ modules.peek : GMP_PATH ] ;
local e_float_path = [ modules.peek : E_FLOAT_PATH ] ;

#
# PCH support is broken when --remove-test-targets is specified on the command
# line.  Disable it until someone fixes this.
#
local remove-test-targets = [ MATCH (--remove-test-targets) : [ modules.peek : ARGV ] ] ;

if $(remove-test-targets)
{
   OBJ_REMOVAL_OPTIONS = <pch>off ;
}


project
    : requirements
      $(OBJ_REMOVAL_OPTIONS)
      <toolset>acc:<cxxflags>+W2068,2461,2236,4070,4069
      <toolset>intel-win:<cxxflags>-nologo
      <toolset>intel-win:<linkflags>-nologo
      #<toolset>intel-linux:<pch>off
      <toolset>intel-darwin:<pch>off
      <toolset>msvc:<warnings>all
      <toolset>msvc:<asynch-exceptions>on
      <toolset>msvc:<cxxflags>/wd4996
      <toolset>msvc:<cxxflags>/wd4511 # copy constructor could not be generated
      <toolset>msvc:<cxxflags>/wd4512
      <toolset>msvc:<cxxflags>/wd4610
      <toolset>msvc:<cxxflags>/wd4510
      <toolset>msvc:<cxxflags>/wd4127
      <toolset>msvc:<cxxflags>/wd4701 # needed for lexical cast - temporary.
       <toolset>msvc:<cxxflags>/wd4189 # local variable is initialized but not referenced
     <toolset>msvc-7.1:<source>../vc71_fix//vc_fix
      <toolset>msvc-7.1:<pch>off
      <toolset>gcc,<target-os>windows:<pch>off
      <toolset>borland:<runtime-link>static
      # <toolset>msvc:<cxxflags>/wd4506 has no effect?
      # suppress xstring(237) : warning C4506: no definition for inline function
      <include>../../..
      <source>../../regex/build//boost_regex
      <link>shared:<define>BOOST_REGEX_DYN_LINK=1
      # For simplicities sake, make everything a static lib:
      <link>static
      <define>BOOST_ALL_NO_LIB=1
      <define>BOOST_UBLAS_UNSUPPORTED_COMPILER=0
      <include>.
      <include>../include_private
      <include>$(ntl-path)/include
      <include>$(e_float_path)
      <include>$(gmp_path) <include>$(gmp_path)/mpfr <include>$(gmp_path)/gmpfrxx <include>$(gmp_path)/mpfrc++
      <search>$(gmp_path)
      <search>$(mpfr_path)
      <search>$(mpfr_path)/build.vc10/lib/Win32/Debug
    ;

if $(ntl-path)
{
   lib ntl : [ GLOB $(ntl-path)/src : *.cpp ] ;
}
else
{
   lib ntl ;
}

explicit ntl ;

cpp-pch pch : pch.hpp : <use>../../test/build//boost_unit_test_framework ;
cpp-pch pch_light : pch_light.hpp : <use>../../test/build//boost_unit_test_framework ;

#lib test_instances : float_test_instances.cpp double_test_instances.cpp ldouble_test_instances.cpp real_concept_test_instances.cpp pch
#                   : <link>static ;

run hypot_test.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run pow_test.cpp ../../test/build//boost_unit_test_framework ;
run log1p_expm1_test.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run powm1_sqrtp1m1_test.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run special_functions_test.cpp ../../test/build//boost_unit_test_framework ;
run test_airy.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_bernoulli.cpp ../../test/build//boost_unit_test_framework ;
run test_constants.cpp ../../test/build//boost_unit_test_framework ;
run test_print_info_on_type.cpp ;
run test_constant_generate.cpp : : : release <define>USE_CPP_FLOAT=1 ;
run test_bessel_j.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_bessel_y.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_bessel_i.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_bessel_k.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_bessel_j_prime.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_bessel_y_prime.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_bessel_i_prime.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_bessel_k_prime.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_beta.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_bessel_airy_zeros.cpp ../../test/build//boost_unit_test_framework ;
run test_bernoulli_constants.cpp ../../test/build//boost_unit_test_framework ;
run test_beta_dist.cpp ../../test/build//boost_unit_test_framework ;
run test_binomial.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_FLOAT
          <toolset>intel:<pch>off
        : test_binomial_float ;
run test_binomial.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_DOUBLE
          <toolset>intel:<pch>off
        : test_binomial_double ;
run test_binomial.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_LDOUBLE
          <toolset>intel:<pch>off
        : test_binomial_long_double ;
run test_binomial.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_ROUNDING=0
          <toolset>intel:<pch>off
        : test_binomial_real_concept0 ;
run test_binomial.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_ROUNDING=1
          <toolset>intel:<pch>off
        : test_binomial_real_concept1 ;
run test_binomial.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_ROUNDING=2
          <toolset>intel:<pch>off
        : test_binomial_real_concept2 ;
run test_binomial.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_ROUNDING=3
          <toolset>intel:<pch>off
        : test_binomial_real_concept3 ;
run test_binomial.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_ROUNDING=4
          <toolset>intel:<pch>off
        : test_binomial_real_concept4 ;
run test_binomial.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_ROUNDING=5
          <toolset>intel:<pch>off
        : test_binomial_real_concept5 ;
run test_binomial.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_ROUNDING=6
          <toolset>intel:<pch>off
        : test_binomial_real_concept6 ;
run test_binomial_coeff.cpp pch ../../test/build//boost_unit_test_framework ;
run test_carlson.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_cauchy.cpp ../../test/build//boost_unit_test_framework ;
run test_cbrt.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_chi_squared.cpp ../../test/build//boost_unit_test_framework ;
run test_classify.cpp pch ../../test/build//boost_unit_test_framework ;
run test_digamma.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_dist_overloads.cpp ../../test/build//boost_unit_test_framework ;
run test_ellint_1.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_ellint_2.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_ellint_3.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_erf.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_error_handling.cpp ../../test/build//boost_unit_test_framework ;
run test_expint.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_exponential_dist.cpp ../../test/build//boost_unit_test_framework ;
run test_extreme_value.cpp ../../test/build//boost_unit_test_framework ;
run test_factorials.cpp pch ../../test/build//boost_unit_test_framework ;
run test_find_location.cpp pch ../../test/build//boost_unit_test_framework ;
run test_find_scale.cpp pch ../../test/build//boost_unit_test_framework ;
run test_fisher_f.cpp ../../test/build//boost_unit_test_framework ;
run test_gamma.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_gamma_dist.cpp pch ../../test/build//boost_unit_test_framework ;
run test_geometric.cpp ../../test/build//boost_unit_test_framework ;
run test_hankel.cpp ../../test/build//boost_unit_test_framework ;
run test_hermite.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_hyperexponential_dist.cpp ../../test/build//boost_unit_test_framework ;
run test_hypergeometric_dist.cpp ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_QUANT=0
          <toolset>intel:<pch>off
        : test_hypergeometric_dist0 ;
run test_hypergeometric_dist.cpp ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_QUANT=1
          <toolset>intel:<pch>off
        : test_hypergeometric_dist1 ;
run test_hypergeometric_dist.cpp ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_QUANT=2
          <toolset>intel:<pch>off
        : test_hypergeometric_dist2 ;
run test_hypergeometric_dist.cpp ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_QUANT=3
          <toolset>intel:<pch>off
        : test_hypergeometric_dist3 ;
run test_hypergeometric_dist.cpp ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_QUANT=4
          <toolset>intel:<pch>off
        : test_hypergeometric_dist4 ;
run test_hypergeometric_dist.cpp ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_QUANT=5
          <toolset>intel:<pch>off
        : test_hypergeometric_dist5 ;
run test_ibeta.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_FLOAT
          <toolset>intel:<pch>off
        : test_ibeta_float ;
run test_ibeta.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_DOUBLE
          <toolset>intel:<pch>off
        : test_ibeta_double ;
run test_ibeta.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_LDOUBLE
          <toolset>intel:<pch>off
        : test_ibeta_long_double ;
run test_ibeta.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_DATA=1
          <toolset>intel:<pch>off
        : test_ibeta_real_concept1 ;
run test_ibeta.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_DATA=2
          <toolset>intel:<pch>off
        : test_ibeta_real_concept2 ;
run test_ibeta.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_DATA=3
          <toolset>intel:<pch>off
        : test_ibeta_real_concept3 ;
run test_ibeta.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_DATA=4
          <toolset>intel:<pch>off
        : test_ibeta_real_concept4 ;
run test_ibeta_inv.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_FLOAT
          <toolset>intel:<pch>off
        : test_ibeta_inv_float ;
run test_ibeta_inv.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_DOUBLE
          <toolset>intel:<pch>off
        : test_ibeta_inv_double ;
run test_ibeta_inv.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_LDOUBLE
          <toolset>intel:<pch>off
        : test_ibeta_inv_long_double ;
run test_ibeta_inv.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_DATA=1
          <toolset>intel:<pch>off
        : test_ibeta_inv_real_concept1 ;
run test_ibeta_inv.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_DATA=2
          <toolset>intel:<pch>off
        : test_ibeta_inv_real_concept2 ;
run test_ibeta_inv.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_DATA=3
          <toolset>intel:<pch>off
        : test_ibeta_inv_real_concept3 ;
run test_ibeta_inv.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_DATA=4
          <toolset>intel:<pch>off
        : test_ibeta_inv_real_concept4 ;
run test_ibeta_inv_ab.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_FLOAT
          <toolset>intel:<pch>off
        : test_ibeta_inv_ab_float ;
run test_ibeta_inv_ab.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_DOUBLE
          <toolset>intel:<pch>off
        : test_ibeta_inv_ab_double ;
run test_ibeta_inv_ab.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_LDOUBLE
          <toolset>intel:<pch>off
        : test_ibeta_inv_ab_long_double ;
run test_ibeta_inv_ab.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_DATA=1
          <toolset>intel:<pch>off
        : test_ibeta_inv_ab_real_concept1 ;
run test_ibeta_inv_ab.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_DATA=2
          <toolset>intel:<pch>off
        : test_ibeta_inv_ab_real_concept2 ;
run test_ibeta_inv_ab.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_DATA=3
          <toolset>intel:<pch>off
        : test_ibeta_inv_ab_real_concept3 ;
run test_igamma.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_igamma_inv.cpp test_instances//test_instances pch_light  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_FLOAT
          <toolset>intel:<pch>off
        : test_igamma_inv_float ;
run test_igamma_inv.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_DOUBLE
          <toolset>intel:<pch>off
        : test_igamma_inv_double ;
run test_igamma_inv.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_LDOUBLE
          <toolset>intel:<pch>off
        : test_igamma_inv_long_double ;
run test_igamma_inv.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <toolset>intel:<pch>off
        : test_igamma_inv_real_concept ;
run test_igamma_inva.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_FLOAT
          <toolset>intel:<pch>off
        : test_igamma_inva_float ;
run test_igamma_inva.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_DOUBLE
          <toolset>intel:<pch>off
        : test_igamma_inva_double ;
run test_igamma_inva.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_LDOUBLE
          <toolset>intel:<pch>off
        : test_igamma_inva_long_double ;
run test_igamma_inva.cpp  test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <toolset>intel:<pch>off
        : test_igamma_inva_real_concept ;
run test_instantiate1.cpp test_instantiate2.cpp ;
run test_inverse_chi_squared_distribution.cpp ../../test/build//boost_unit_test_framework ;
run test_inverse_gamma_distribution.cpp ../../test/build//boost_unit_test_framework ;

run test_inverse_gaussian.cpp ../../test/build//boost_unit_test_framework ;

run test_jacobi.cpp pch_light ../../test/build//boost_unit_test_framework ;
run test_laplace.cpp ../../test/build//boost_unit_test_framework ;
run test_inv_hyp.cpp pch ../../test/build//boost_unit_test_framework ;
run test_laguerre.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_legendre.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_ldouble_simple.cpp ../../test/build//boost_unit_test_framework ;
run test_logistic_dist.cpp ../../test/build//boost_unit_test_framework ;
run test_lognormal.cpp ../../test/build//boost_unit_test_framework ;
run test_minima.cpp pch ../../test/build//boost_unit_test_framework ;
run test_negative_binomial.cpp ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_FLOAT
          <toolset>intel:<pch>off
        : test_negative_binomial_float ;
run test_negative_binomial.cpp ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_DOUBLE
          <toolset>intel:<pch>off
        : test_negative_binomial_double ;
run test_negative_binomial.cpp ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_LDOUBLE
          <toolset>intel:<pch>off
        : test_negative_binomial_long_double ;
run test_negative_binomial.cpp ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <toolset>intel:<pch>off
        : test_negative_binomial_real_concept ;
run test_next.cpp pch ../../test/build//boost_unit_test_framework ;
run test_nc_chi_squared.cpp  pch ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_FLOAT
          <toolset>intel:<pch>off
        : test_nc_chi_squared_float ;
run test_nc_chi_squared.cpp  pch ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_DOUBLE
          <toolset>intel:<pch>off
        : test_nc_chi_squared_double ;
run test_nc_chi_squared.cpp  pch ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_LDOUBLE
          <toolset>intel:<pch>off
        : test_nc_chi_squared_long_double ;
run test_nc_chi_squared.cpp  pch ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <toolset>intel:<pch>off
        : test_nc_chi_squared_real_concept ;
run test_nc_beta.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_FLOAT
          <toolset>intel:<pch>off
        : test_nc_beta_float ;
run test_nc_beta.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_DOUBLE
          <toolset>intel:<pch>off
        : test_nc_beta_double ;
run test_nc_beta.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_LDOUBLE
          <toolset>intel:<pch>off
        : test_nc_beta_long_double ;
run test_nc_beta.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_DATA=1
          <toolset>intel:<pch>off
        : test_nc_beta_real_concept1 ;
run test_nc_beta.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <define>TEST_DATA=2
          <toolset>intel:<pch>off
        : test_nc_beta_real_concept2 ;
run test_nc_f.cpp pch ../../test/build//boost_unit_test_framework ;
run test_nc_t.cpp  pch ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_FLOAT
          <toolset>intel:<pch>off
        : test_nc_t_float ;
run test_nc_t.cpp  pch ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_DOUBLE
          <toolset>intel:<pch>off
        : test_nc_t_double ;
run test_nc_t.cpp  pch ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_LDOUBLE
          <toolset>intel:<pch>off
        : test_nc_t_long_double ;
run test_nc_t.cpp  pch ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <toolset>intel:<pch>off
        : test_nc_t_real_concept ;
run test_normal.cpp pch ../../test/build//boost_unit_test_framework ;
run test_owens_t.cpp ../../test/build//boost_unit_test_framework ;
run test_pareto.cpp ../../test/build//boost_unit_test_framework ;
run test_poisson.cpp ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_FLOAT
          <toolset>intel:<pch>off
        : test_poisson_float ;
run test_poisson.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_DOUBLE
          <toolset>intel:<pch>off
        : test_poisson_double ;
run test_poisson.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_LDOUBLE
          <toolset>intel:<pch>off
        : test_poisson_long_double ;
run test_poisson.cpp  ../../test/build//boost_unit_test_framework
        : # command line
        : # input files
        : # requirements
          <define>TEST_REAL_CONCEPT
          <toolset>intel:<pch>off
        : test_poisson_real_concept ;
run test_rayleigh.cpp ../../test/build//boost_unit_test_framework ;

run test_rationals.cpp ../../test/build//boost_unit_test_framework
test_rational_instances/test_rational_double1.cpp
test_rational_instances/test_rational_double2.cpp
test_rational_instances/test_rational_double3.cpp
test_rational_instances/test_rational_double4.cpp
test_rational_instances/test_rational_double5.cpp
test_rational_instances/test_rational_float1.cpp
test_rational_instances/test_rational_float2.cpp
test_rational_instances/test_rational_float3.cpp
test_rational_instances/test_rational_float4.cpp
test_rational_instances/test_rational_ldouble1.cpp
test_rational_instances/test_rational_ldouble2.cpp
test_rational_instances/test_rational_ldouble3.cpp
test_rational_instances/test_rational_ldouble4.cpp
test_rational_instances/test_rational_ldouble5.cpp
test_rational_instances/test_rational_real_concept1.cpp
test_rational_instances/test_rational_real_concept2.cpp
test_rational_instances/test_rational_real_concept3.cpp
test_rational_instances/test_rational_real_concept4.cpp
test_rational_instances/test_rational_real_concept5.cpp
;

run test_real_concept.cpp ../../test/build//boost_unit_test_framework ;
run test_remez.cpp pch ../../test/build//boost_unit_test_framework ;
run test_roots.cpp pch ../../test/build//boost_unit_test_framework ;
run test_round.cpp pch ../../test/build//boost_unit_test_framework ;
run test_spherical_harmonic.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_students_t.cpp ../../test/build//boost_unit_test_framework ;
run test_sign.cpp ../../test/build//boost_unit_test_framework ;
run test_skew_normal.cpp ../../test/build//boost_unit_test_framework ;
run test_tgamma_ratio.cpp test_instances//test_instances pch_light ../../test/build//boost_unit_test_framework ;
run test_toms748_solve.cpp pch ../../test/build//boost_unit_test_framework ;
run test_triangular.cpp pch ../../test/build//boost_unit_test_framework ;
run test_uniform.cpp pch ../../test/build//boost_unit_test_framework ;
run test_weibull.cpp ../../test/build//boost_unit_test_framework ;
run test_zeta.cpp ../../test/build//boost_unit_test_framework test_instances//test_instances pch_light ;

run test_policy.cpp ../../test/build//boost_unit_test_framework ;
run test_policy_2.cpp ../../test/build//boost_unit_test_framework ;
run test_policy_3.cpp ../../test/build//boost_unit_test_framework ;
run test_policy_4.cpp ../../test/build//boost_unit_test_framework ;
run test_policy_5.cpp ../../test/build//boost_unit_test_framework ;
run test_policy_6.cpp ../../test/build//boost_unit_test_framework ;
run test_policy_7.cpp ../../test/build//boost_unit_test_framework ;
run test_policy_8.cpp ../../test/build//boost_unit_test_framework ;
run test_policy_sf.cpp ../../test/build//boost_unit_test_framework ;

run test_tr1.cpp
   ../build//boost_math_tr1
   ../build//boost_math_tr1f
   ../build//boost_math_c99
   ../build//boost_math_c99f
   ../../test/build//boost_unit_test_framework
   ;

run test_tr1.cpp
   ../build//boost_math_tr1l
   ../build//boost_math_c99l
   ../../test/build//boost_unit_test_framework
   : : :
   <define>TEST_LD=1
   [ check-target-builds ../config//has_long_double_support "long double support" : : <build>no ]
   :
   test_tr1_long_double
   ;

run test_tr1.c
   ../build//boost_math_tr1
   ../build//boost_math_tr1f
   ../build//boost_math_c99
   ../build//boost_math_c99f
   ../../test/build//boost_unit_test_framework
   : : : #requirements
   :
   test_tr1_c
   ;

run test_tr1.c
   ../build//boost_math_tr1l
   ../build//boost_math_c99l
   ../../test/build//boost_unit_test_framework
   : : :
   <define>TEST_LD=1
   [ check-target-builds ../config//has_long_double_support "long double support" : : <build>no ]
   :
   test_tr1_c_long_double
   ;

run test_long_double_support.cpp ../../test/build//boost_unit_test_framework
: : : [ check-target-builds ../config//has_long_double_support "long double support" : : <build>no ] ;

lib compile_test_main : compile_test/main.cpp ;

run  compile_test/compl_abs_incl_test.cpp compile_test_main ;
run  compile_test/compl_acos_incl_test.cpp compile_test_main ;
run  compile_test/compl_acosh_incl_test.cpp compile_test_main ;
run  compile_test/compl_asin_incl_test.cpp compile_test_main ;
run  compile_test/compl_asinh_incl_test.cpp compile_test_main ;
run  compile_test/compl_atan_incl_test.cpp compile_test_main ;
run  compile_test/compl_atanh_incl_test.cpp compile_test_main ;
run  compile_test/dist_bernoulli_incl_test.cpp compile_test_main ;
run  compile_test/dist_beta_incl_test.cpp compile_test_main ;
run  compile_test/dist_binomial_incl_test.cpp compile_test_main ;
run  compile_test/dist_cauchy_incl_test.cpp compile_test_main ;
run  compile_test/dist_chi_squared_incl_test.cpp compile_test_main ;
run  compile_test/dist_complement_incl_test.cpp compile_test_main ;
run  compile_test/dist_exponential_incl_test.cpp compile_test_main ;
run  compile_test/dist_extreme_val_incl_test.cpp compile_test_main ;
run  compile_test/dist_find_location_incl_test.cpp compile_test_main ;
run  compile_test/dist_find_scale_incl_test.cpp compile_test_main ;
run  compile_test/dist_fisher_f_incl_test.cpp compile_test_main ;
run  compile_test/dist_gamma_incl_test.cpp compile_test_main ;
run  compile_test/dist_inv_gamma_incl_test.cpp compile_test_main ;
run  compile_test/dist_inv_chi_sq_incl_test.cpp compile_test_main ;
run  compile_test/dist_hyperexponential_incl_test.cpp compile_test_main ;
run  compile_test/dist_hypergeo_incl_test.cpp compile_test_main ;
run  compile_test/dist_laplace_incl_test.cpp compile_test_main ;
run  compile_test/dist_logistic_incl_test.cpp compile_test_main ;
run  compile_test/dist_lognormal_incl_test.cpp compile_test_main ;
run  compile_test/dist_neg_binom_incl_test.cpp compile_test_main ;
run  compile_test/dist_nc_chi_squ_incl_test.cpp compile_test_main ;
run  compile_test/dist_nc_beta_incl_test.cpp compile_test_main ;
run  compile_test/dist_nc_f_incl_test.cpp compile_test_main ;
run  compile_test/dist_nc_t_incl_test.cpp compile_test_main ;
run  compile_test/dist_normal_incl_test.cpp compile_test_main ;
run  compile_test/dist_poisson_incl_test.cpp compile_test_main ;
run  compile_test/dist_students_t_incl_test.cpp compile_test_main ;
run  compile_test/dist_triangular_incl_test.cpp compile_test_main ;
run  compile_test/dist_uniform_incl_test.cpp compile_test_main ;
run  compile_test/dist_weibull_incl_test.cpp compile_test_main ;
run  compile_test/distribution_concept_check.cpp ;
run  compile_test/sf_beta_incl_test.cpp compile_test_main ;
run  compile_test/sf_bernoulli_incl_test.cpp compile_test_main ;
run  compile_test/sf_bessel_incl_test.cpp compile_test_main ;
run  compile_test/sf_bessel_deriv_incl_test.cpp compile_test_main ;
run  compile_test/sf_binomial_incl_test.cpp compile_test_main ;
run  compile_test/sf_cbrt_incl_test.cpp compile_test_main ;
run  compile_test/sf_cos_pi_incl_test.cpp compile_test_main ;
run  compile_test/sf_digamma_incl_test.cpp compile_test_main ;
run  compile_test/sf_ellint_1_incl_test.cpp compile_test_main ;
run  compile_test/sf_ellint_2_incl_test.cpp compile_test_main ;
run  compile_test/sf_ellint_3_incl_test.cpp compile_test_main ;
run  compile_test/sf_ellint_rc_incl_test.cpp compile_test_main ;
run  compile_test/sf_ellint_rd_incl_test.cpp compile_test_main ;
run  compile_test/sf_ellint_rf_incl_test.cpp compile_test_main ;
run  compile_test/sf_ellint_rj_incl_test.cpp compile_test_main ;
run  compile_test/sf_erf_incl_test.cpp compile_test_main ;
run  compile_test/sf_expint_incl_test.cpp compile_test_main ;
run  compile_test/sf_expm1_incl_test.cpp compile_test_main ;
run  compile_test/sf_factorials_incl_test.cpp compile_test_main ;
run  compile_test/sf_fpclassify_incl_test.cpp compile_test_main ;
run  compile_test/sf_gamma_incl_test.cpp compile_test_main ;
run  compile_test/sf_hermite_incl_test.cpp compile_test_main ;
run  compile_test/sf_hypot_incl_test.cpp compile_test_main ;
run  compile_test/sf_laguerre_incl_test.cpp compile_test_main ;
compile  compile_test/sf_lanczos_incl_test.cpp ;
run  compile_test/sf_legendre_incl_test.cpp compile_test_main ;
run  compile_test/sf_log1p_incl_test.cpp compile_test_main ;
compile  compile_test/sf_math_fwd_incl_test.cpp ;
run  compile_test/sf_modf_incl_test.cpp compile_test_main ;
run  compile_test/sf_next_incl_test.cpp compile_test_main ;
run  compile_test/sf_powm1_incl_test.cpp compile_test_main ;
run  compile_test/sf_round_incl_test.cpp compile_test_main ;
run  compile_test/sf_sign_incl_test.cpp compile_test_main ;
run  compile_test/sf_sin_pi_incl_test.cpp compile_test_main ;
run  compile_test/sf_sinc_incl_test.cpp compile_test_main ;
run  compile_test/sf_sinhc_incl_test.cpp compile_test_main ;
run  compile_test/sf_sph_harm_incl_test.cpp compile_test_main ;
run  compile_test/sf_sqrt1pm1_incl_test.cpp compile_test_main ;
run  compile_test/sf_trunc_incl_test.cpp compile_test_main ;
run  compile_test/sf_zeta_incl_test.cpp compile_test_main ;
run  compile_test/std_real_concept_check.cpp ;
run  compile_test/cstdfloat_concept_check_1.cpp
   : : : [ check-target-builds ../config//has_intel_quad "Intel _Quad datatype support" : <cxxflags>-Qoption,cpp,--extended_float_type ]
         [ check-target-builds ../config//has_float128 "GCC libquadmath and __float128 support" : <linkflags>-lquadmath ] ;
run  compile_test/cstdfloat_concept_check_2.cpp ;
run  compile_test/cstdfloat_concept_check_3.cpp ;
run  compile_test/cstdfloat_concept_check_4.cpp ;
run  compile_test/sf_airy_incl_test.cpp compile_test_main ;
run  compile_test/sf_hankel_incl_test.cpp compile_test_main ;
run  compile_test/sf_jacobi_incl_test.cpp compile_test_main ;
run  compile_test/sf_owens_t_incl_test.cpp compile_test_main ;
run  compile_test/dist_skew_norm_incl_test.cpp compile_test_main ;
run  compile_test/constants_incl_test.cpp compile_test_main ;
compile  compile_test/test_traits.cpp ;
compile  compile_test/tools_config_inc_test.cpp ;
compile  compile_test/tools_fraction_inc_test.cpp ;
compile  compile_test/tools_minima_inc_test.cpp ;
compile  compile_test/tools_polynomial_inc_test.cpp ;
compile  compile_test/tools_precision_inc_test.cpp ;
compile  compile_test/tools_rational_inc_test.cpp ;
compile  compile_test/tools_real_cast_inc_test.cpp ;
compile  compile_test/tools_remez_inc_test.cpp ;
compile  compile_test/tools_roots_inc_test.cpp ;
compile  compile_test/tools_series_inc_test.cpp ;
compile  compile_test/tools_solve_inc_test.cpp ;
compile  compile_test/tools_stats_inc_test.cpp ;
compile  compile_test/tools_test_data_inc_test.cpp ;
compile  compile_test/tools_test_inc_test.cpp ;
compile  compile_test/tools_toms748_inc_test.cpp ;

run ../test/common_factor_test.cpp
    ../../test/build//boost_unit_test_framework ;

run ../octonion/octonion_test.cpp
    ../../test/build//boost_unit_test_framework ;

run ../quaternion/quaternion_test.cpp
    ../../test/build//boost_unit_test_framework ;

run ../quaternion/quaternion_mult_incl_test.cpp
    ../quaternion/quaternion_mi1.cpp
    ../quaternion/quaternion_mi2.cpp
    ../../test/build//boost_unit_test_framework ;


run test_legacy_nonfinite.cpp ../../test/build//boost_unit_test_framework ;
run test_basic_nonfinite.cpp ../../test/build//boost_unit_test_framework ;
run test_lexical_cast.cpp ../../test/build//boost_unit_test_framework ;
run test_nonfinite_trap.cpp ../../test/build//boost_unit_test_framework ;
run test_signed_zero.cpp ../../test/build//boost_unit_test_framework ;

run complex_test.cpp ../../test/build//boost_unit_test_framework ;

compile multiprc_concept_check_1.cpp : <debug-symbols>off <toolset>msvc:<cxxflags>/bigobj release ;
compile multiprc_concept_check_2.cpp : <debug-symbols>off <toolset>msvc:<cxxflags>/bigobj release ;
compile multiprc_concept_check_3.cpp : <debug-symbols>off <toolset>msvc:<cxxflags>/bigobj release ;
compile multiprc_concept_check_4.cpp : <debug-symbols>off <toolset>msvc:<cxxflags>/bigobj release ;
compile ntl_concept_check.cpp : [ check-target-builds ../config//has_ntl_rr : : <build>no ] <debug-symbols>off ;
compile mpfr_concept_check.cpp : [ check-target-builds ../config//has_mpfr_class : : <build>no ] <debug-symbols>off ;
compile mpreal_concept_check.cpp : [ check-target-builds ../config//has_mpreal : : <build>no ] <debug-symbols>off ;
compile e_float_concept_check.cpp : [ check-target-builds ../config//has_e_float : : <build>no ] <debug-symbols>off ;
compile test_common_factor_gmpxx.cpp : [ check-target-builds ../config//has_gmpxx : : <build>no ] <debug-symbols>off ;

# Temporary tests for support of max_digits10
# run ztest_max_digits10.cpp ;
# run zztest_max_digits10.cpp ;
#  Removed as inexplicably failing for VS12 on teeks99 but OK locally.

build-project ../example ;

rule get_float128_tests
{
     local result ;
     for local source in [ glob float128/*.cpp ]
     {
         result += [ run $(source)
            /boost/test//boost_unit_test_framework/<link>static
            /boost/regex//boost_regex/<link>static
           : # command line
           : # input files
           : # requirements
            [ check-target-builds ../config//has_intel_quad "Intel _Quad datatype support" : <cxxflags>-Qoption,cpp,--extended_float_type <define>BOOST_MATH_USE_FLOAT128 ]
            [ check-target-builds ../config//has_float128 "GCC libquadmath and __float128 support" : <linkflags>"-Bstatic -lquadmath -Bdynamic" ]
            [ check-target-builds ../config//has_128bit_floatmax_t "128-bit floatmax_t" : : <build>no ]
            <define>BOOST_ALL_NO_LIB
           : $(source:B)_floatmax_t ] ;
     }
     return $(result) ;
}

test-suite float128_tests : [ get_float128_tests ] ;